Add auto grouping apis.

This commit is contained in:
sdk-team
2025-03-03 09:36:51 +00:00
parent a09160460b
commit 444397191f
96 changed files with 3689 additions and 288 deletions

View File

@@ -25,6 +25,15 @@ AttachPolicyRequest::AttachPolicyRequest()
AttachPolicyRequest::~AttachPolicyRequest() {}
std::string AttachPolicyRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void AttachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string AttachPolicyRequest::getPolicyType() const {
return policyType_;
}
@@ -43,15 +52,6 @@ void AttachPolicyRequest::setPrincipalType(const std::string &principalType) {
setParameter(std::string("PrincipalType"), principalType);
}
std::string AttachPolicyRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void AttachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string AttachPolicyRequest::getPolicyName() const {
return policyName_;
}

View File

@@ -0,0 +1,140 @@
/*
* 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/resourcemanager/model/CreateAutoGroupingRuleRequest.h>
using AlibabaCloud::ResourceManager::Model::CreateAutoGroupingRuleRequest;
CreateAutoGroupingRuleRequest::CreateAutoGroupingRuleRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "CreateAutoGroupingRule") {
setMethod(HttpRequest::Method::Post);
}
CreateAutoGroupingRuleRequest::~CreateAutoGroupingRuleRequest() {}
std::string CreateAutoGroupingRuleRequest::getRuleDesc() const {
return ruleDesc_;
}
void CreateAutoGroupingRuleRequest::setRuleDesc(const std::string &ruleDesc) {
ruleDesc_ = ruleDesc;
setParameter(std::string("RuleDesc"), ruleDesc);
}
std::string CreateAutoGroupingRuleRequest::getResourceTypesScope() const {
return resourceTypesScope_;
}
void CreateAutoGroupingRuleRequest::setResourceTypesScope(const std::string &resourceTypesScope) {
resourceTypesScope_ = resourceTypesScope;
setParameter(std::string("ResourceTypesScope"), resourceTypesScope);
}
std::string CreateAutoGroupingRuleRequest::getRuleName() const {
return ruleName_;
}
void CreateAutoGroupingRuleRequest::setRuleName(const std::string &ruleName) {
ruleName_ = ruleName;
setParameter(std::string("RuleName"), ruleName);
}
std::string CreateAutoGroupingRuleRequest::getExcludeResourceGroupIdsScope() const {
return excludeResourceGroupIdsScope_;
}
void CreateAutoGroupingRuleRequest::setExcludeResourceGroupIdsScope(const std::string &excludeResourceGroupIdsScope) {
excludeResourceGroupIdsScope_ = excludeResourceGroupIdsScope;
setParameter(std::string("ExcludeResourceGroupIdsScope"), excludeResourceGroupIdsScope);
}
std::string CreateAutoGroupingRuleRequest::getRegionIdsScope() const {
return regionIdsScope_;
}
void CreateAutoGroupingRuleRequest::setRegionIdsScope(const std::string &regionIdsScope) {
regionIdsScope_ = regionIdsScope;
setParameter(std::string("RegionIdsScope"), regionIdsScope);
}
std::string CreateAutoGroupingRuleRequest::getResourceIdsScope() const {
return resourceIdsScope_;
}
void CreateAutoGroupingRuleRequest::setResourceIdsScope(const std::string &resourceIdsScope) {
resourceIdsScope_ = resourceIdsScope;
setParameter(std::string("ResourceIdsScope"), resourceIdsScope);
}
std::vector<CreateAutoGroupingRuleRequest::RuleContents> CreateAutoGroupingRuleRequest::getRuleContents() const {
return ruleContents_;
}
void CreateAutoGroupingRuleRequest::setRuleContents(const std::vector<CreateAutoGroupingRuleRequest::RuleContents> &ruleContents) {
ruleContents_ = ruleContents;
for(int dep1 = 0; dep1 != ruleContents.size(); dep1++) {
auto ruleContentsObj = ruleContents.at(dep1);
std::string ruleContentsObjStr = std::string("RuleContents") + "." + std::to_string(dep1 + 1);
setParameter(ruleContentsObjStr + ".TargetResourceGroupCondition", ruleContentsObj.targetResourceGroupCondition);
setParameter(ruleContentsObjStr + ".AutoGroupingScopeCondition", ruleContentsObj.autoGroupingScopeCondition);
}
}
std::string CreateAutoGroupingRuleRequest::getExcludeResourceTypesScope() const {
return excludeResourceTypesScope_;
}
void CreateAutoGroupingRuleRequest::setExcludeResourceTypesScope(const std::string &excludeResourceTypesScope) {
excludeResourceTypesScope_ = excludeResourceTypesScope;
setParameter(std::string("ExcludeResourceTypesScope"), excludeResourceTypesScope);
}
std::string CreateAutoGroupingRuleRequest::getRuleType() const {
return ruleType_;
}
void CreateAutoGroupingRuleRequest::setRuleType(const std::string &ruleType) {
ruleType_ = ruleType;
setParameter(std::string("RuleType"), ruleType);
}
std::string CreateAutoGroupingRuleRequest::getResourceGroupIdsScope() const {
return resourceGroupIdsScope_;
}
void CreateAutoGroupingRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
resourceGroupIdsScope_ = resourceGroupIdsScope;
setParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
}
std::string CreateAutoGroupingRuleRequest::getExcludeRegionIdsScope() const {
return excludeRegionIdsScope_;
}
void CreateAutoGroupingRuleRequest::setExcludeRegionIdsScope(const std::string &excludeRegionIdsScope) {
excludeRegionIdsScope_ = excludeRegionIdsScope;
setParameter(std::string("ExcludeRegionIdsScope"), excludeRegionIdsScope);
}
std::string CreateAutoGroupingRuleRequest::getExcludeResourceIdsScope() const {
return excludeResourceIdsScope_;
}
void CreateAutoGroupingRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
excludeResourceIdsScope_ = excludeResourceIdsScope;
setParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
}

View File

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

View File

@@ -40,26 +40,26 @@ void CreateCloudAccountResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accountNode = value["Account"];
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["DisplayName"].isNull())
account_.displayName = accountNode["DisplayName"].asString();
if(!accountNode["FolderId"].isNull())
account_.folderId = accountNode["FolderId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["JoinMethod"].isNull())
account_.joinMethod = accountNode["JoinMethod"].asString();
if(!accountNode["ModifyTime"].isNull())
account_.modifyTime = accountNode["ModifyTime"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
}

View File

@@ -40,14 +40,14 @@ void CreatePolicyResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyNode = value["Policy"];
if(!policyNode["CreateDate"].isNull())
policy_.createDate = policyNode["CreateDate"].asString();
if(!policyNode["DefaultVersion"].isNull())
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
if(!policyNode["Description"].isNull())
policy_.description = policyNode["Description"].asString();
if(!policyNode["PolicyName"].isNull())
policy_.policyName = policyNode["PolicyName"].asString();
if(!policyNode["CreateDate"].isNull())
policy_.createDate = policyNode["CreateDate"].asString();
if(!policyNode["PolicyType"].isNull())
policy_.policyType = policyNode["PolicyType"].asString();

View File

@@ -40,12 +40,12 @@ void CreatePolicyVersionResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyVersionNode = value["PolicyVersion"];
if(!policyVersionNode["CreateDate"].isNull())
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
if(!policyVersionNode["IsDefaultVersion"].isNull())
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
if(!policyVersionNode["VersionId"].isNull())
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
if(!policyVersionNode["CreateDate"].isNull())
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
}

View File

@@ -43,3 +43,15 @@ void CreateResourceGroupRequest::setName(const std::string &name) {
setParameter(std::string("Name"), name);
}
std::vector<CreateResourceGroupRequest::Tag> CreateResourceGroupRequest::getTag() const {
return tag_;
}
void CreateResourceGroupRequest::setTag(const std::vector<CreateResourceGroupRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}

View File

@@ -40,26 +40,26 @@ void CreateResourceGroupResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceGroupNode = value["ResourceGroup"];
if(!resourceGroupNode["DisplayName"].isNull())
resourceGroup_.displayName = resourceGroupNode["DisplayName"].asString();
if(!resourceGroupNode["Status"].isNull())
resourceGroup_.status = resourceGroupNode["Status"].asString();
if(!resourceGroupNode["AccountId"].isNull())
resourceGroup_.accountId = resourceGroupNode["AccountId"].asString();
if(!resourceGroupNode["Name"].isNull())
resourceGroup_.name = resourceGroupNode["Name"].asString();
if(!resourceGroupNode["CreateDate"].isNull())
resourceGroup_.createDate = resourceGroupNode["CreateDate"].asString();
if(!resourceGroupNode["DisplayName"].isNull())
resourceGroup_.displayName = resourceGroupNode["DisplayName"].asString();
if(!resourceGroupNode["Id"].isNull())
resourceGroup_.id = resourceGroupNode["Id"].asString();
if(!resourceGroupNode["Name"].isNull())
resourceGroup_.name = resourceGroupNode["Name"].asString();
if(!resourceGroupNode["Status"].isNull())
resourceGroup_.status = resourceGroupNode["Status"].asString();
auto allRegionStatusesNode = resourceGroupNode["RegionStatuses"]["RegionStatus"];
for (auto resourceGroupNodeRegionStatusesRegionStatus : allRegionStatusesNode)
{
ResourceGroup::RegionStatus regionStatusObject;
if(!resourceGroupNodeRegionStatusesRegionStatus["Status"].isNull())
regionStatusObject.status = resourceGroupNodeRegionStatusesRegionStatus["Status"].asString();
if(!resourceGroupNodeRegionStatusesRegionStatus["RegionId"].isNull())
regionStatusObject.regionId = resourceGroupNodeRegionStatusesRegionStatus["RegionId"].asString();
if(!resourceGroupNodeRegionStatusesRegionStatus["Status"].isNull())
regionStatusObject.status = resourceGroupNodeRegionStatusesRegionStatus["Status"].asString();
resourceGroup_.regionStatuses.push_back(regionStatusObject);
}

View File

@@ -40,22 +40,22 @@ void CreateRoleResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto roleNode = value["Role"];
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["RolePrincipalName"].isNull())
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["MaxSessionDuration"].isNull())
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["RolePrincipalName"].isNull())
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
}

View File

@@ -40,22 +40,22 @@ void CreateServiceLinkedRoleResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto roleNode = value["Role"];
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["RolePrincipalName"].isNull())
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["IsServiceLinkedRole"].isNull())
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["RolePrincipalName"].isNull())
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
}

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcemanager/model/DeleteAutoGroupingRuleRequest.h>
using AlibabaCloud::ResourceManager::Model::DeleteAutoGroupingRuleRequest;
DeleteAutoGroupingRuleRequest::DeleteAutoGroupingRuleRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "DeleteAutoGroupingRule") {
setMethod(HttpRequest::Method::Post);
}
DeleteAutoGroupingRuleRequest::~DeleteAutoGroupingRuleRequest() {}
std::string DeleteAutoGroupingRuleRequest::getRuleId() const {
return ruleId_;
}
void DeleteAutoGroupingRuleRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/DeleteAutoGroupingRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
DeleteAutoGroupingRuleResult::DeleteAutoGroupingRuleResult() :
ServiceResult()
{}
DeleteAutoGroupingRuleResult::DeleteAutoGroupingRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAutoGroupingRuleResult::~DeleteAutoGroupingRuleResult()
{}
void DeleteAutoGroupingRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -25,6 +25,15 @@ DetachPolicyRequest::DetachPolicyRequest()
DetachPolicyRequest::~DetachPolicyRequest() {}
std::string DetachPolicyRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DetachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DetachPolicyRequest::getPolicyType() const {
return policyType_;
}
@@ -43,15 +52,6 @@ void DetachPolicyRequest::setPrincipalType(const std::string &principalType) {
setParameter(std::string("PrincipalType"), principalType);
}
std::string DetachPolicyRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DetachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DetachPolicyRequest::getPolicyName() const {
return policyName_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcemanager/model/DisableAssociatedTransferRequest.h>
using AlibabaCloud::ResourceManager::Model::DisableAssociatedTransferRequest;
DisableAssociatedTransferRequest::DisableAssociatedTransferRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "DisableAssociatedTransfer") {
setMethod(HttpRequest::Method::Post);
}
DisableAssociatedTransferRequest::~DisableAssociatedTransferRequest() {}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/DisableAssociatedTransferResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
DisableAssociatedTransferResult::DisableAssociatedTransferResult() :
ServiceResult()
{}
DisableAssociatedTransferResult::DisableAssociatedTransferResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableAssociatedTransferResult::~DisableAssociatedTransferResult()
{}
void DisableAssociatedTransferResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcemanager/model/DisableAutoGroupingRequest.h>
using AlibabaCloud::ResourceManager::Model::DisableAutoGroupingRequest;
DisableAutoGroupingRequest::DisableAutoGroupingRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "DisableAutoGrouping") {
setMethod(HttpRequest::Method::Post);
}
DisableAutoGroupingRequest::~DisableAutoGroupingRequest() {}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/DisableAutoGroupingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
DisableAutoGroupingResult::DisableAutoGroupingResult() :
ServiceResult()
{}
DisableAutoGroupingResult::DisableAutoGroupingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableAutoGroupingResult::~DisableAutoGroupingResult()
{}
void DisableAutoGroupingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcemanager/model/EnableAssociatedTransferRequest.h>
using AlibabaCloud::ResourceManager::Model::EnableAssociatedTransferRequest;
EnableAssociatedTransferRequest::EnableAssociatedTransferRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "EnableAssociatedTransfer") {
setMethod(HttpRequest::Method::Post);
}
EnableAssociatedTransferRequest::~EnableAssociatedTransferRequest() {}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/EnableAssociatedTransferResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
EnableAssociatedTransferResult::EnableAssociatedTransferResult() :
ServiceResult()
{}
EnableAssociatedTransferResult::EnableAssociatedTransferResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableAssociatedTransferResult::~EnableAssociatedTransferResult()
{}
void EnableAssociatedTransferResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcemanager/model/EnableAutoGroupingRequest.h>
using AlibabaCloud::ResourceManager::Model::EnableAutoGroupingRequest;
EnableAutoGroupingRequest::EnableAutoGroupingRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "EnableAutoGrouping") {
setMethod(HttpRequest::Method::Post);
}
EnableAutoGroupingRequest::~EnableAutoGroupingRequest() {}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/EnableAutoGroupingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
EnableAutoGroupingResult::EnableAutoGroupingResult() :
ServiceResult()
{}
EnableAutoGroupingResult::EnableAutoGroupingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableAutoGroupingResult::~EnableAutoGroupingResult()
{}
void EnableAutoGroupingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcemanager/model/GetAutoGroupingRuleRequest.h>
using AlibabaCloud::ResourceManager::Model::GetAutoGroupingRuleRequest;
GetAutoGroupingRuleRequest::GetAutoGroupingRuleRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "GetAutoGroupingRule") {
setMethod(HttpRequest::Method::Post);
}
GetAutoGroupingRuleRequest::~GetAutoGroupingRuleRequest() {}
std::string GetAutoGroupingRuleRequest::getRuleId() const {
return ruleId_;
}
void GetAutoGroupingRuleRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/resourcemanager/model/GetAutoGroupingRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
GetAutoGroupingRuleResult::GetAutoGroupingRuleResult() :
ServiceResult()
{}
GetAutoGroupingRuleResult::GetAutoGroupingRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAutoGroupingRuleResult::~GetAutoGroupingRuleResult()
{}
void GetAutoGroupingRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto ruleNode = value["Rule"];
if(!ruleNode["CreateTime"].isNull())
rule_.createTime = ruleNode["CreateTime"].asString();
if(!ruleNode["ExcludeRegionIdsScope"].isNull())
rule_.excludeRegionIdsScope = ruleNode["ExcludeRegionIdsScope"].asString();
if(!ruleNode["ExcludeResourceGroupIdsScope"].isNull())
rule_.excludeResourceGroupIdsScope = ruleNode["ExcludeResourceGroupIdsScope"].asString();
if(!ruleNode["ExcludeResourceIdsScope"].isNull())
rule_.excludeResourceIdsScope = ruleNode["ExcludeResourceIdsScope"].asString();
if(!ruleNode["ExcludeResourceTypesScope"].isNull())
rule_.excludeResourceTypesScope = ruleNode["ExcludeResourceTypesScope"].asString();
if(!ruleNode["ModifyTime"].isNull())
rule_.modifyTime = ruleNode["ModifyTime"].asString();
if(!ruleNode["RegionIdsScope"].isNull())
rule_.regionIdsScope = ruleNode["RegionIdsScope"].asString();
if(!ruleNode["ResourceGroupIdsScope"].isNull())
rule_.resourceGroupIdsScope = ruleNode["ResourceGroupIdsScope"].asString();
if(!ruleNode["ResourceIdsScope"].isNull())
rule_.resourceIdsScope = ruleNode["ResourceIdsScope"].asString();
if(!ruleNode["ResourceTypesScope"].isNull())
rule_.resourceTypesScope = ruleNode["ResourceTypesScope"].asString();
if(!ruleNode["RuleDesc"].isNull())
rule_.ruleDesc = ruleNode["RuleDesc"].asString();
if(!ruleNode["RuleId"].isNull())
rule_.ruleId = ruleNode["RuleId"].asString();
if(!ruleNode["RuleName"].isNull())
rule_.ruleName = ruleNode["RuleName"].asString();
if(!ruleNode["RuleType"].isNull())
rule_.ruleType = ruleNode["RuleType"].asString();
auto allRuleContentsNode = ruleNode["RuleContents"]["RuleContent"];
for (auto ruleNodeRuleContentsRuleContent : allRuleContentsNode)
{
Rule::RuleContent ruleContentObject;
if(!ruleNodeRuleContentsRuleContent["AutoGroupingScopeCondition"].isNull())
ruleContentObject.autoGroupingScopeCondition = ruleNodeRuleContentsRuleContent["AutoGroupingScopeCondition"].asString();
if(!ruleNodeRuleContentsRuleContent["RuleContentId"].isNull())
ruleContentObject.ruleContentId = ruleNodeRuleContentsRuleContent["RuleContentId"].asString();
if(!ruleNodeRuleContentsRuleContent["TargetResourceGroupCondition"].isNull())
ruleContentObject.targetResourceGroupCondition = ruleNodeRuleContentsRuleContent["TargetResourceGroupCondition"].asString();
rule_.ruleContents.push_back(ruleContentObject);
}
}
GetAutoGroupingRuleResult::Rule GetAutoGroupingRuleResult::getRule()const
{
return rule_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcemanager/model/GetAutoGroupingStatusRequest.h>
using AlibabaCloud::ResourceManager::Model::GetAutoGroupingStatusRequest;
GetAutoGroupingStatusRequest::GetAutoGroupingStatusRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "GetAutoGroupingStatus") {
setMethod(HttpRequest::Method::Post);
}
GetAutoGroupingStatusRequest::~GetAutoGroupingStatusRequest() {}

View File

@@ -0,0 +1,58 @@
/*
* 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/resourcemanager/model/GetAutoGroupingStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
GetAutoGroupingStatusResult::GetAutoGroupingStatusResult() :
ServiceResult()
{}
GetAutoGroupingStatusResult::GetAutoGroupingStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAutoGroupingStatusResult::~GetAutoGroupingStatusResult()
{}
void GetAutoGroupingStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EnableExistedResourcesTransfer"].isNull())
enableExistedResourcesTransfer_ = value["EnableExistedResourcesTransfer"].asString() == "true";
if(!value["EnableStatus"].isNull())
enableStatus_ = value["EnableStatus"].asString();
}
std::string GetAutoGroupingStatusResult::getEnableStatus()const
{
return enableStatus_;
}
bool GetAutoGroupingStatusResult::getEnableExistedResourcesTransfer()const
{
return enableExistedResourcesTransfer_;
}

View File

@@ -40,22 +40,22 @@ void GetPolicyResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyNode = value["Policy"];
if(!policyNode["AttachmentCount"].isNull())
policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString());
if(!policyNode["CreateDate"].isNull())
policy_.createDate = policyNode["CreateDate"].asString();
if(!policyNode["DefaultVersion"].isNull())
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
if(!policyNode["UpdateDate"].isNull())
policy_.updateDate = policyNode["UpdateDate"].asString();
if(!policyNode["Description"].isNull())
policy_.description = policyNode["Description"].asString();
if(!policyNode["PolicyDocument"].isNull())
policy_.policyDocument = policyNode["PolicyDocument"].asString();
if(!policyNode["AttachmentCount"].isNull())
policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString());
if(!policyNode["PolicyName"].isNull())
policy_.policyName = policyNode["PolicyName"].asString();
if(!policyNode["CreateDate"].isNull())
policy_.createDate = policyNode["CreateDate"].asString();
if(!policyNode["PolicyType"].isNull())
policy_.policyType = policyNode["PolicyType"].asString();
if(!policyNode["UpdateDate"].isNull())
policy_.updateDate = policyNode["UpdateDate"].asString();
}

View File

@@ -40,14 +40,14 @@ void GetPolicyVersionResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto policyVersionNode = value["PolicyVersion"];
if(!policyVersionNode["CreateDate"].isNull())
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
if(!policyVersionNode["IsDefaultVersion"].isNull())
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
if(!policyVersionNode["PolicyDocument"].isNull())
policyVersion_.policyDocument = policyVersionNode["PolicyDocument"].asString();
if(!policyVersionNode["VersionId"].isNull())
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
if(!policyVersionNode["CreateDate"].isNull())
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
}

View File

@@ -40,24 +40,24 @@ void GetResourceDirectoryResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceDirectoryNode = value["ResourceDirectory"];
if(!resourceDirectoryNode["RootFolderId"].isNull())
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
if(!resourceDirectoryNode["ControlPolicyStatus"].isNull())
resourceDirectory_.controlPolicyStatus = resourceDirectoryNode["ControlPolicyStatus"].asString();
if(!resourceDirectoryNode["CreateTime"].isNull())
resourceDirectory_.createTime = resourceDirectoryNode["CreateTime"].asString();
if(!resourceDirectoryNode["IdentityInformation"].isNull())
resourceDirectory_.identityInformation = resourceDirectoryNode["IdentityInformation"].asString();
if(!resourceDirectoryNode["MasterAccountId"].isNull())
resourceDirectory_.masterAccountId = resourceDirectoryNode["MasterAccountId"].asString();
if(!resourceDirectoryNode["MasterAccountName"].isNull())
resourceDirectory_.masterAccountName = resourceDirectoryNode["MasterAccountName"].asString();
if(!resourceDirectoryNode["ScpStatus"].isNull())
resourceDirectory_.scpStatus = resourceDirectoryNode["ScpStatus"].asString();
if(!resourceDirectoryNode["ControlPolicyStatus"].isNull())
resourceDirectory_.controlPolicyStatus = resourceDirectoryNode["ControlPolicyStatus"].asString();
if(!resourceDirectoryNode["MemberDeletionStatus"].isNull())
resourceDirectory_.memberDeletionStatus = resourceDirectoryNode["MemberDeletionStatus"].asString();
if(!resourceDirectoryNode["IdentityInformation"].isNull())
resourceDirectory_.identityInformation = resourceDirectoryNode["IdentityInformation"].asString();
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
if(!resourceDirectoryNode["RootFolderId"].isNull())
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
if(!resourceDirectoryNode["ScpStatus"].isNull())
resourceDirectory_.scpStatus = resourceDirectoryNode["ScpStatus"].asString();
}

View File

@@ -40,31 +40,31 @@ void GetRoleResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto roleNode = value["Role"];
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["IsServiceLinkedRole"].isNull())
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
if(!roleNode["MaxSessionDuration"].isNull())
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["RolePrincipalName"].isNull())
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
if(!roleNode["UpdateDate"].isNull())
role_.updateDate = roleNode["UpdateDate"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["MaxSessionDuration"].isNull())
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["IsServiceLinkedRole"].isNull())
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
auto latestDeletionTaskNode = roleNode["LatestDeletionTask"];
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
role_.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
if(!latestDeletionTaskNode["CreateDate"].isNull())
role_.latestDeletionTask.createDate = latestDeletionTaskNode["CreateDate"].asString();
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
role_.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
}

View File

@@ -40,16 +40,16 @@ void InitResourceDirectoryResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceDirectoryNode = value["ResourceDirectory"];
if(!resourceDirectoryNode["RootFolderId"].isNull())
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
if(!resourceDirectoryNode["CreateTime"].isNull())
resourceDirectory_.createTime = resourceDirectoryNode["CreateTime"].asString();
if(!resourceDirectoryNode["MasterAccountId"].isNull())
resourceDirectory_.masterAccountId = resourceDirectoryNode["MasterAccountId"].asString();
if(!resourceDirectoryNode["MasterAccountName"].isNull())
resourceDirectory_.masterAccountName = resourceDirectoryNode["MasterAccountName"].asString();
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
if(!resourceDirectoryNode["RootFolderId"].isNull())
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
}

View File

@@ -25,15 +25,6 @@ ListAccountsForParentRequest::ListAccountsForParentRequest()
ListAccountsForParentRequest::~ListAccountsForParentRequest() {}
std::string ListAccountsForParentRequest::getQueryKeyword() const {
return queryKeyword_;
}
void ListAccountsForParentRequest::setQueryKeyword(const std::string &queryKeyword) {
queryKeyword_ = queryKeyword;
setParameter(std::string("QueryKeyword"), queryKeyword);
}
int ListAccountsForParentRequest::getPageNumber() const {
return pageNumber_;
}
@@ -43,24 +34,6 @@ void ListAccountsForParentRequest::setPageNumber(int pageNumber) {
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListAccountsForParentRequest::getParentFolderId() const {
return parentFolderId_;
}
void ListAccountsForParentRequest::setParentFolderId(const std::string &parentFolderId) {
parentFolderId_ = parentFolderId;
setParameter(std::string("ParentFolderId"), parentFolderId);
}
bool ListAccountsForParentRequest::getIncludeTags() const {
return includeTags_;
}
void ListAccountsForParentRequest::setIncludeTags(bool includeTags) {
includeTags_ = includeTags;
setParameter(std::string("IncludeTags"), includeTags ? "true" : "false");
}
int ListAccountsForParentRequest::getPageSize() const {
return pageSize_;
}
@@ -82,3 +55,30 @@ void ListAccountsForParentRequest::setTag(const std::vector<ListAccountsForParen
}
}
std::string ListAccountsForParentRequest::getQueryKeyword() const {
return queryKeyword_;
}
void ListAccountsForParentRequest::setQueryKeyword(const std::string &queryKeyword) {
queryKeyword_ = queryKeyword;
setParameter(std::string("QueryKeyword"), queryKeyword);
}
std::string ListAccountsForParentRequest::getParentFolderId() const {
return parentFolderId_;
}
void ListAccountsForParentRequest::setParentFolderId(const std::string &parentFolderId) {
parentFolderId_ = parentFolderId;
setParameter(std::string("ParentFolderId"), parentFolderId);
}
bool ListAccountsForParentRequest::getIncludeTags() const {
return includeTags_;
}
void ListAccountsForParentRequest::setIncludeTags(bool includeTags) {
includeTags_ = includeTags;
setParameter(std::string("IncludeTags"), includeTags ? "true" : "false");
}

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcemanager/model/ListAssociatedTransferSettingRequest.h>
using AlibabaCloud::ResourceManager::Model::ListAssociatedTransferSettingRequest;
ListAssociatedTransferSettingRequest::ListAssociatedTransferSettingRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "ListAssociatedTransferSetting") {
setMethod(HttpRequest::Method::Post);
}
ListAssociatedTransferSettingRequest::~ListAssociatedTransferSettingRequest() {}

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/resourcemanager/model/ListAssociatedTransferSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
ListAssociatedTransferSettingResult::ListAssociatedTransferSettingResult() :
ServiceResult()
{}
ListAssociatedTransferSettingResult::ListAssociatedTransferSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAssociatedTransferSettingResult::~ListAssociatedTransferSettingResult()
{}
void ListAssociatedTransferSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto associatedTransferSettingNode = value["AssociatedTransferSetting"];
if(!associatedTransferSettingNode["AccountId"].isNull())
associatedTransferSetting_.accountId = associatedTransferSettingNode["AccountId"].asString();
if(!associatedTransferSettingNode["Status"].isNull())
associatedTransferSetting_.status = associatedTransferSettingNode["Status"].asString();
if(!associatedTransferSettingNode["EnablePartialRule"].isNull())
associatedTransferSetting_.enablePartialRule = associatedTransferSettingNode["EnablePartialRule"].asString();
if(!associatedTransferSettingNode["EnableExistingResourcesTransfer"].isNull())
associatedTransferSetting_.enableExistingResourcesTransfer = associatedTransferSettingNode["EnableExistingResourcesTransfer"].asString();
auto allRuleSettingsNode = associatedTransferSettingNode["RuleSettings"]["RuleSetting"];
for (auto associatedTransferSettingNodeRuleSettingsRuleSetting : allRuleSettingsNode)
{
AssociatedTransferSetting::RuleSetting ruleSettingObject;
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedResourceType"].isNull())
ruleSettingObject.associatedResourceType = associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedResourceType"].asString();
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["MasterResourceType"].isNull())
ruleSettingObject.masterResourceType = associatedTransferSettingNodeRuleSettingsRuleSetting["MasterResourceType"].asString();
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedService"].isNull())
ruleSettingObject.associatedService = associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedService"].asString();
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["MasterService"].isNull())
ruleSettingObject.masterService = associatedTransferSettingNodeRuleSettingsRuleSetting["MasterService"].asString();
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["TriggerType"].isNull())
ruleSettingObject.triggerType = associatedTransferSettingNodeRuleSettingsRuleSetting["TriggerType"].asString();
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["RuleId"].isNull())
ruleSettingObject.ruleId = associatedTransferSettingNodeRuleSettingsRuleSetting["RuleId"].asString();
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["Status"].isNull())
ruleSettingObject.status = associatedTransferSettingNodeRuleSettingsRuleSetting["Status"].asString();
associatedTransferSetting_.ruleSettings.push_back(ruleSettingObject);
}
}
ListAssociatedTransferSettingResult::AssociatedTransferSetting ListAssociatedTransferSettingResult::getAssociatedTransferSetting()const
{
return associatedTransferSetting_;
}

View File

@@ -0,0 +1,72 @@
/*
* 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/resourcemanager/model/ListAutoGroupingRulesRequest.h>
using AlibabaCloud::ResourceManager::Model::ListAutoGroupingRulesRequest;
ListAutoGroupingRulesRequest::ListAutoGroupingRulesRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "ListAutoGroupingRules") {
setMethod(HttpRequest::Method::Post);
}
ListAutoGroupingRulesRequest::~ListAutoGroupingRulesRequest() {}
std::string ListAutoGroupingRulesRequest::getRuleName() const {
return ruleName_;
}
void ListAutoGroupingRulesRequest::setRuleName(const std::string &ruleName) {
ruleName_ = ruleName;
setParameter(std::string("RuleName"), ruleName);
}
std::string ListAutoGroupingRulesRequest::getNextToken() const {
return nextToken_;
}
void ListAutoGroupingRulesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListAutoGroupingRulesRequest::getRuleType() const {
return ruleType_;
}
void ListAutoGroupingRulesRequest::setRuleType(const std::string &ruleType) {
ruleType_ = ruleType;
setParameter(std::string("RuleType"), ruleType);
}
int ListAutoGroupingRulesRequest::getMaxResults() const {
return maxResults_;
}
void ListAutoGroupingRulesRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}
std::string ListAutoGroupingRulesRequest::getRuleId() const {
return ruleId_;
}
void ListAutoGroupingRulesRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

@@ -0,0 +1,109 @@
/*
* 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/resourcemanager/model/ListAutoGroupingRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
ListAutoGroupingRulesResult::ListAutoGroupingRulesResult() :
ServiceResult()
{}
ListAutoGroupingRulesResult::ListAutoGroupingRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAutoGroupingRulesResult::~ListAutoGroupingRulesResult()
{}
void ListAutoGroupingRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRulesNode = value["Rules"]["Rule"];
for (auto valueRulesRule : allRulesNode)
{
Rule rulesObject;
if(!valueRulesRule["CreateTime"].isNull())
rulesObject.createTime = valueRulesRule["CreateTime"].asString();
if(!valueRulesRule["ExcludeRegionIdsScope"].isNull())
rulesObject.excludeRegionIdsScope = valueRulesRule["ExcludeRegionIdsScope"].asString();
if(!valueRulesRule["ExcludeResourceGroupIdsScope"].isNull())
rulesObject.excludeResourceGroupIdsScope = valueRulesRule["ExcludeResourceGroupIdsScope"].asString();
if(!valueRulesRule["ExcludeResourceIdsScope"].isNull())
rulesObject.excludeResourceIdsScope = valueRulesRule["ExcludeResourceIdsScope"].asString();
if(!valueRulesRule["ExcludeResourceTypesScope"].isNull())
rulesObject.excludeResourceTypesScope = valueRulesRule["ExcludeResourceTypesScope"].asString();
if(!valueRulesRule["ModifyTime"].isNull())
rulesObject.modifyTime = valueRulesRule["ModifyTime"].asString();
if(!valueRulesRule["RegionIdsScope"].isNull())
rulesObject.regionIdsScope = valueRulesRule["RegionIdsScope"].asString();
if(!valueRulesRule["ResourceGroupIdsScope"].isNull())
rulesObject.resourceGroupIdsScope = valueRulesRule["ResourceGroupIdsScope"].asString();
if(!valueRulesRule["ResourceIdsScope"].isNull())
rulesObject.resourceIdsScope = valueRulesRule["ResourceIdsScope"].asString();
if(!valueRulesRule["ResourceTypesScope"].isNull())
rulesObject.resourceTypesScope = valueRulesRule["ResourceTypesScope"].asString();
if(!valueRulesRule["RuleDesc"].isNull())
rulesObject.ruleDesc = valueRulesRule["RuleDesc"].asString();
if(!valueRulesRule["RuleId"].isNull())
rulesObject.ruleId = valueRulesRule["RuleId"].asString();
if(!valueRulesRule["RuleName"].isNull())
rulesObject.ruleName = valueRulesRule["RuleName"].asString();
if(!valueRulesRule["RuleType"].isNull())
rulesObject.ruleType = valueRulesRule["RuleType"].asString();
auto allRuleContentsNode = valueRulesRule["RuleContents"]["RuleContent"];
for (auto valueRulesRuleRuleContentsRuleContent : allRuleContentsNode)
{
Rule::RuleContent ruleContentsObject;
if(!valueRulesRuleRuleContentsRuleContent["AutoGroupingScopeCondition"].isNull())
ruleContentsObject.autoGroupingScopeCondition = valueRulesRuleRuleContentsRuleContent["AutoGroupingScopeCondition"].asString();
if(!valueRulesRuleRuleContentsRuleContent["RuleContentId"].isNull())
ruleContentsObject.ruleContentId = valueRulesRuleRuleContentsRuleContent["RuleContentId"].asString();
if(!valueRulesRuleRuleContentsRuleContent["TargetResourceGroupCondition"].isNull())
ruleContentsObject.targetResourceGroupCondition = valueRulesRuleRuleContentsRuleContent["TargetResourceGroupCondition"].asString();
rulesObject.ruleContents.push_back(ruleContentsObject);
}
rules_.push_back(rulesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}
std::string ListAutoGroupingRulesResult::getNextToken()const
{
return nextToken_;
}
int ListAutoGroupingRulesResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListAutoGroupingRulesResult::Rule> ListAutoGroupingRulesResult::getRules()const
{
return rules_;
}

View File

@@ -43,28 +43,28 @@ void ListPoliciesResult::parse(const std::string &payload)
for (auto valuePoliciesPolicy : allPoliciesNode)
{
Policy policiesObject;
if(!valuePoliciesPolicy["AttachmentCount"].isNull())
policiesObject.attachmentCount = std::stoi(valuePoliciesPolicy["AttachmentCount"].asString());
if(!valuePoliciesPolicy["CreateDate"].isNull())
policiesObject.createDate = valuePoliciesPolicy["CreateDate"].asString();
if(!valuePoliciesPolicy["DefaultVersion"].isNull())
policiesObject.defaultVersion = valuePoliciesPolicy["DefaultVersion"].asString();
if(!valuePoliciesPolicy["Description"].isNull())
policiesObject.description = valuePoliciesPolicy["Description"].asString();
if(!valuePoliciesPolicy["UpdateDate"].isNull())
policiesObject.updateDate = valuePoliciesPolicy["UpdateDate"].asString();
if(!valuePoliciesPolicy["AttachmentCount"].isNull())
policiesObject.attachmentCount = std::stoi(valuePoliciesPolicy["AttachmentCount"].asString());
if(!valuePoliciesPolicy["PolicyName"].isNull())
policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString();
if(!valuePoliciesPolicy["CreateDate"].isNull())
policiesObject.createDate = valuePoliciesPolicy["CreateDate"].asString();
if(!valuePoliciesPolicy["PolicyType"].isNull())
policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString();
if(!valuePoliciesPolicy["UpdateDate"].isNull())
policiesObject.updateDate = valuePoliciesPolicy["UpdateDate"].asString();
policies_.push_back(policiesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}

View File

@@ -43,28 +43,28 @@ void ListPolicyAttachmentsResult::parse(const std::string &payload)
for (auto valuePolicyAttachmentsPolicyAttachment : allPolicyAttachmentsNode)
{
PolicyAttachment policyAttachmentsObject;
if(!valuePolicyAttachmentsPolicyAttachment["Description"].isNull())
policyAttachmentsObject.description = valuePolicyAttachmentsPolicyAttachment["Description"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].isNull())
policyAttachmentsObject.resourceGroupId = valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["PolicyName"].isNull())
policyAttachmentsObject.policyName = valuePolicyAttachmentsPolicyAttachment["PolicyName"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["PrincipalName"].isNull())
policyAttachmentsObject.principalName = valuePolicyAttachmentsPolicyAttachment["PrincipalName"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["AttachDate"].isNull())
policyAttachmentsObject.attachDate = valuePolicyAttachmentsPolicyAttachment["AttachDate"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["Description"].isNull())
policyAttachmentsObject.description = valuePolicyAttachmentsPolicyAttachment["Description"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["PolicyName"].isNull())
policyAttachmentsObject.policyName = valuePolicyAttachmentsPolicyAttachment["PolicyName"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["PolicyType"].isNull())
policyAttachmentsObject.policyType = valuePolicyAttachmentsPolicyAttachment["PolicyType"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["PrincipalName"].isNull())
policyAttachmentsObject.principalName = valuePolicyAttachmentsPolicyAttachment["PrincipalName"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["PrincipalType"].isNull())
policyAttachmentsObject.principalType = valuePolicyAttachmentsPolicyAttachment["PrincipalType"].asString();
if(!valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].isNull())
policyAttachmentsObject.resourceGroupId = valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].asString();
policyAttachments_.push_back(policyAttachmentsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}

View File

@@ -43,12 +43,12 @@ void ListPolicyVersionsResult::parse(const std::string &payload)
for (auto valuePolicyVersionsPolicyVersion : allPolicyVersionsNode)
{
PolicyVersion policyVersionsObject;
if(!valuePolicyVersionsPolicyVersion["CreateDate"].isNull())
policyVersionsObject.createDate = valuePolicyVersionsPolicyVersion["CreateDate"].asString();
if(!valuePolicyVersionsPolicyVersion["IsDefaultVersion"].isNull())
policyVersionsObject.isDefaultVersion = valuePolicyVersionsPolicyVersion["IsDefaultVersion"].asString() == "true";
if(!valuePolicyVersionsPolicyVersion["VersionId"].isNull())
policyVersionsObject.versionId = valuePolicyVersionsPolicyVersion["VersionId"].asString();
if(!valuePolicyVersionsPolicyVersion["CreateDate"].isNull())
policyVersionsObject.createDate = valuePolicyVersionsPolicyVersion["CreateDate"].asString();
policyVersions_.push_back(policyVersionsObject);
}

View File

@@ -43,37 +43,37 @@ void ListRolesResult::parse(const std::string &payload)
for (auto valueRolesRole : allRolesNode)
{
Role rolesObject;
if(!valueRolesRole["Arn"].isNull())
rolesObject.arn = valueRolesRole["Arn"].asString();
if(!valueRolesRole["CreateDate"].isNull())
rolesObject.createDate = valueRolesRole["CreateDate"].asString();
if(!valueRolesRole["Description"].isNull())
rolesObject.description = valueRolesRole["Description"].asString();
if(!valueRolesRole["IsServiceLinkedRole"].isNull())
rolesObject.isServiceLinkedRole = valueRolesRole["IsServiceLinkedRole"].asString() == "true";
if(!valueRolesRole["MaxSessionDuration"].isNull())
rolesObject.maxSessionDuration = std::stol(valueRolesRole["MaxSessionDuration"].asString());
if(!valueRolesRole["RoleId"].isNull())
rolesObject.roleId = valueRolesRole["RoleId"].asString();
if(!valueRolesRole["RoleName"].isNull())
rolesObject.roleName = valueRolesRole["RoleName"].asString();
if(!valueRolesRole["RolePrincipalName"].isNull())
rolesObject.rolePrincipalName = valueRolesRole["RolePrincipalName"].asString();
if(!valueRolesRole["UpdateDate"].isNull())
rolesObject.updateDate = valueRolesRole["UpdateDate"].asString();
if(!valueRolesRole["Description"].isNull())
rolesObject.description = valueRolesRole["Description"].asString();
if(!valueRolesRole["MaxSessionDuration"].isNull())
rolesObject.maxSessionDuration = std::stol(valueRolesRole["MaxSessionDuration"].asString());
if(!valueRolesRole["RoleName"].isNull())
rolesObject.roleName = valueRolesRole["RoleName"].asString();
if(!valueRolesRole["CreateDate"].isNull())
rolesObject.createDate = valueRolesRole["CreateDate"].asString();
if(!valueRolesRole["RoleId"].isNull())
rolesObject.roleId = valueRolesRole["RoleId"].asString();
if(!valueRolesRole["Arn"].isNull())
rolesObject.arn = valueRolesRole["Arn"].asString();
if(!valueRolesRole["IsServiceLinkedRole"].isNull())
rolesObject.isServiceLinkedRole = valueRolesRole["IsServiceLinkedRole"].asString() == "true";
auto latestDeletionTaskNode = value["LatestDeletionTask"];
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
rolesObject.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
if(!latestDeletionTaskNode["CreateDate"].isNull())
rolesObject.latestDeletionTask.createDate = latestDeletionTaskNode["CreateDate"].asString();
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
rolesObject.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
roles_.push_back(rolesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}

View File

@@ -25,6 +25,27 @@ ListTagResourcesRequest::ListTagResourcesRequest()
ListTagResourcesRequest::~ListTagResourcesRequest() {}
std::string ListTagResourcesRequest::getNextToken() const {
return nextToken_;
}
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
return tag_;
}
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}
std::vector<ListTagResourcesRequest::std::string> ListTagResourcesRequest::getResourceId() const {
return resourceId_;
}
@@ -45,15 +66,6 @@ void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
setParameter(std::string("ResourceType"), resourceType);
}
std::string ListTagResourcesRequest::getNextToken() const {
return nextToken_;
}
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
int ListTagResourcesRequest::getMaxResults() const {
return maxResults_;
}
@@ -63,15 +75,3 @@ void ListTagResourcesRequest::setMaxResults(int maxResults) {
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
return tag_;
}
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
}
}

View File

@@ -40,28 +40,28 @@ void PromoteResourceAccountResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accountNode = value["Account"];
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["DisplayName"].isNull())
account_.displayName = accountNode["DisplayName"].asString();
if(!accountNode["FolderId"].isNull())
account_.folderId = accountNode["FolderId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["JoinTime"].isNull())
account_.joinTime = accountNode["JoinTime"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["JoinMethod"].isNull())
account_.joinMethod = accountNode["JoinMethod"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["JoinTime"].isNull())
account_.joinTime = accountNode["JoinTime"].asString();
if(!accountNode["ModifyTime"].isNull())
account_.modifyTime = accountNode["ModifyTime"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
}

View File

@@ -40,28 +40,28 @@ void ResendCreateCloudAccountEmailResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accountNode = value["Account"];
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["DisplayName"].isNull())
account_.displayName = accountNode["DisplayName"].asString();
if(!accountNode["FolderId"].isNull())
account_.folderId = accountNode["FolderId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["JoinTime"].isNull())
account_.joinTime = accountNode["JoinTime"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["JoinMethod"].isNull())
account_.joinMethod = accountNode["JoinMethod"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["JoinTime"].isNull())
account_.joinTime = accountNode["JoinTime"].asString();
if(!accountNode["ModifyTime"].isNull())
account_.modifyTime = accountNode["ModifyTime"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
}

View File

@@ -40,28 +40,28 @@ void ResendPromoteResourceAccountEmailResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accountNode = value["Account"];
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["DisplayName"].isNull())
account_.displayName = accountNode["DisplayName"].asString();
if(!accountNode["FolderId"].isNull())
account_.folderId = accountNode["FolderId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["JoinTime"].isNull())
account_.joinTime = accountNode["JoinTime"].asString();
if(!accountNode["AccountId"].isNull())
account_.accountId = accountNode["AccountId"].asString();
if(!accountNode["JoinMethod"].isNull())
account_.joinMethod = accountNode["JoinMethod"].asString();
if(!accountNode["AccountName"].isNull())
account_.accountName = accountNode["AccountName"].asString();
if(!accountNode["JoinTime"].isNull())
account_.joinTime = accountNode["JoinTime"].asString();
if(!accountNode["ModifyTime"].isNull())
account_.modifyTime = accountNode["ModifyTime"].asString();
if(!accountNode["RecordId"].isNull())
account_.recordId = accountNode["RecordId"].asString();
if(!accountNode["ResourceDirectoryId"].isNull())
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
if(!accountNode["Status"].isNull())
account_.status = accountNode["Status"].asString();
if(!accountNode["Type"].isNull())
account_.type = accountNode["Type"].asString();
}

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/resourcemanager/model/UpdateAssociatedTransferSettingRequest.h>
using AlibabaCloud::ResourceManager::Model::UpdateAssociatedTransferSettingRequest;
UpdateAssociatedTransferSettingRequest::UpdateAssociatedTransferSettingRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "UpdateAssociatedTransferSetting") {
setMethod(HttpRequest::Method::Post);
}
UpdateAssociatedTransferSettingRequest::~UpdateAssociatedTransferSettingRequest() {}
std::vector<UpdateAssociatedTransferSettingRequest::RuleSettings> UpdateAssociatedTransferSettingRequest::getRuleSettings() const {
return ruleSettings_;
}
void UpdateAssociatedTransferSettingRequest::setRuleSettings(const std::vector<UpdateAssociatedTransferSettingRequest::RuleSettings> &ruleSettings) {
ruleSettings_ = ruleSettings;
for(int dep1 = 0; dep1 != ruleSettings.size(); dep1++) {
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".AssociatedService", ruleSettings[dep1].associatedService);
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".MasterService", ruleSettings[dep1].masterService);
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".MasterResourceType", ruleSettings[dep1].masterResourceType);
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".AssociatedResourceType", ruleSettings[dep1].associatedResourceType);
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".RuleId", ruleSettings[dep1].ruleId);
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".Status", ruleSettings[dep1].status);
}
}
std::string UpdateAssociatedTransferSettingRequest::getEnableExistingResourcesTransfer() const {
return enableExistingResourcesTransfer_;
}
void UpdateAssociatedTransferSettingRequest::setEnableExistingResourcesTransfer(const std::string &enableExistingResourcesTransfer) {
enableExistingResourcesTransfer_ = enableExistingResourcesTransfer;
setParameter(std::string("EnableExistingResourcesTransfer"), enableExistingResourcesTransfer);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/UpdateAssociatedTransferSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
UpdateAssociatedTransferSettingResult::UpdateAssociatedTransferSettingResult() :
ServiceResult()
{}
UpdateAssociatedTransferSettingResult::UpdateAssociatedTransferSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateAssociatedTransferSettingResult::~UpdateAssociatedTransferSettingResult()
{}
void UpdateAssociatedTransferSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcemanager/model/UpdateAutoGroupingConfigRequest.h>
using AlibabaCloud::ResourceManager::Model::UpdateAutoGroupingConfigRequest;
UpdateAutoGroupingConfigRequest::UpdateAutoGroupingConfigRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "UpdateAutoGroupingConfig") {
setMethod(HttpRequest::Method::Post);
}
UpdateAutoGroupingConfigRequest::~UpdateAutoGroupingConfigRequest() {}
bool UpdateAutoGroupingConfigRequest::getEnableExistingResourcesTransfer() const {
return enableExistingResourcesTransfer_;
}
void UpdateAutoGroupingConfigRequest::setEnableExistingResourcesTransfer(bool enableExistingResourcesTransfer) {
enableExistingResourcesTransfer_ = enableExistingResourcesTransfer;
setParameter(std::string("EnableExistingResourcesTransfer"), enableExistingResourcesTransfer ? "true" : "false");
}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/UpdateAutoGroupingConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
UpdateAutoGroupingConfigResult::UpdateAutoGroupingConfigResult() :
ServiceResult()
{}
UpdateAutoGroupingConfigResult::UpdateAutoGroupingConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateAutoGroupingConfigResult::~UpdateAutoGroupingConfigResult()
{}
void UpdateAutoGroupingConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,141 @@
/*
* 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/resourcemanager/model/UpdateAutoGroupingRuleRequest.h>
using AlibabaCloud::ResourceManager::Model::UpdateAutoGroupingRuleRequest;
UpdateAutoGroupingRuleRequest::UpdateAutoGroupingRuleRequest()
: RpcServiceRequest("resourcemanager", "2020-03-31", "UpdateAutoGroupingRule") {
setMethod(HttpRequest::Method::Post);
}
UpdateAutoGroupingRuleRequest::~UpdateAutoGroupingRuleRequest() {}
std::string UpdateAutoGroupingRuleRequest::getRuleDesc() const {
return ruleDesc_;
}
void UpdateAutoGroupingRuleRequest::setRuleDesc(const std::string &ruleDesc) {
ruleDesc_ = ruleDesc;
setParameter(std::string("RuleDesc"), ruleDesc);
}
std::string UpdateAutoGroupingRuleRequest::getResourceTypesScope() const {
return resourceTypesScope_;
}
void UpdateAutoGroupingRuleRequest::setResourceTypesScope(const std::string &resourceTypesScope) {
resourceTypesScope_ = resourceTypesScope;
setParameter(std::string("ResourceTypesScope"), resourceTypesScope);
}
std::string UpdateAutoGroupingRuleRequest::getRuleName() const {
return ruleName_;
}
void UpdateAutoGroupingRuleRequest::setRuleName(const std::string &ruleName) {
ruleName_ = ruleName;
setParameter(std::string("RuleName"), ruleName);
}
std::string UpdateAutoGroupingRuleRequest::getExcludeResourceGroupIdsScope() const {
return excludeResourceGroupIdsScope_;
}
void UpdateAutoGroupingRuleRequest::setExcludeResourceGroupIdsScope(const std::string &excludeResourceGroupIdsScope) {
excludeResourceGroupIdsScope_ = excludeResourceGroupIdsScope;
setParameter(std::string("ExcludeResourceGroupIdsScope"), excludeResourceGroupIdsScope);
}
std::string UpdateAutoGroupingRuleRequest::getRegionIdsScope() const {
return regionIdsScope_;
}
void UpdateAutoGroupingRuleRequest::setRegionIdsScope(const std::string &regionIdsScope) {
regionIdsScope_ = regionIdsScope;
setParameter(std::string("RegionIdsScope"), regionIdsScope);
}
std::string UpdateAutoGroupingRuleRequest::getResourceIdsScope() const {
return resourceIdsScope_;
}
void UpdateAutoGroupingRuleRequest::setResourceIdsScope(const std::string &resourceIdsScope) {
resourceIdsScope_ = resourceIdsScope;
setParameter(std::string("ResourceIdsScope"), resourceIdsScope);
}
std::vector<UpdateAutoGroupingRuleRequest::RuleContents> UpdateAutoGroupingRuleRequest::getRuleContents() const {
return ruleContents_;
}
void UpdateAutoGroupingRuleRequest::setRuleContents(const std::vector<UpdateAutoGroupingRuleRequest::RuleContents> &ruleContents) {
ruleContents_ = ruleContents;
for(int dep1 = 0; dep1 != ruleContents.size(); dep1++) {
auto ruleContentsObj = ruleContents.at(dep1);
std::string ruleContentsObjStr = std::string("RuleContents") + "." + std::to_string(dep1 + 1);
setParameter(ruleContentsObjStr + ".RuleContentId", ruleContentsObj.ruleContentId);
setParameter(ruleContentsObjStr + ".TargetResourceGroupCondition", ruleContentsObj.targetResourceGroupCondition);
setParameter(ruleContentsObjStr + ".AutoGroupingScopeCondition", ruleContentsObj.autoGroupingScopeCondition);
}
}
std::string UpdateAutoGroupingRuleRequest::getExcludeResourceTypesScope() const {
return excludeResourceTypesScope_;
}
void UpdateAutoGroupingRuleRequest::setExcludeResourceTypesScope(const std::string &excludeResourceTypesScope) {
excludeResourceTypesScope_ = excludeResourceTypesScope;
setParameter(std::string("ExcludeResourceTypesScope"), excludeResourceTypesScope);
}
std::string UpdateAutoGroupingRuleRequest::getResourceGroupIdsScope() const {
return resourceGroupIdsScope_;
}
void UpdateAutoGroupingRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
resourceGroupIdsScope_ = resourceGroupIdsScope;
setParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
}
std::string UpdateAutoGroupingRuleRequest::getExcludeRegionIdsScope() const {
return excludeRegionIdsScope_;
}
void UpdateAutoGroupingRuleRequest::setExcludeRegionIdsScope(const std::string &excludeRegionIdsScope) {
excludeRegionIdsScope_ = excludeRegionIdsScope;
setParameter(std::string("ExcludeRegionIdsScope"), excludeRegionIdsScope);
}
std::string UpdateAutoGroupingRuleRequest::getExcludeResourceIdsScope() const {
return excludeResourceIdsScope_;
}
void UpdateAutoGroupingRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
excludeResourceIdsScope_ = excludeResourceIdsScope;
setParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
}
std::string UpdateAutoGroupingRuleRequest::getRuleId() const {
return ruleId_;
}
void UpdateAutoGroupingRuleRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/resourcemanager/model/UpdateAutoGroupingRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceManager;
using namespace AlibabaCloud::ResourceManager::Model;
UpdateAutoGroupingRuleResult::UpdateAutoGroupingRuleResult() :
ServiceResult()
{}
UpdateAutoGroupingRuleResult::UpdateAutoGroupingRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateAutoGroupingRuleResult::~UpdateAutoGroupingRuleResult()
{}
void UpdateAutoGroupingRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -40,24 +40,24 @@ void UpdateRoleResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto roleNode = value["Role"];
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["RolePrincipalName"].isNull())
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["UpdateDate"].isNull())
role_.updateDate = roleNode["UpdateDate"].asString();
if(!roleNode["MaxSessionDuration"].isNull())
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["Arn"].isNull())
role_.arn = roleNode["Arn"].asString();
if(!roleNode["AssumeRolePolicyDocument"].isNull())
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
if(!roleNode["CreateDate"].isNull())
role_.createDate = roleNode["CreateDate"].asString();
if(!roleNode["Description"].isNull())
role_.description = roleNode["Description"].asString();
if(!roleNode["MaxSessionDuration"].isNull())
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
if(!roleNode["RoleId"].isNull())
role_.roleId = roleNode["RoleId"].asString();
if(!roleNode["RoleName"].isNull())
role_.roleName = roleNode["RoleName"].asString();
if(!roleNode["RolePrincipalName"].isNull())
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
if(!roleNode["UpdateDate"].isNull())
role_.updateDate = roleNode["UpdateDate"].asString();
}