Files
aliyun-openapi-cpp-sdk/xtrace/src/model/GetTokenRequest.cc
2021-01-11 06:43:17 +00:00

74 lines
1.7 KiB
C++

/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/xtrace/model/GetTokenRequest.h>
using AlibabaCloud::Xtrace::Model::GetTokenRequest;
GetTokenRequest::GetTokenRequest() :
RpcServiceRequest("xtrace", "2019-08-08", "GetToken")
{
setMethod(HttpRequest::Method::Post);
}
GetTokenRequest::~GetTokenRequest()
{}
std::string GetTokenRequest::getRegionId()const
{
return regionId_;
}
void GetTokenRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string GetTokenRequest::getAppType()const
{
return appType_;
}
void GetTokenRequest::setAppType(const std::string& appType)
{
appType_ = appType;
setParameter("AppType", appType);
}
std::string GetTokenRequest::getProxyUserId()const
{
return proxyUserId_;
}
void GetTokenRequest::setProxyUserId(const std::string& proxyUserId)
{
proxyUserId_ = proxyUserId;
setParameter("ProxyUserId", proxyUserId);
}
bool GetTokenRequest::getIsForce()const
{
return isForce_;
}
void GetTokenRequest::setIsForce(bool isForce)
{
isForce_ = isForce;
setParameter("IsForce", isForce ? "true" : "false");
}