OPENANALYTICS SDK Auto Released By shenshi,Version:1.34.31

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-15 15:50:09 +08:00
parent e0174350ec
commit 7f97b2de78
43 changed files with 3799 additions and 2 deletions

View File

@@ -0,0 +1,170 @@
/*
* 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/openanalytics/model/CloseProductAccountRequest.h>
using AlibabaCloud::Openanalytics::Model::CloseProductAccountRequest;
CloseProductAccountRequest::CloseProductAccountRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "CloseProductAccount")
{}
CloseProductAccountRequest::~CloseProductAccountRequest()
{}
long CloseProductAccountRequest::getCallerParentId()const
{
return callerParentId_;
}
void CloseProductAccountRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long CloseProductAccountRequest::getCallerBid()const
{
return callerBid_;
}
void CloseProductAccountRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string CloseProductAccountRequest::getCallerType()const
{
return callerType_;
}
void CloseProductAccountRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool CloseProductAccountRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void CloseProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string CloseProductAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CloseProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool CloseProductAccountRequest::getSecurity_transport()const
{
return security_transport_;
}
void CloseProductAccountRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string CloseProductAccountRequest::getRegionID()const
{
return regionID_;
}
void CloseProductAccountRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string CloseProductAccountRequest::getRequestId()const
{
return requestId_;
}
void CloseProductAccountRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long CloseProductAccountRequest::getCallerUid()const
{
return callerUid_;
}
void CloseProductAccountRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string CloseProductAccountRequest::getProductCode()const
{
return productCode_;
}
void CloseProductAccountRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string CloseProductAccountRequest::getProductAccessKey()const
{
return productAccessKey_;
}
void CloseProductAccountRequest::setProductAccessKey(const std::string& productAccessKey)
{
productAccessKey_ = productAccessKey;
setParameter("ProductAccessKey", productAccessKey);
}
std::string CloseProductAccountRequest::getTargetUid()const
{
return targetUid_;
}
void CloseProductAccountRequest::setTargetUid(const std::string& targetUid)
{
targetUid_ = targetUid;
setParameter("TargetUid", targetUid);
}
std::string CloseProductAccountRequest::getTargetArnRole()const
{
return targetArnRole_;
}
void CloseProductAccountRequest::setTargetArnRole(const std::string& targetArnRole)
{
targetArnRole_ = targetArnRole;
setParameter("TargetArnRole", targetArnRole);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/openanalytics/model/CloseProductAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
CloseProductAccountResult::CloseProductAccountResult() :
ServiceResult()
{}
CloseProductAccountResult::CloseProductAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CloseProductAccountResult::~CloseProductAccountResult()
{}
void CloseProductAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
}
std::string CloseProductAccountResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/openanalytics/model/DescribeRegionListRequest.h>
using AlibabaCloud::Openanalytics::Model::DescribeRegionListRequest;
DescribeRegionListRequest::DescribeRegionListRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "DescribeRegionList")
{}
DescribeRegionListRequest::~DescribeRegionListRequest()
{}
bool DescribeRegionListRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeRegionListRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string DescribeRegionListRequest::getRequestId()const
{
return requestId_;
}
void DescribeRegionListRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long DescribeRegionListRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeRegionListRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long DescribeRegionListRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeRegionListRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string DescribeRegionListRequest::getCallerType()const
{
return callerType_;
}
void DescribeRegionListRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool DescribeRegionListRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeRegionListRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
long DescribeRegionListRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeRegionListRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribeRegionListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeRegionListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/openanalytics/model/DescribeRegionListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
DescribeRegionListResult::DescribeRegionListResult() :
ServiceResult()
{}
DescribeRegionListResult::DescribeRegionListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionListResult::~DescribeRegionListResult()
{}
void DescribeRegionListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionList = value["RegionList"]["RegionListItem"];
for (auto value : allRegionList)
{
RegionListItem regionListObject;
if(!value["regionID"].isNull())
regionListObject.regionID = value["regionID"].asString();
regionList_.push_back(regionListObject);
}
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
}
std::vector<DescribeRegionListResult::RegionListItem> DescribeRegionListResult::getRegionList()const
{
return regionList_;
}
std::string DescribeRegionListResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,148 @@
/*
* 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/openanalytics/model/GetAllowIPRequest.h>
using AlibabaCloud::Openanalytics::Model::GetAllowIPRequest;
GetAllowIPRequest::GetAllowIPRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "GetAllowIP")
{}
GetAllowIPRequest::~GetAllowIPRequest()
{}
bool GetAllowIPRequest::getSecurity_transport()const
{
return security_transport_;
}
void GetAllowIPRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string GetAllowIPRequest::getRegionID()const
{
return regionID_;
}
void GetAllowIPRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string GetAllowIPRequest::getRequestId()const
{
return requestId_;
}
void GetAllowIPRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long GetAllowIPRequest::getCallerParentId()const
{
return callerParentId_;
}
void GetAllowIPRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long GetAllowIPRequest::getCallerBid()const
{
return callerBid_;
}
void GetAllowIPRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string GetAllowIPRequest::getCallerType()const
{
return callerType_;
}
void GetAllowIPRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool GetAllowIPRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void GetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
long GetAllowIPRequest::getCallerUid()const
{
return callerUid_;
}
void GetAllowIPRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string GetAllowIPRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long GetAllowIPRequest::getUserID()const
{
return userID_;
}
void GetAllowIPRequest::setUserID(long userID)
{
userID_ = userID;
setParameter("UserID", std::to_string(userID));
}
std::string GetAllowIPRequest::getNetworkType()const
{
return networkType_;
}
void GetAllowIPRequest::setNetworkType(const std::string& networkType)
{
networkType_ = networkType;
setParameter("NetworkType", networkType);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/openanalytics/model/GetAllowIPResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
GetAllowIPResult::GetAllowIPResult() :
ServiceResult()
{}
GetAllowIPResult::GetAllowIPResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAllowIPResult::~GetAllowIPResult()
{}
void GetAllowIPResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["AllowIP"].isNull())
allowIP_ = value["AllowIP"].asString();
}
std::string GetAllowIPResult::getAllowIP()const
{
return allowIP_;
}
std::string GetAllowIPResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,148 @@
/*
* 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/openanalytics/model/GetEndPointByDomainRequest.h>
using AlibabaCloud::Openanalytics::Model::GetEndPointByDomainRequest;
GetEndPointByDomainRequest::GetEndPointByDomainRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "GetEndPointByDomain")
{}
GetEndPointByDomainRequest::~GetEndPointByDomainRequest()
{}
bool GetEndPointByDomainRequest::getSecurity_transport()const
{
return security_transport_;
}
void GetEndPointByDomainRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string GetEndPointByDomainRequest::getRegionID()const
{
return regionID_;
}
void GetEndPointByDomainRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string GetEndPointByDomainRequest::getRequestId()const
{
return requestId_;
}
void GetEndPointByDomainRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long GetEndPointByDomainRequest::getCallerParentId()const
{
return callerParentId_;
}
void GetEndPointByDomainRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long GetEndPointByDomainRequest::getCallerBid()const
{
return callerBid_;
}
void GetEndPointByDomainRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string GetEndPointByDomainRequest::getCallerType()const
{
return callerType_;
}
void GetEndPointByDomainRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool GetEndPointByDomainRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void GetEndPointByDomainRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
long GetEndPointByDomainRequest::getCallerUid()const
{
return callerUid_;
}
void GetEndPointByDomainRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string GetEndPointByDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetEndPointByDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long GetEndPointByDomainRequest::getUserID()const
{
return userID_;
}
void GetEndPointByDomainRequest::setUserID(long userID)
{
userID_ = userID;
setParameter("UserID", std::to_string(userID));
}
std::string GetEndPointByDomainRequest::getDomainURL()const
{
return domainURL_;
}
void GetEndPointByDomainRequest::setDomainURL(const std::string& domainURL)
{
domainURL_ = domainURL;
setParameter("DomainURL", domainURL);
}

View File

@@ -0,0 +1,78 @@
/*
* 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/openanalytics/model/GetEndPointByDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
GetEndPointByDomainResult::GetEndPointByDomainResult() :
ServiceResult()
{}
GetEndPointByDomainResult::GetEndPointByDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetEndPointByDomainResult::~GetEndPointByDomainResult()
{}
void GetEndPointByDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto endPointInfoNode = value["EndPointInfo"];
if(!endPointInfoNode["endPointID"].isNull())
endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString();
if(!endPointInfoNode["domainURL"].isNull())
endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString();
if(!endPointInfoNode["host"].isNull())
endPointInfo_.host = endPointInfoNode["host"].asString();
if(!endPointInfoNode["port"].isNull())
endPointInfo_.port = endPointInfoNode["port"].asString();
if(!endPointInfoNode["networkType"].isNull())
endPointInfo_.networkType = endPointInfoNode["networkType"].asString();
if(!endPointInfoNode["vpcID"].isNull())
endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString();
if(!endPointInfoNode["vSwitch"].isNull())
endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString();
if(!endPointInfoNode["zone"].isNull())
endPointInfo_.zone = endPointInfoNode["zone"].asString();
if(!endPointInfoNode["allowIP"].isNull())
endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString();
if(!endPointInfoNode["cloudInstanceID"].isNull())
endPointInfo_.cloudInstanceID = endPointInfoNode["cloudInstanceID"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
}
GetEndPointByDomainResult::EndPointInfo GetEndPointByDomainResult::getEndPointInfo()const
{
return endPointInfo_;
}
std::string GetEndPointByDomainResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,170 @@
/*
* 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/openanalytics/model/GetProductStatusRequest.h>
using AlibabaCloud::Openanalytics::Model::GetProductStatusRequest;
GetProductStatusRequest::GetProductStatusRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "GetProductStatus")
{}
GetProductStatusRequest::~GetProductStatusRequest()
{}
long GetProductStatusRequest::getCallerParentId()const
{
return callerParentId_;
}
void GetProductStatusRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long GetProductStatusRequest::getCallerBid()const
{
return callerBid_;
}
void GetProductStatusRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string GetProductStatusRequest::getCallerType()const
{
return callerType_;
}
void GetProductStatusRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool GetProductStatusRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void GetProductStatusRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string GetProductStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetProductStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool GetProductStatusRequest::getSecurity_transport()const
{
return security_transport_;
}
void GetProductStatusRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string GetProductStatusRequest::getRegionID()const
{
return regionID_;
}
void GetProductStatusRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string GetProductStatusRequest::getRequestId()const
{
return requestId_;
}
void GetProductStatusRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long GetProductStatusRequest::getCallerUid()const
{
return callerUid_;
}
void GetProductStatusRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string GetProductStatusRequest::getProductCode()const
{
return productCode_;
}
void GetProductStatusRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string GetProductStatusRequest::getProductAccessKey()const
{
return productAccessKey_;
}
void GetProductStatusRequest::setProductAccessKey(const std::string& productAccessKey)
{
productAccessKey_ = productAccessKey;
setParameter("ProductAccessKey", productAccessKey);
}
std::string GetProductStatusRequest::getTargetUid()const
{
return targetUid_;
}
void GetProductStatusRequest::setTargetUid(const std::string& targetUid)
{
targetUid_ = targetUid;
setParameter("TargetUid", targetUid);
}
std::string GetProductStatusRequest::getTargetArnRole()const
{
return targetArnRole_;
}
void GetProductStatusRequest::setTargetArnRole(const std::string& targetArnRole)
{
targetArnRole_ = targetArnRole;
setParameter("TargetArnRole", targetArnRole);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/openanalytics/model/GetProductStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
GetProductStatusResult::GetProductStatusResult() :
ServiceResult()
{}
GetProductStatusResult::GetProductStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetProductStatusResult::~GetProductStatusResult()
{}
void GetProductStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetProductStatusResult::getData()const
{
return data_;
}
std::string GetProductStatusResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/openanalytics/model/GetRegionStatusRequest.h>
using AlibabaCloud::Openanalytics::Model::GetRegionStatusRequest;
GetRegionStatusRequest::GetRegionStatusRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "GetRegionStatus")
{}
GetRegionStatusRequest::~GetRegionStatusRequest()
{}
bool GetRegionStatusRequest::getSecurity_transport()const
{
return security_transport_;
}
void GetRegionStatusRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string GetRegionStatusRequest::getRegionID()const
{
return regionID_;
}
void GetRegionStatusRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string GetRegionStatusRequest::getRequestId()const
{
return requestId_;
}
void GetRegionStatusRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long GetRegionStatusRequest::getCallerParentId()const
{
return callerParentId_;
}
void GetRegionStatusRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long GetRegionStatusRequest::getCallerBid()const
{
return callerBid_;
}
void GetRegionStatusRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string GetRegionStatusRequest::getCallerType()const
{
return callerType_;
}
void GetRegionStatusRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool GetRegionStatusRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void GetRegionStatusRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
long GetRegionStatusRequest::getCallerUid()const
{
return callerUid_;
}
void GetRegionStatusRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string GetRegionStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetRegionStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long GetRegionStatusRequest::getTargetUid()const
{
return targetUid_;
}
void GetRegionStatusRequest::setTargetUid(long targetUid)
{
targetUid_ = targetUid;
setParameter("TargetUid", std::to_string(targetUid));
}

View File

@@ -0,0 +1,59 @@
/*
* 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/openanalytics/model/GetRegionStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
GetRegionStatusResult::GetRegionStatusResult() :
ServiceResult()
{}
GetRegionStatusResult::GetRegionStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetRegionStatusResult::~GetRegionStatusResult()
{}
void GetRegionStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string GetRegionStatusResult::getStatus()const
{
return status_;
}
std::string GetRegionStatusResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,170 @@
/*
* 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/openanalytics/model/OpenProductAccountRequest.h>
using AlibabaCloud::Openanalytics::Model::OpenProductAccountRequest;
OpenProductAccountRequest::OpenProductAccountRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "OpenProductAccount")
{}
OpenProductAccountRequest::~OpenProductAccountRequest()
{}
long OpenProductAccountRequest::getCallerParentId()const
{
return callerParentId_;
}
void OpenProductAccountRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long OpenProductAccountRequest::getCallerBid()const
{
return callerBid_;
}
void OpenProductAccountRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string OpenProductAccountRequest::getCallerType()const
{
return callerType_;
}
void OpenProductAccountRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool OpenProductAccountRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void OpenProductAccountRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string OpenProductAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void OpenProductAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool OpenProductAccountRequest::getSecurity_transport()const
{
return security_transport_;
}
void OpenProductAccountRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string OpenProductAccountRequest::getRegionID()const
{
return regionID_;
}
void OpenProductAccountRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string OpenProductAccountRequest::getRequestId()const
{
return requestId_;
}
void OpenProductAccountRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long OpenProductAccountRequest::getCallerUid()const
{
return callerUid_;
}
void OpenProductAccountRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string OpenProductAccountRequest::getProductCode()const
{
return productCode_;
}
void OpenProductAccountRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
}
std::string OpenProductAccountRequest::getProductAccessKey()const
{
return productAccessKey_;
}
void OpenProductAccountRequest::setProductAccessKey(const std::string& productAccessKey)
{
productAccessKey_ = productAccessKey;
setParameter("ProductAccessKey", productAccessKey);
}
std::string OpenProductAccountRequest::getTargetUid()const
{
return targetUid_;
}
void OpenProductAccountRequest::setTargetUid(const std::string& targetUid)
{
targetUid_ = targetUid;
setParameter("TargetUid", targetUid);
}
std::string OpenProductAccountRequest::getTargetArnRole()const
{
return targetArnRole_;
}
void OpenProductAccountRequest::setTargetArnRole(const std::string& targetArnRole)
{
targetArnRole_ = targetArnRole;
setParameter("TargetArnRole", targetArnRole);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/openanalytics/model/OpenProductAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
OpenProductAccountResult::OpenProductAccountResult() :
ServiceResult()
{}
OpenProductAccountResult::OpenProductAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OpenProductAccountResult::~OpenProductAccountResult()
{}
void OpenProductAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string OpenProductAccountResult::getData()const
{
return data_;
}
std::string OpenProductAccountResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/openanalytics/model/QueryEndPointListRequest.h>
using AlibabaCloud::Openanalytics::Model::QueryEndPointListRequest;
QueryEndPointListRequest::QueryEndPointListRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "QueryEndPointList")
{}
QueryEndPointListRequest::~QueryEndPointListRequest()
{}
bool QueryEndPointListRequest::getSecurity_transport()const
{
return security_transport_;
}
void QueryEndPointListRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string QueryEndPointListRequest::getRegionID()const
{
return regionID_;
}
void QueryEndPointListRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string QueryEndPointListRequest::getRequestId()const
{
return requestId_;
}
void QueryEndPointListRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long QueryEndPointListRequest::getCallerParentId()const
{
return callerParentId_;
}
void QueryEndPointListRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long QueryEndPointListRequest::getCallerBid()const
{
return callerBid_;
}
void QueryEndPointListRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string QueryEndPointListRequest::getCallerType()const
{
return callerType_;
}
void QueryEndPointListRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool QueryEndPointListRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void QueryEndPointListRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
long QueryEndPointListRequest::getCallerUid()const
{
return callerUid_;
}
void QueryEndPointListRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string QueryEndPointListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryEndPointListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long QueryEndPointListRequest::getUserID()const
{
return userID_;
}
void QueryEndPointListRequest::setUserID(long userID)
{
userID_ = userID;
setParameter("UserID", std::to_string(userID));
}

View File

@@ -0,0 +1,85 @@
/*
* 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/openanalytics/model/QueryEndPointListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
QueryEndPointListResult::QueryEndPointListResult() :
ServiceResult()
{}
QueryEndPointListResult::QueryEndPointListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryEndPointListResult::~QueryEndPointListResult()
{}
void QueryEndPointListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEndPointList = value["EndPointList"]["EndPointListItem"];
for (auto value : allEndPointList)
{
EndPointListItem endPointListObject;
if(!value["endPointID"].isNull())
endPointListObject.endPointID = value["endPointID"].asString();
if(!value["zone"].isNull())
endPointListObject.zone = value["zone"].asString();
if(!value["vSwitch"].isNull())
endPointListObject.vSwitch = value["vSwitch"].asString();
if(!value["status"].isNull())
endPointListObject.status = value["status"].asString();
if(!value["vpcID"].isNull())
endPointListObject.vpcID = value["vpcID"].asString();
if(!value["host"].isNull())
endPointListObject.host = value["host"].asString();
if(!value["domainURL"].isNull())
endPointListObject.domainURL = value["domainURL"].asString();
if(!value["networkType"].isNull())
endPointListObject.networkType = value["networkType"].asString();
if(!value["allowIP"].isNull())
endPointListObject.allowIP = value["allowIP"].asString();
if(!value["port"].isNull())
endPointListObject.port = value["port"].asString();
if(!value["cloudInstanceID"].isNull())
endPointListObject.cloudInstanceID = value["cloudInstanceID"].asString();
endPointList_.push_back(endPointListObject);
}
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
}
std::vector<QueryEndPointListResult::EndPointListItem> QueryEndPointListResult::getEndPointList()const
{
return endPointList_;
}
std::string QueryEndPointListResult::getRegionId()const
{
return regionId_;
}

View File

@@ -0,0 +1,170 @@
/*
* 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/openanalytics/model/SetAllowIPRequest.h>
using AlibabaCloud::Openanalytics::Model::SetAllowIPRequest;
SetAllowIPRequest::SetAllowIPRequest() :
RpcServiceRequest("openanalytics", "2018-03-01", "SetAllowIP")
{}
SetAllowIPRequest::~SetAllowIPRequest()
{}
long SetAllowIPRequest::getCallerParentId()const
{
return callerParentId_;
}
void SetAllowIPRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
long SetAllowIPRequest::getCallerBid()const
{
return callerBid_;
}
void SetAllowIPRequest::setCallerBid(long callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", std::to_string(callerBid));
}
std::string SetAllowIPRequest::getCallerType()const
{
return callerType_;
}
void SetAllowIPRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
bool SetAllowIPRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void SetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
std::string SetAllowIPRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool SetAllowIPRequest::getSecurity_transport()const
{
return security_transport_;
}
void SetAllowIPRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::string SetAllowIPRequest::getRegionID()const
{
return regionID_;
}
void SetAllowIPRequest::setRegionID(const std::string& regionID)
{
regionID_ = regionID;
setParameter("RegionID", regionID);
}
std::string SetAllowIPRequest::getRequestId()const
{
return requestId_;
}
void SetAllowIPRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
long SetAllowIPRequest::getCallerUid()const
{
return callerUid_;
}
void SetAllowIPRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
long SetAllowIPRequest::getUserID()const
{
return userID_;
}
void SetAllowIPRequest::setUserID(long userID)
{
userID_ = userID;
setParameter("UserID", std::to_string(userID));
}
std::string SetAllowIPRequest::getNetworkType()const
{
return networkType_;
}
void SetAllowIPRequest::setNetworkType(const std::string& networkType)
{
networkType_ = networkType;
setParameter("NetworkType", networkType);
}
std::string SetAllowIPRequest::getAllowIP()const
{
return allowIP_;
}
void SetAllowIPRequest::setAllowIP(const std::string& allowIP)
{
allowIP_ = allowIP;
setParameter("AllowIP", allowIP);
}
bool SetAllowIPRequest::getAppend()const
{
return append_;
}
void SetAllowIPRequest::setAppend(bool append)
{
append_ = append;
setParameter("Append", std::to_string(append));
}

View File

@@ -0,0 +1,52 @@
/*
* 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/openanalytics/model/SetAllowIPResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Openanalytics;
using namespace AlibabaCloud::Openanalytics::Model;
SetAllowIPResult::SetAllowIPResult() :
ServiceResult()
{}
SetAllowIPResult::SetAllowIPResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetAllowIPResult::~SetAllowIPResult()
{}
void SetAllowIPResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
}
std::string SetAllowIPResult::getRegionId()const
{
return regionId_;
}