由武进发起的ESS SDK自动发布, 版本号:1.6.3
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -40,13 +40,13 @@ void AttachInstancesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AttachInstancesResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
std::string AttachInstancesResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
|
||||
94
ess/src/model/CreateNotificationConfigurationRequest.cc
Normal file
94
ess/src/model/CreateNotificationConfigurationRequest.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/ess/model/CreateNotificationConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::CreateNotificationConfigurationRequest;
|
||||
|
||||
CreateNotificationConfigurationRequest::CreateNotificationConfigurationRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "CreateNotificationConfiguration")
|
||||
{}
|
||||
|
||||
CreateNotificationConfigurationRequest::~CreateNotificationConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNotificationConfigurationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateNotificationConfigurationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateNotificationConfigurationRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void CreateNotificationConfigurationRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
std::string CreateNotificationConfigurationRequest::getNotificationArn()const
|
||||
{
|
||||
return notificationArn_;
|
||||
}
|
||||
|
||||
void CreateNotificationConfigurationRequest::setNotificationArn(const std::string& notificationArn)
|
||||
{
|
||||
notificationArn_ = notificationArn;
|
||||
setParameter("NotificationArn", notificationArn);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateNotificationConfigurationRequest::getNotificationType()const
|
||||
{
|
||||
return notificationType_;
|
||||
}
|
||||
|
||||
void CreateNotificationConfigurationRequest::setNotificationType(const std::vector<std::string>& notificationType)
|
||||
{
|
||||
notificationType_ = notificationType;
|
||||
for(int i = 0; i!= notificationType.size(); i++)
|
||||
setParameter("NotificationType."+ std::to_string(i), notificationType.at(i));
|
||||
}
|
||||
|
||||
long CreateNotificationConfigurationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateNotificationConfigurationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateNotificationConfigurationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateNotificationConfigurationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ess/src/model/CreateNotificationConfigurationResult.cc
Normal file
45
ess/src/model/CreateNotificationConfigurationResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ess/model/CreateNotificationConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
CreateNotificationConfigurationResult::CreateNotificationConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNotificationConfigurationResult::CreateNotificationConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNotificationConfigurationResult::~CreateNotificationConfigurationResult()
|
||||
{}
|
||||
|
||||
void CreateNotificationConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -169,6 +169,23 @@ void CreateScalingConfigurationRequest::setKeyPairName(const std::string& keyPai
|
||||
setParameter("KeyPairName", keyPairName);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingConfigurationRequest::SpotPriceLimit> CreateScalingConfigurationRequest::getSpotPriceLimit()const
|
||||
{
|
||||
return spotPriceLimit_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setSpotPriceLimit(const std::vector<SpotPriceLimit>& spotPriceLimit)
|
||||
{
|
||||
spotPriceLimit_ = spotPriceLimit;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= spotPriceLimit.size(); i++) {
|
||||
auto obj = spotPriceLimit.at(i);
|
||||
std::string str ="SpotPriceLimit."+ std::to_string(i);
|
||||
setParameter(str + ".InstanceType", obj.instanceType);
|
||||
setParameter(str + ".PriceLimit", std::to_string(obj.priceLimit));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getSystemDiskCategory()const
|
||||
{
|
||||
return systemDiskCategory_;
|
||||
@@ -367,6 +384,17 @@ void CreateScalingConfigurationRequest::setDataDisk2DeleteWithInstance(const std
|
||||
setParameter("DataDisk2DeleteWithInstance", dataDisk2DeleteWithInstance);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getSpotStrategy()const
|
||||
{
|
||||
return spotStrategy_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setSpotStrategy(const std::string& spotStrategy)
|
||||
{
|
||||
spotStrategy_ = spotStrategy;
|
||||
setParameter("SpotStrategy", spotStrategy);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getDataDisk1Category()const
|
||||
{
|
||||
return dataDisk1Category_;
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateScalingConfigurationResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingConfigurationId"].isNull())
|
||||
scalingConfigurationId_ = value["ScalingConfigurationId"].asString();
|
||||
if(!value["ScalingConfigurationId"].isNull())
|
||||
scalingConfigurationId_ = value["ScalingConfigurationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationResult::getScalingConfigurationId()const
|
||||
{
|
||||
return scalingConfigurationId_;
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationResult::getScalingConfigurationId()const
|
||||
{
|
||||
return scalingConfigurationId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateScalingGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingGroupId_ = value["ScalingGroupId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingGroupId_ = value["ScalingGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScalingGroupResult::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateScalingGroupResult::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void CreateScalingRuleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingRuleId"].isNull())
|
||||
scalingRuleId_ = value["ScalingRuleId"].asString();
|
||||
if(!value["ScalingRuleAri"].isNull())
|
||||
scalingRuleAri_ = value["ScalingRuleAri"].asString();
|
||||
if(!value["ScalingRuleId"].isNull())
|
||||
scalingRuleId_ = value["ScalingRuleId"].asString();
|
||||
if(!value["ScalingRuleAri"].isNull())
|
||||
scalingRuleAri_ = value["ScalingRuleAri"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleResult::getScalingRuleAri()const
|
||||
{
|
||||
return scalingRuleAri_;
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleResult::getScalingRuleId()const
|
||||
{
|
||||
return scalingRuleId_;
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleResult::getScalingRuleAri()const
|
||||
{
|
||||
return scalingRuleAri_;
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleResult::getScalingRuleId()const
|
||||
{
|
||||
return scalingRuleId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateScheduledTaskResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScheduledTaskId"].isNull())
|
||||
scheduledTaskId_ = value["ScheduledTaskId"].asString();
|
||||
if(!value["ScheduledTaskId"].isNull())
|
||||
scheduledTaskId_ = value["ScheduledTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScheduledTaskResult::getScheduledTaskId()const
|
||||
{
|
||||
return scheduledTaskId_;
|
||||
}
|
||||
|
||||
std::string CreateScheduledTaskResult::getScheduledTaskId()const
|
||||
{
|
||||
return scheduledTaskId_;
|
||||
}
|
||||
|
||||
|
||||
82
ess/src/model/DeleteNotificationConfigurationRequest.cc
Normal file
82
ess/src/model/DeleteNotificationConfigurationRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/ess/model/DeleteNotificationConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::DeleteNotificationConfigurationRequest;
|
||||
|
||||
DeleteNotificationConfigurationRequest::DeleteNotificationConfigurationRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "DeleteNotificationConfiguration")
|
||||
{}
|
||||
|
||||
DeleteNotificationConfigurationRequest::~DeleteNotificationConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNotificationConfigurationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteNotificationConfigurationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteNotificationConfigurationRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void DeleteNotificationConfigurationRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteNotificationConfigurationRequest::getNotificationArn()const
|
||||
{
|
||||
return notificationArn_;
|
||||
}
|
||||
|
||||
void DeleteNotificationConfigurationRequest::setNotificationArn(const std::string& notificationArn)
|
||||
{
|
||||
notificationArn_ = notificationArn;
|
||||
setParameter("NotificationArn", notificationArn);
|
||||
}
|
||||
|
||||
long DeleteNotificationConfigurationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteNotificationConfigurationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteNotificationConfigurationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteNotificationConfigurationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ess/src/model/DeleteNotificationConfigurationResult.cc
Normal file
45
ess/src/model/DeleteNotificationConfigurationResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ess/model/DeleteNotificationConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
DeleteNotificationConfigurationResult::DeleteNotificationConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNotificationConfigurationResult::DeleteNotificationConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNotificationConfigurationResult::~DeleteNotificationConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeleteNotificationConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -40,69 +40,69 @@ void DescribeAccountAttributesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MaxNumberOfScalingGroups"].isNull())
|
||||
maxNumberOfScalingGroups_ = std::stoi(value["MaxNumberOfScalingGroups"].asString());
|
||||
if(!value["MaxNumberOfScalingConfigurations"].isNull())
|
||||
maxNumberOfScalingConfigurations_ = std::stoi(value["MaxNumberOfScalingConfigurations"].asString());
|
||||
if(!value["MaxNumberOfScalingRules"].isNull())
|
||||
maxNumberOfScalingRules_ = std::stoi(value["MaxNumberOfScalingRules"].asString());
|
||||
if(!value["MaxNumberOfScheduledTasks"].isNull())
|
||||
maxNumberOfScheduledTasks_ = std::stoi(value["MaxNumberOfScheduledTasks"].asString());
|
||||
if(!value["MaxNumberOfScalingInstances"].isNull())
|
||||
maxNumberOfScalingInstances_ = std::stoi(value["MaxNumberOfScalingInstances"].asString());
|
||||
if(!value["MaxNumberOfDBInstances"].isNull())
|
||||
maxNumberOfDBInstances_ = std::stoi(value["MaxNumberOfDBInstances"].asString());
|
||||
if(!value["MaxNumberOfLoadBalancers"].isNull())
|
||||
maxNumberOfLoadBalancers_ = std::stoi(value["MaxNumberOfLoadBalancers"].asString());
|
||||
if(!value["MaxNumberOfMinSize"].isNull())
|
||||
maxNumberOfMinSize_ = std::stoi(value["MaxNumberOfMinSize"].asString());
|
||||
if(!value["MaxNumberOfMaxSize"].isNull())
|
||||
maxNumberOfMaxSize_ = std::stoi(value["MaxNumberOfMaxSize"].asString());
|
||||
if(!value["MaxNumberOfScalingGroups"].isNull())
|
||||
maxNumberOfScalingGroups_ = std::stoi(value["MaxNumberOfScalingGroups"].asString());
|
||||
if(!value["MaxNumberOfScalingConfigurations"].isNull())
|
||||
maxNumberOfScalingConfigurations_ = std::stoi(value["MaxNumberOfScalingConfigurations"].asString());
|
||||
if(!value["MaxNumberOfScalingRules"].isNull())
|
||||
maxNumberOfScalingRules_ = std::stoi(value["MaxNumberOfScalingRules"].asString());
|
||||
if(!value["MaxNumberOfScheduledTasks"].isNull())
|
||||
maxNumberOfScheduledTasks_ = std::stoi(value["MaxNumberOfScheduledTasks"].asString());
|
||||
if(!value["MaxNumberOfScalingInstances"].isNull())
|
||||
maxNumberOfScalingInstances_ = std::stoi(value["MaxNumberOfScalingInstances"].asString());
|
||||
if(!value["MaxNumberOfDBInstances"].isNull())
|
||||
maxNumberOfDBInstances_ = std::stoi(value["MaxNumberOfDBInstances"].asString());
|
||||
if(!value["MaxNumberOfLoadBalancers"].isNull())
|
||||
maxNumberOfLoadBalancers_ = std::stoi(value["MaxNumberOfLoadBalancers"].asString());
|
||||
if(!value["MaxNumberOfMinSize"].isNull())
|
||||
maxNumberOfMinSize_ = std::stoi(value["MaxNumberOfMinSize"].asString());
|
||||
if(!value["MaxNumberOfMaxSize"].isNull())
|
||||
maxNumberOfMaxSize_ = std::stoi(value["MaxNumberOfMaxSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingRules()const
|
||||
{
|
||||
return maxNumberOfScalingRules_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingInstances()const
|
||||
{
|
||||
return maxNumberOfScalingInstances_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScheduledTasks()const
|
||||
{
|
||||
return maxNumberOfScheduledTasks_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfLoadBalancers()const
|
||||
{
|
||||
return maxNumberOfLoadBalancers_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfMinSize()const
|
||||
{
|
||||
return maxNumberOfMinSize_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingGroups()const
|
||||
{
|
||||
return maxNumberOfScalingGroups_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingConfigurations()const
|
||||
{
|
||||
return maxNumberOfScalingConfigurations_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfDBInstances()const
|
||||
{
|
||||
return maxNumberOfDBInstances_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfMaxSize()const
|
||||
{
|
||||
return maxNumberOfMaxSize_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingRules()const
|
||||
{
|
||||
return maxNumberOfScalingRules_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingInstances()const
|
||||
{
|
||||
return maxNumberOfScalingInstances_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScheduledTasks()const
|
||||
{
|
||||
return maxNumberOfScheduledTasks_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfLoadBalancers()const
|
||||
{
|
||||
return maxNumberOfLoadBalancers_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfMinSize()const
|
||||
{
|
||||
return maxNumberOfMinSize_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingGroups()const
|
||||
{
|
||||
return maxNumberOfScalingGroups_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfScalingConfigurations()const
|
||||
{
|
||||
return maxNumberOfScalingConfigurations_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfDBInstances()const
|
||||
{
|
||||
return maxNumberOfDBInstances_;
|
||||
}
|
||||
|
||||
int DescribeAccountAttributesResult::getMaxNumberOfMaxSize()const
|
||||
{
|
||||
return maxNumberOfMaxSize_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void DescribeAlertConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SuccessConfig"].isNull())
|
||||
successConfig_ = std::stoi(value["SuccessConfig"].asString());
|
||||
if(!value["FailConfig"].isNull())
|
||||
failConfig_ = std::stoi(value["FailConfig"].asString());
|
||||
if(!value["RejectConfig"].isNull())
|
||||
rejectConfig_ = std::stoi(value["RejectConfig"].asString());
|
||||
if(!value["SuccessConfig"].isNull())
|
||||
successConfig_ = std::stoi(value["SuccessConfig"].asString());
|
||||
if(!value["FailConfig"].isNull())
|
||||
failConfig_ = std::stoi(value["FailConfig"].asString());
|
||||
if(!value["RejectConfig"].isNull())
|
||||
rejectConfig_ = std::stoi(value["RejectConfig"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getFailConfig()const
|
||||
{
|
||||
return failConfig_;
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getRejectConfig()const
|
||||
{
|
||||
return rejectConfig_;
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getSuccessConfig()const
|
||||
{
|
||||
return successConfig_;
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getFailConfig()const
|
||||
{
|
||||
return failConfig_;
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getRejectConfig()const
|
||||
{
|
||||
return rejectConfig_;
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getSuccessConfig()const
|
||||
{
|
||||
return successConfig_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,48 +40,48 @@ void DescribeCapacityHistoryResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCapacityHistoryItems = value["CapacityHistoryItems"]["CapacityHistoryModel"];
|
||||
for (auto value : allCapacityHistoryItems)
|
||||
{
|
||||
CapacityHistoryModel capacityHistoryItemsObject;
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
capacityHistoryItemsObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["TotalCapacity"].isNull())
|
||||
capacityHistoryItemsObject.totalCapacity = std::stoi(value["TotalCapacity"].asString());
|
||||
if(!value["AttachedCapacity"].isNull())
|
||||
capacityHistoryItemsObject.attachedCapacity = std::stoi(value["AttachedCapacity"].asString());
|
||||
if(!value["AutoCreatedCapacity"].isNull())
|
||||
capacityHistoryItemsObject.autoCreatedCapacity = std::stoi(value["AutoCreatedCapacity"].asString());
|
||||
if(!value["Timestamp"].isNull())
|
||||
capacityHistoryItemsObject.timestamp = value["Timestamp"].asString();
|
||||
capacityHistoryItems_.push_back(capacityHistoryItemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allCapacityHistoryItems = value["CapacityHistoryItems"]["CapacityHistoryModel"];
|
||||
for (auto value : allCapacityHistoryItems)
|
||||
{
|
||||
CapacityHistoryModel capacityHistoryItemsObject;
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
capacityHistoryItemsObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["TotalCapacity"].isNull())
|
||||
capacityHistoryItemsObject.totalCapacity = std::stoi(value["TotalCapacity"].asString());
|
||||
if(!value["AttachedCapacity"].isNull())
|
||||
capacityHistoryItemsObject.attachedCapacity = std::stoi(value["AttachedCapacity"].asString());
|
||||
if(!value["AutoCreatedCapacity"].isNull())
|
||||
capacityHistoryItemsObject.autoCreatedCapacity = std::stoi(value["AutoCreatedCapacity"].asString());
|
||||
if(!value["Timestamp"].isNull())
|
||||
capacityHistoryItemsObject.timestamp = value["Timestamp"].asString();
|
||||
capacityHistoryItems_.push_back(capacityHistoryItemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCapacityHistoryResult::CapacityHistoryModel> DescribeCapacityHistoryResult::getCapacityHistoryItems()const
|
||||
{
|
||||
return capacityHistoryItems_;
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCapacityHistoryResult::CapacityHistoryModel> DescribeCapacityHistoryResult::getCapacityHistoryItems()const
|
||||
{
|
||||
return capacityHistoryItems_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,69 +40,69 @@ void DescribeLimitationResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MaxNumberOfScalingGroups"].isNull())
|
||||
maxNumberOfScalingGroups_ = std::stoi(value["MaxNumberOfScalingGroups"].asString());
|
||||
if(!value["MaxNumberOfScalingConfigurations"].isNull())
|
||||
maxNumberOfScalingConfigurations_ = std::stoi(value["MaxNumberOfScalingConfigurations"].asString());
|
||||
if(!value["MaxNumberOfScalingRules"].isNull())
|
||||
maxNumberOfScalingRules_ = std::stoi(value["MaxNumberOfScalingRules"].asString());
|
||||
if(!value["MaxNumberOfScheduledTasks"].isNull())
|
||||
maxNumberOfScheduledTasks_ = std::stoi(value["MaxNumberOfScheduledTasks"].asString());
|
||||
if(!value["MaxNumberOfScalingInstances"].isNull())
|
||||
maxNumberOfScalingInstances_ = std::stoi(value["MaxNumberOfScalingInstances"].asString());
|
||||
if(!value["MaxNumberOfDBInstances"].isNull())
|
||||
maxNumberOfDBInstances_ = std::stoi(value["MaxNumberOfDBInstances"].asString());
|
||||
if(!value["MaxNumberOfLoadBalancers"].isNull())
|
||||
maxNumberOfLoadBalancers_ = std::stoi(value["MaxNumberOfLoadBalancers"].asString());
|
||||
if(!value["MaxNumberOfMinSize"].isNull())
|
||||
maxNumberOfMinSize_ = std::stoi(value["MaxNumberOfMinSize"].asString());
|
||||
if(!value["MaxNumberOfMaxSize"].isNull())
|
||||
maxNumberOfMaxSize_ = std::stoi(value["MaxNumberOfMaxSize"].asString());
|
||||
if(!value["MaxNumberOfScalingGroups"].isNull())
|
||||
maxNumberOfScalingGroups_ = std::stoi(value["MaxNumberOfScalingGroups"].asString());
|
||||
if(!value["MaxNumberOfScalingConfigurations"].isNull())
|
||||
maxNumberOfScalingConfigurations_ = std::stoi(value["MaxNumberOfScalingConfigurations"].asString());
|
||||
if(!value["MaxNumberOfScalingRules"].isNull())
|
||||
maxNumberOfScalingRules_ = std::stoi(value["MaxNumberOfScalingRules"].asString());
|
||||
if(!value["MaxNumberOfScheduledTasks"].isNull())
|
||||
maxNumberOfScheduledTasks_ = std::stoi(value["MaxNumberOfScheduledTasks"].asString());
|
||||
if(!value["MaxNumberOfScalingInstances"].isNull())
|
||||
maxNumberOfScalingInstances_ = std::stoi(value["MaxNumberOfScalingInstances"].asString());
|
||||
if(!value["MaxNumberOfDBInstances"].isNull())
|
||||
maxNumberOfDBInstances_ = std::stoi(value["MaxNumberOfDBInstances"].asString());
|
||||
if(!value["MaxNumberOfLoadBalancers"].isNull())
|
||||
maxNumberOfLoadBalancers_ = std::stoi(value["MaxNumberOfLoadBalancers"].asString());
|
||||
if(!value["MaxNumberOfMinSize"].isNull())
|
||||
maxNumberOfMinSize_ = std::stoi(value["MaxNumberOfMinSize"].asString());
|
||||
if(!value["MaxNumberOfMaxSize"].isNull())
|
||||
maxNumberOfMaxSize_ = std::stoi(value["MaxNumberOfMaxSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingRules()const
|
||||
{
|
||||
return maxNumberOfScalingRules_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingInstances()const
|
||||
{
|
||||
return maxNumberOfScalingInstances_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScheduledTasks()const
|
||||
{
|
||||
return maxNumberOfScheduledTasks_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfLoadBalancers()const
|
||||
{
|
||||
return maxNumberOfLoadBalancers_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfMinSize()const
|
||||
{
|
||||
return maxNumberOfMinSize_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingGroups()const
|
||||
{
|
||||
return maxNumberOfScalingGroups_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingConfigurations()const
|
||||
{
|
||||
return maxNumberOfScalingConfigurations_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfDBInstances()const
|
||||
{
|
||||
return maxNumberOfDBInstances_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfMaxSize()const
|
||||
{
|
||||
return maxNumberOfMaxSize_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingRules()const
|
||||
{
|
||||
return maxNumberOfScalingRules_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingInstances()const
|
||||
{
|
||||
return maxNumberOfScalingInstances_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScheduledTasks()const
|
||||
{
|
||||
return maxNumberOfScheduledTasks_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfLoadBalancers()const
|
||||
{
|
||||
return maxNumberOfLoadBalancers_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfMinSize()const
|
||||
{
|
||||
return maxNumberOfMinSize_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingGroups()const
|
||||
{
|
||||
return maxNumberOfScalingGroups_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfScalingConfigurations()const
|
||||
{
|
||||
return maxNumberOfScalingConfigurations_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfDBInstances()const
|
||||
{
|
||||
return maxNumberOfDBInstances_;
|
||||
}
|
||||
|
||||
int DescribeLimitationResult::getMaxNumberOfMaxSize()const
|
||||
{
|
||||
return maxNumberOfMaxSize_;
|
||||
}
|
||||
|
||||
|
||||
71
ess/src/model/DescribeNotificationConfigurationsRequest.cc
Normal file
71
ess/src/model/DescribeNotificationConfigurationsRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/ess/model/DescribeNotificationConfigurationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::DescribeNotificationConfigurationsRequest;
|
||||
|
||||
DescribeNotificationConfigurationsRequest::DescribeNotificationConfigurationsRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "DescribeNotificationConfigurations")
|
||||
{}
|
||||
|
||||
DescribeNotificationConfigurationsRequest::~DescribeNotificationConfigurationsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNotificationConfigurationsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeNotificationConfigurationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigurationsRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void DescribeNotificationConfigurationsRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
long DescribeNotificationConfigurationsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeNotificationConfigurationsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigurationsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeNotificationConfigurationsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
63
ess/src/model/DescribeNotificationConfigurationsResult.cc
Normal file
63
ess/src/model/DescribeNotificationConfigurationsResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/ess/model/DescribeNotificationConfigurationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
DescribeNotificationConfigurationsResult::DescribeNotificationConfigurationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNotificationConfigurationsResult::DescribeNotificationConfigurationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNotificationConfigurationsResult::~DescribeNotificationConfigurationsResult()
|
||||
{}
|
||||
|
||||
void DescribeNotificationConfigurationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNotificationConfigurationModels = value["NotificationConfigurationModels"]["NotificationConfigurationModel"];
|
||||
for (auto value : allNotificationConfigurationModels)
|
||||
{
|
||||
NotificationConfigurationModel notificationConfigurationModelsObject;
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
notificationConfigurationModelsObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["NotificationArn"].isNull())
|
||||
notificationConfigurationModelsObject.notificationArn = value["NotificationArn"].asString();
|
||||
auto allNotificationTypes = value["NotificationTypes"]["NotificationType"];
|
||||
for (auto value : allNotificationTypes)
|
||||
notificationConfigurationModelsObject.notificationTypes.push_back(value.asString());
|
||||
notificationConfigurationModels_.push_back(notificationConfigurationModelsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNotificationConfigurationsResult::NotificationConfigurationModel> DescribeNotificationConfigurationsResult::getNotificationConfigurationModels()const
|
||||
{
|
||||
return notificationConfigurationModels_;
|
||||
}
|
||||
|
||||
60
ess/src/model/DescribeNotificationTypesRequest.cc
Normal file
60
ess/src/model/DescribeNotificationTypesRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/ess/model/DescribeNotificationTypesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::DescribeNotificationTypesRequest;
|
||||
|
||||
DescribeNotificationTypesRequest::DescribeNotificationTypesRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "DescribeNotificationTypes")
|
||||
{}
|
||||
|
||||
DescribeNotificationTypesRequest::~DescribeNotificationTypesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNotificationTypesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeNotificationTypesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeNotificationTypesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeNotificationTypesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeNotificationTypesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeNotificationTypesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
53
ess/src/model/DescribeNotificationTypesResult.cc
Normal file
53
ess/src/model/DescribeNotificationTypesResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/ess/model/DescribeNotificationTypesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
DescribeNotificationTypesResult::DescribeNotificationTypesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNotificationTypesResult::DescribeNotificationTypesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNotificationTypesResult::~DescribeNotificationTypesResult()
|
||||
{}
|
||||
|
||||
void DescribeNotificationTypesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNotificationTypes = value["NotificationTypes"]["NotificationType"];
|
||||
for (const auto &item : allNotificationTypes)
|
||||
notificationTypes_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeNotificationTypesResult::getNotificationTypes()const
|
||||
{
|
||||
return notificationTypes_;
|
||||
}
|
||||
|
||||
@@ -40,23 +40,23 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ClassicUnavailable"].isNull())
|
||||
regionsObject.classicUnavailable = value["ClassicUnavailable"].asString() == "true";
|
||||
if(!value["VpcUnavailable"].isNull())
|
||||
regionsObject.vpcUnavailable = value["VpcUnavailable"].asString() == "true";
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ClassicUnavailable"].isNull())
|
||||
regionsObject.classicUnavailable = value["ClassicUnavailable"].asString() == "true";
|
||||
if(!value["VpcUnavailable"].isNull())
|
||||
regionsObject.vpcUnavailable = value["VpcUnavailable"].asString() == "true";
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,62 +40,62 @@ void DescribeScalingActivitiesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allScalingActivities = value["ScalingActivities"]["ScalingActivity"];
|
||||
for (auto value : allScalingActivities)
|
||||
{
|
||||
ScalingActivity scalingActivitiesObject;
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivitiesObject.scalingActivityId = value["ScalingActivityId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingActivitiesObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
scalingActivitiesObject.description = value["Description"].asString();
|
||||
if(!value["Cause"].isNull())
|
||||
scalingActivitiesObject.cause = value["Cause"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
scalingActivitiesObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
scalingActivitiesObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
scalingActivitiesObject.progress = std::stoi(value["Progress"].asString());
|
||||
if(!value["StatusCode"].isNull())
|
||||
scalingActivitiesObject.statusCode = value["StatusCode"].asString();
|
||||
if(!value["StatusMessage"].isNull())
|
||||
scalingActivitiesObject.statusMessage = value["StatusMessage"].asString();
|
||||
if(!value["TotalCapacity"].isNull())
|
||||
scalingActivitiesObject.totalCapacity = value["TotalCapacity"].asString();
|
||||
if(!value["AttachedCapacity"].isNull())
|
||||
scalingActivitiesObject.attachedCapacity = value["AttachedCapacity"].asString();
|
||||
if(!value["AutoCreatedCapacity"].isNull())
|
||||
scalingActivitiesObject.autoCreatedCapacity = value["AutoCreatedCapacity"].asString();
|
||||
scalingActivities_.push_back(scalingActivitiesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allScalingActivities = value["ScalingActivities"]["ScalingActivity"];
|
||||
for (auto value : allScalingActivities)
|
||||
{
|
||||
ScalingActivity scalingActivitiesObject;
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivitiesObject.scalingActivityId = value["ScalingActivityId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingActivitiesObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
scalingActivitiesObject.description = value["Description"].asString();
|
||||
if(!value["Cause"].isNull())
|
||||
scalingActivitiesObject.cause = value["Cause"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
scalingActivitiesObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
scalingActivitiesObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
scalingActivitiesObject.progress = std::stoi(value["Progress"].asString());
|
||||
if(!value["StatusCode"].isNull())
|
||||
scalingActivitiesObject.statusCode = value["StatusCode"].asString();
|
||||
if(!value["StatusMessage"].isNull())
|
||||
scalingActivitiesObject.statusMessage = value["StatusMessage"].asString();
|
||||
if(!value["TotalCapacity"].isNull())
|
||||
scalingActivitiesObject.totalCapacity = value["TotalCapacity"].asString();
|
||||
if(!value["AttachedCapacity"].isNull())
|
||||
scalingActivitiesObject.attachedCapacity = value["AttachedCapacity"].asString();
|
||||
if(!value["AutoCreatedCapacity"].isNull())
|
||||
scalingActivitiesObject.autoCreatedCapacity = value["AutoCreatedCapacity"].asString();
|
||||
scalingActivities_.push_back(scalingActivitiesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeScalingActivitiesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingActivitiesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingActivitiesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingActivitiesResult::ScalingActivity> DescribeScalingActivitiesResult::getScalingActivities()const
|
||||
{
|
||||
return scalingActivities_;
|
||||
}
|
||||
|
||||
int DescribeScalingActivitiesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingActivitiesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingActivitiesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingActivitiesResult::ScalingActivity> DescribeScalingActivitiesResult::getScalingActivities()const
|
||||
{
|
||||
return scalingActivities_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void DescribeScalingActivityDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
if(!value["Detail"].isNull())
|
||||
detail_ = value["Detail"].asString();
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
if(!value["Detail"].isNull())
|
||||
detail_ = value["Detail"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityDetailResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityDetailResult::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityDetailResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityDetailResult::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,109 +40,121 @@ void DescribeScalingConfigurationsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allScalingConfigurations = value["ScalingConfigurations"]["ScalingConfiguration"];
|
||||
for (auto value : allScalingConfigurations)
|
||||
{
|
||||
ScalingConfiguration scalingConfigurationsObject;
|
||||
if(!value["ScalingConfigurationId"].isNull())
|
||||
scalingConfigurationsObject.scalingConfigurationId = value["ScalingConfigurationId"].asString();
|
||||
if(!value["ScalingConfigurationName"].isNull())
|
||||
scalingConfigurationsObject.scalingConfigurationName = value["ScalingConfigurationName"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingConfigurationsObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
scalingConfigurationsObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
scalingConfigurationsObject.imageId = value["ImageId"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
scalingConfigurationsObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["InstanceGeneration"].isNull())
|
||||
scalingConfigurationsObject.instanceGeneration = value["InstanceGeneration"].asString();
|
||||
if(!value["SecurityGroupId"].isNull())
|
||||
scalingConfigurationsObject.securityGroupId = value["SecurityGroupId"].asString();
|
||||
if(!value["IoOptimized"].isNull())
|
||||
scalingConfigurationsObject.ioOptimized = value["IoOptimized"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
scalingConfigurationsObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["InternetMaxBandwidthIn"].isNull())
|
||||
scalingConfigurationsObject.internetMaxBandwidthIn = std::stoi(value["InternetMaxBandwidthIn"].asString());
|
||||
if(!value["InternetMaxBandwidthOut"].isNull())
|
||||
scalingConfigurationsObject.internetMaxBandwidthOut = std::stoi(value["InternetMaxBandwidthOut"].asString());
|
||||
if(!value["SystemDiskCategory"].isNull())
|
||||
scalingConfigurationsObject.systemDiskCategory = value["SystemDiskCategory"].asString();
|
||||
if(!value["SystemDiskSize"].isNull())
|
||||
scalingConfigurationsObject.systemDiskSize = std::stoi(value["SystemDiskSize"].asString());
|
||||
if(!value["LifecycleState"].isNull())
|
||||
scalingConfigurationsObject.lifecycleState = value["LifecycleState"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
scalingConfigurationsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["LoadBalancerWeight"].isNull())
|
||||
scalingConfigurationsObject.loadBalancerWeight = std::stoi(value["LoadBalancerWeight"].asString());
|
||||
if(!value["UserData"].isNull())
|
||||
scalingConfigurationsObject.userData = value["UserData"].asString();
|
||||
if(!value["KeyPairName"].isNull())
|
||||
scalingConfigurationsObject.keyPairName = value["KeyPairName"].asString();
|
||||
if(!value["RamRoleName"].isNull())
|
||||
scalingConfigurationsObject.ramRoleName = value["RamRoleName"].asString();
|
||||
if(!value["DeploymentSetId"].isNull())
|
||||
scalingConfigurationsObject.deploymentSetId = value["DeploymentSetId"].asString();
|
||||
if(!value["SecurityEnhancementStrategy"].isNull())
|
||||
scalingConfigurationsObject.securityEnhancementStrategy = value["SecurityEnhancementStrategy"].asString();
|
||||
auto allDataDisks = value["DataDisks"]["DataDisk"];
|
||||
for (auto value : allDataDisks)
|
||||
{
|
||||
ScalingConfiguration::DataDisk dataDisksObject;
|
||||
if(!value["Size"].isNull())
|
||||
dataDisksObject.size = std::stoi(value["Size"].asString());
|
||||
if(!value["Category"].isNull())
|
||||
dataDisksObject.category = value["Category"].asString();
|
||||
if(!value["SnapshotId"].isNull())
|
||||
dataDisksObject.snapshotId = value["SnapshotId"].asString();
|
||||
if(!value["Device"].isNull())
|
||||
dataDisksObject.device = value["Device"].asString();
|
||||
scalingConfigurationsObject.dataDisks.push_back(dataDisksObject);
|
||||
}
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
ScalingConfiguration::Tag tagsObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagsObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagsObject.value = value["Value"].asString();
|
||||
scalingConfigurationsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allInstanceTypes = value["InstanceTypes"]["InstanceType"];
|
||||
for (auto value : allInstanceTypes)
|
||||
scalingConfigurationsObject.instanceTypes.push_back(value.asString());
|
||||
scalingConfigurations_.push_back(scalingConfigurationsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allScalingConfigurations = value["ScalingConfigurations"]["ScalingConfiguration"];
|
||||
for (auto value : allScalingConfigurations)
|
||||
{
|
||||
ScalingConfiguration scalingConfigurationsObject;
|
||||
if(!value["ScalingConfigurationId"].isNull())
|
||||
scalingConfigurationsObject.scalingConfigurationId = value["ScalingConfigurationId"].asString();
|
||||
if(!value["ScalingConfigurationName"].isNull())
|
||||
scalingConfigurationsObject.scalingConfigurationName = value["ScalingConfigurationName"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingConfigurationsObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
scalingConfigurationsObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
scalingConfigurationsObject.imageId = value["ImageId"].asString();
|
||||
if(!value["InstanceType"].isNull())
|
||||
scalingConfigurationsObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["InstanceGeneration"].isNull())
|
||||
scalingConfigurationsObject.instanceGeneration = value["InstanceGeneration"].asString();
|
||||
if(!value["SecurityGroupId"].isNull())
|
||||
scalingConfigurationsObject.securityGroupId = value["SecurityGroupId"].asString();
|
||||
if(!value["IoOptimized"].isNull())
|
||||
scalingConfigurationsObject.ioOptimized = value["IoOptimized"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
scalingConfigurationsObject.internetChargeType = value["InternetChargeType"].asString();
|
||||
if(!value["InternetMaxBandwidthIn"].isNull())
|
||||
scalingConfigurationsObject.internetMaxBandwidthIn = std::stoi(value["InternetMaxBandwidthIn"].asString());
|
||||
if(!value["InternetMaxBandwidthOut"].isNull())
|
||||
scalingConfigurationsObject.internetMaxBandwidthOut = std::stoi(value["InternetMaxBandwidthOut"].asString());
|
||||
if(!value["SystemDiskCategory"].isNull())
|
||||
scalingConfigurationsObject.systemDiskCategory = value["SystemDiskCategory"].asString();
|
||||
if(!value["SystemDiskSize"].isNull())
|
||||
scalingConfigurationsObject.systemDiskSize = std::stoi(value["SystemDiskSize"].asString());
|
||||
if(!value["LifecycleState"].isNull())
|
||||
scalingConfigurationsObject.lifecycleState = value["LifecycleState"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
scalingConfigurationsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["LoadBalancerWeight"].isNull())
|
||||
scalingConfigurationsObject.loadBalancerWeight = std::stoi(value["LoadBalancerWeight"].asString());
|
||||
if(!value["UserData"].isNull())
|
||||
scalingConfigurationsObject.userData = value["UserData"].asString();
|
||||
if(!value["KeyPairName"].isNull())
|
||||
scalingConfigurationsObject.keyPairName = value["KeyPairName"].asString();
|
||||
if(!value["RamRoleName"].isNull())
|
||||
scalingConfigurationsObject.ramRoleName = value["RamRoleName"].asString();
|
||||
if(!value["DeploymentSetId"].isNull())
|
||||
scalingConfigurationsObject.deploymentSetId = value["DeploymentSetId"].asString();
|
||||
if(!value["SecurityEnhancementStrategy"].isNull())
|
||||
scalingConfigurationsObject.securityEnhancementStrategy = value["SecurityEnhancementStrategy"].asString();
|
||||
if(!value["SpotStrategy"].isNull())
|
||||
scalingConfigurationsObject.spotStrategy = value["SpotStrategy"].asString();
|
||||
auto allDataDisks = value["DataDisks"]["DataDisk"];
|
||||
for (auto value : allDataDisks)
|
||||
{
|
||||
ScalingConfiguration::DataDisk dataDisksObject;
|
||||
if(!value["Size"].isNull())
|
||||
dataDisksObject.size = std::stoi(value["Size"].asString());
|
||||
if(!value["Category"].isNull())
|
||||
dataDisksObject.category = value["Category"].asString();
|
||||
if(!value["SnapshotId"].isNull())
|
||||
dataDisksObject.snapshotId = value["SnapshotId"].asString();
|
||||
if(!value["Device"].isNull())
|
||||
dataDisksObject.device = value["Device"].asString();
|
||||
scalingConfigurationsObject.dataDisks.push_back(dataDisksObject);
|
||||
}
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
ScalingConfiguration::Tag tagsObject;
|
||||
if(!value["Key"].isNull())
|
||||
tagsObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
tagsObject.value = value["Value"].asString();
|
||||
scalingConfigurationsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allSpotPriceLimit = value["SpotPriceLimit"]["SpotPriceModel"];
|
||||
for (auto value : allSpotPriceLimit)
|
||||
{
|
||||
ScalingConfiguration::SpotPriceModel spotPriceLimitObject;
|
||||
if(!value["InstanceType"].isNull())
|
||||
spotPriceLimitObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["PriceLimit"].isNull())
|
||||
spotPriceLimitObject.priceLimit = std::stof(value["PriceLimit"].asString());
|
||||
scalingConfigurationsObject.spotPriceLimit.push_back(spotPriceLimitObject);
|
||||
}
|
||||
auto allInstanceTypes = value["InstanceTypes"]["InstanceType"];
|
||||
for (auto value : allInstanceTypes)
|
||||
scalingConfigurationsObject.instanceTypes.push_back(value.asString());
|
||||
scalingConfigurations_.push_back(scalingConfigurationsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeScalingConfigurationsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingConfigurationsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingConfigurationsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingConfigurationsResult::ScalingConfiguration> DescribeScalingConfigurationsResult::getScalingConfigurations()const
|
||||
{
|
||||
return scalingConfigurations_;
|
||||
}
|
||||
|
||||
int DescribeScalingConfigurationsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingConfigurationsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingConfigurationsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingConfigurationsResult::ScalingConfiguration> DescribeScalingConfigurationsResult::getScalingConfigurations()const
|
||||
{
|
||||
return scalingConfigurations_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,82 +40,84 @@ void DescribeScalingGroupsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allScalingGroups = value["ScalingGroups"]["ScalingGroup"];
|
||||
for (auto value : allScalingGroups)
|
||||
{
|
||||
ScalingGroup scalingGroupsObject;
|
||||
if(!value["DefaultCooldown"].isNull())
|
||||
scalingGroupsObject.defaultCooldown = std::stoi(value["DefaultCooldown"].asString());
|
||||
if(!value["MaxSize"].isNull())
|
||||
scalingGroupsObject.maxSize = std::stoi(value["MaxSize"].asString());
|
||||
if(!value["PendingCapacity"].isNull())
|
||||
scalingGroupsObject.pendingCapacity = std::stoi(value["PendingCapacity"].asString());
|
||||
if(!value["RemovingCapacity"].isNull())
|
||||
scalingGroupsObject.removingCapacity = std::stoi(value["RemovingCapacity"].asString());
|
||||
if(!value["ScalingGroupName"].isNull())
|
||||
scalingGroupsObject.scalingGroupName = value["ScalingGroupName"].asString();
|
||||
if(!value["ActiveCapacity"].isNull())
|
||||
scalingGroupsObject.activeCapacity = std::stoi(value["ActiveCapacity"].asString());
|
||||
if(!value["ActiveScalingConfigurationId"].isNull())
|
||||
scalingGroupsObject.activeScalingConfigurationId = value["ActiveScalingConfigurationId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingGroupsObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
scalingGroupsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["TotalCapacity"].isNull())
|
||||
scalingGroupsObject.totalCapacity = std::stoi(value["TotalCapacity"].asString());
|
||||
if(!value["MinSize"].isNull())
|
||||
scalingGroupsObject.minSize = std::stoi(value["MinSize"].asString());
|
||||
if(!value["LifecycleState"].isNull())
|
||||
scalingGroupsObject.lifecycleState = value["LifecycleState"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
scalingGroupsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ModificationTime"].isNull())
|
||||
scalingGroupsObject.modificationTime = value["ModificationTime"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
scalingGroupsObject.vpcId = value["VpcId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
scalingGroupsObject.vSwitchId = value["VSwitchId"].asString();
|
||||
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];
|
||||
for (auto value : allVSwitchIds)
|
||||
scalingGroupsObject.vSwitchIds.push_back(value.asString());
|
||||
auto allRemovalPolicies = value["RemovalPolicies"]["RemovalPolicy"];
|
||||
for (auto value : allRemovalPolicies)
|
||||
scalingGroupsObject.removalPolicies.push_back(value.asString());
|
||||
auto allDBInstanceIds = value["DBInstanceIds"]["DBInstanceId"];
|
||||
for (auto value : allDBInstanceIds)
|
||||
scalingGroupsObject.dBInstanceIds.push_back(value.asString());
|
||||
auto allLoadBalancerIds = value["LoadBalancerIds"]["LoadBalancerId"];
|
||||
for (auto value : allLoadBalancerIds)
|
||||
scalingGroupsObject.loadBalancerIds.push_back(value.asString());
|
||||
scalingGroups_.push_back(scalingGroupsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allScalingGroups = value["ScalingGroups"]["ScalingGroup"];
|
||||
for (auto value : allScalingGroups)
|
||||
{
|
||||
ScalingGroup scalingGroupsObject;
|
||||
if(!value["DefaultCooldown"].isNull())
|
||||
scalingGroupsObject.defaultCooldown = std::stoi(value["DefaultCooldown"].asString());
|
||||
if(!value["MaxSize"].isNull())
|
||||
scalingGroupsObject.maxSize = std::stoi(value["MaxSize"].asString());
|
||||
if(!value["PendingCapacity"].isNull())
|
||||
scalingGroupsObject.pendingCapacity = std::stoi(value["PendingCapacity"].asString());
|
||||
if(!value["RemovingCapacity"].isNull())
|
||||
scalingGroupsObject.removingCapacity = std::stoi(value["RemovingCapacity"].asString());
|
||||
if(!value["ScalingGroupName"].isNull())
|
||||
scalingGroupsObject.scalingGroupName = value["ScalingGroupName"].asString();
|
||||
if(!value["ActiveCapacity"].isNull())
|
||||
scalingGroupsObject.activeCapacity = std::stoi(value["ActiveCapacity"].asString());
|
||||
if(!value["StandbyCapacity"].isNull())
|
||||
scalingGroupsObject.standbyCapacity = std::stoi(value["StandbyCapacity"].asString());
|
||||
if(!value["ActiveScalingConfigurationId"].isNull())
|
||||
scalingGroupsObject.activeScalingConfigurationId = value["ActiveScalingConfigurationId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingGroupsObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
scalingGroupsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["TotalCapacity"].isNull())
|
||||
scalingGroupsObject.totalCapacity = std::stoi(value["TotalCapacity"].asString());
|
||||
if(!value["MinSize"].isNull())
|
||||
scalingGroupsObject.minSize = std::stoi(value["MinSize"].asString());
|
||||
if(!value["LifecycleState"].isNull())
|
||||
scalingGroupsObject.lifecycleState = value["LifecycleState"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
scalingGroupsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["ModificationTime"].isNull())
|
||||
scalingGroupsObject.modificationTime = value["ModificationTime"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
scalingGroupsObject.vpcId = value["VpcId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
scalingGroupsObject.vSwitchId = value["VSwitchId"].asString();
|
||||
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];
|
||||
for (auto value : allVSwitchIds)
|
||||
scalingGroupsObject.vSwitchIds.push_back(value.asString());
|
||||
auto allRemovalPolicies = value["RemovalPolicies"]["RemovalPolicy"];
|
||||
for (auto value : allRemovalPolicies)
|
||||
scalingGroupsObject.removalPolicies.push_back(value.asString());
|
||||
auto allDBInstanceIds = value["DBInstanceIds"]["DBInstanceId"];
|
||||
for (auto value : allDBInstanceIds)
|
||||
scalingGroupsObject.dBInstanceIds.push_back(value.asString());
|
||||
auto allLoadBalancerIds = value["LoadBalancerIds"]["LoadBalancerId"];
|
||||
for (auto value : allLoadBalancerIds)
|
||||
scalingGroupsObject.loadBalancerIds.push_back(value.asString());
|
||||
scalingGroups_.push_back(scalingGroupsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeScalingGroupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingGroupsResult::ScalingGroup> DescribeScalingGroupsResult::getScalingGroups()const
|
||||
{
|
||||
return scalingGroups_;
|
||||
}
|
||||
|
||||
int DescribeScalingGroupsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingGroupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeScalingGroupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingGroupsResult::ScalingGroup> DescribeScalingGroupsResult::getScalingGroups()const
|
||||
{
|
||||
return scalingGroups_;
|
||||
}
|
||||
|
||||
int DescribeScalingGroupsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingGroupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,54 +40,54 @@ void DescribeScalingInstancesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allScalingInstances = value["ScalingInstances"]["ScalingInstance"];
|
||||
for (auto value : allScalingInstances)
|
||||
{
|
||||
ScalingInstance scalingInstancesObject;
|
||||
if(!value["InstanceId"].isNull())
|
||||
scalingInstancesObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["ScalingConfigurationId"].isNull())
|
||||
scalingInstancesObject.scalingConfigurationId = value["ScalingConfigurationId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingInstancesObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["HealthStatus"].isNull())
|
||||
scalingInstancesObject.healthStatus = value["HealthStatus"].asString();
|
||||
if(!value["LoadBalancerWeight"].isNull())
|
||||
scalingInstancesObject.loadBalancerWeight = std::stoi(value["LoadBalancerWeight"].asString());
|
||||
if(!value["LifecycleState"].isNull())
|
||||
scalingInstancesObject.lifecycleState = value["LifecycleState"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
scalingInstancesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["CreationType"].isNull())
|
||||
scalingInstancesObject.creationType = value["CreationType"].asString();
|
||||
scalingInstances_.push_back(scalingInstancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allScalingInstances = value["ScalingInstances"]["ScalingInstance"];
|
||||
for (auto value : allScalingInstances)
|
||||
{
|
||||
ScalingInstance scalingInstancesObject;
|
||||
if(!value["InstanceId"].isNull())
|
||||
scalingInstancesObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["ScalingConfigurationId"].isNull())
|
||||
scalingInstancesObject.scalingConfigurationId = value["ScalingConfigurationId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingInstancesObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["HealthStatus"].isNull())
|
||||
scalingInstancesObject.healthStatus = value["HealthStatus"].asString();
|
||||
if(!value["LoadBalancerWeight"].isNull())
|
||||
scalingInstancesObject.loadBalancerWeight = std::stoi(value["LoadBalancerWeight"].asString());
|
||||
if(!value["LifecycleState"].isNull())
|
||||
scalingInstancesObject.lifecycleState = value["LifecycleState"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
scalingInstancesObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["CreationType"].isNull())
|
||||
scalingInstancesObject.creationType = value["CreationType"].asString();
|
||||
scalingInstances_.push_back(scalingInstancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeScalingInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingInstancesResult::ScalingInstance> DescribeScalingInstancesResult::getScalingInstances()const
|
||||
{
|
||||
return scalingInstances_;
|
||||
}
|
||||
|
||||
int DescribeScalingInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingInstancesResult::ScalingInstance> DescribeScalingInstancesResult::getScalingInstances()const
|
||||
{
|
||||
return scalingInstances_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,56 +40,56 @@ void DescribeScalingRulesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allScalingRules = value["ScalingRules"]["ScalingRule"];
|
||||
for (auto value : allScalingRules)
|
||||
{
|
||||
ScalingRule scalingRulesObject;
|
||||
if(!value["ScalingRuleId"].isNull())
|
||||
scalingRulesObject.scalingRuleId = value["ScalingRuleId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingRulesObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["ScalingRuleName"].isNull())
|
||||
scalingRulesObject.scalingRuleName = value["ScalingRuleName"].asString();
|
||||
if(!value["Cooldown"].isNull())
|
||||
scalingRulesObject.cooldown = std::stoi(value["Cooldown"].asString());
|
||||
if(!value["AdjustmentType"].isNull())
|
||||
scalingRulesObject.adjustmentType = value["AdjustmentType"].asString();
|
||||
if(!value["AdjustmentValue"].isNull())
|
||||
scalingRulesObject.adjustmentValue = std::stoi(value["AdjustmentValue"].asString());
|
||||
if(!value["MinSize"].isNull())
|
||||
scalingRulesObject.minSize = std::stoi(value["MinSize"].asString());
|
||||
if(!value["MaxSize"].isNull())
|
||||
scalingRulesObject.maxSize = std::stoi(value["MaxSize"].asString());
|
||||
if(!value["ScalingRuleAri"].isNull())
|
||||
scalingRulesObject.scalingRuleAri = value["ScalingRuleAri"].asString();
|
||||
scalingRules_.push_back(scalingRulesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allScalingRules = value["ScalingRules"]["ScalingRule"];
|
||||
for (auto value : allScalingRules)
|
||||
{
|
||||
ScalingRule scalingRulesObject;
|
||||
if(!value["ScalingRuleId"].isNull())
|
||||
scalingRulesObject.scalingRuleId = value["ScalingRuleId"].asString();
|
||||
if(!value["ScalingGroupId"].isNull())
|
||||
scalingRulesObject.scalingGroupId = value["ScalingGroupId"].asString();
|
||||
if(!value["ScalingRuleName"].isNull())
|
||||
scalingRulesObject.scalingRuleName = value["ScalingRuleName"].asString();
|
||||
if(!value["Cooldown"].isNull())
|
||||
scalingRulesObject.cooldown = std::stoi(value["Cooldown"].asString());
|
||||
if(!value["AdjustmentType"].isNull())
|
||||
scalingRulesObject.adjustmentType = value["AdjustmentType"].asString();
|
||||
if(!value["AdjustmentValue"].isNull())
|
||||
scalingRulesObject.adjustmentValue = std::stoi(value["AdjustmentValue"].asString());
|
||||
if(!value["MinSize"].isNull())
|
||||
scalingRulesObject.minSize = std::stoi(value["MinSize"].asString());
|
||||
if(!value["MaxSize"].isNull())
|
||||
scalingRulesObject.maxSize = std::stoi(value["MaxSize"].asString());
|
||||
if(!value["ScalingRuleAri"].isNull())
|
||||
scalingRulesObject.scalingRuleAri = value["ScalingRuleAri"].asString();
|
||||
scalingRules_.push_back(scalingRulesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingRulesResult::ScalingRule> DescribeScalingRulesResult::getScalingRules()const
|
||||
{
|
||||
return scalingRules_;
|
||||
}
|
||||
|
||||
int DescribeScalingRulesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingRulesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingRulesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScalingRulesResult::ScalingRule> DescribeScalingRulesResult::getScalingRules()const
|
||||
{
|
||||
return scalingRules_;
|
||||
}
|
||||
|
||||
int DescribeScalingRulesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScalingRulesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScalingRulesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,58 +40,58 @@ void DescribeScheduledTasksResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allScheduledTasks = value["ScheduledTasks"]["ScheduledTask"];
|
||||
for (auto value : allScheduledTasks)
|
||||
{
|
||||
ScheduledTask scheduledTasksObject;
|
||||
if(!value["ScheduledTaskId"].isNull())
|
||||
scheduledTasksObject.scheduledTaskId = value["ScheduledTaskId"].asString();
|
||||
if(!value["ScheduledTaskName"].isNull())
|
||||
scheduledTasksObject.scheduledTaskName = value["ScheduledTaskName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
scheduledTasksObject.description = value["Description"].asString();
|
||||
if(!value["ScheduledAction"].isNull())
|
||||
scheduledTasksObject.scheduledAction = value["ScheduledAction"].asString();
|
||||
if(!value["RecurrenceEndTime"].isNull())
|
||||
scheduledTasksObject.recurrenceEndTime = value["RecurrenceEndTime"].asString();
|
||||
if(!value["LaunchTime"].isNull())
|
||||
scheduledTasksObject.launchTime = value["LaunchTime"].asString();
|
||||
if(!value["RecurrenceType"].isNull())
|
||||
scheduledTasksObject.recurrenceType = value["RecurrenceType"].asString();
|
||||
if(!value["RecurrenceValue"].isNull())
|
||||
scheduledTasksObject.recurrenceValue = value["RecurrenceValue"].asString();
|
||||
if(!value["LaunchExpirationTime"].isNull())
|
||||
scheduledTasksObject.launchExpirationTime = std::stoi(value["LaunchExpirationTime"].asString());
|
||||
if(!value["TaskEnabled"].isNull())
|
||||
scheduledTasksObject.taskEnabled = value["TaskEnabled"].asString() == "true";
|
||||
scheduledTasks_.push_back(scheduledTasksObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allScheduledTasks = value["ScheduledTasks"]["ScheduledTask"];
|
||||
for (auto value : allScheduledTasks)
|
||||
{
|
||||
ScheduledTask scheduledTasksObject;
|
||||
if(!value["ScheduledTaskId"].isNull())
|
||||
scheduledTasksObject.scheduledTaskId = value["ScheduledTaskId"].asString();
|
||||
if(!value["ScheduledTaskName"].isNull())
|
||||
scheduledTasksObject.scheduledTaskName = value["ScheduledTaskName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
scheduledTasksObject.description = value["Description"].asString();
|
||||
if(!value["ScheduledAction"].isNull())
|
||||
scheduledTasksObject.scheduledAction = value["ScheduledAction"].asString();
|
||||
if(!value["RecurrenceEndTime"].isNull())
|
||||
scheduledTasksObject.recurrenceEndTime = value["RecurrenceEndTime"].asString();
|
||||
if(!value["LaunchTime"].isNull())
|
||||
scheduledTasksObject.launchTime = value["LaunchTime"].asString();
|
||||
if(!value["RecurrenceType"].isNull())
|
||||
scheduledTasksObject.recurrenceType = value["RecurrenceType"].asString();
|
||||
if(!value["RecurrenceValue"].isNull())
|
||||
scheduledTasksObject.recurrenceValue = value["RecurrenceValue"].asString();
|
||||
if(!value["LaunchExpirationTime"].isNull())
|
||||
scheduledTasksObject.launchExpirationTime = std::stoi(value["LaunchExpirationTime"].asString());
|
||||
if(!value["TaskEnabled"].isNull())
|
||||
scheduledTasksObject.taskEnabled = value["TaskEnabled"].asString() == "true";
|
||||
scheduledTasks_.push_back(scheduledTasksObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeScheduledTasksResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScheduledTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScheduledTasksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScheduledTasksResult::ScheduledTask> DescribeScheduledTasksResult::getScheduledTasks()const
|
||||
{
|
||||
return scheduledTasks_;
|
||||
}
|
||||
|
||||
int DescribeScheduledTasksResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeScheduledTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeScheduledTasksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScheduledTasksResult::ScheduledTask> DescribeScheduledTasksResult::getScheduledTasks()const
|
||||
{
|
||||
return scheduledTasks_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void DetachInstancesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DetachInstancesResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
std::string DetachInstancesResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
|
||||
83
ess/src/model/EnterStandbyRequest.cc
Normal file
83
ess/src/model/EnterStandbyRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/ess/model/EnterStandbyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::EnterStandbyRequest;
|
||||
|
||||
EnterStandbyRequest::EnterStandbyRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "EnterStandby")
|
||||
{}
|
||||
|
||||
EnterStandbyRequest::~EnterStandbyRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> EnterStandbyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setInstanceId(const std::vector<std::string>& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
for(int i = 0; i!= instanceId.size(); i++)
|
||||
setParameter("InstanceId."+ std::to_string(i), instanceId.at(i));
|
||||
}
|
||||
|
||||
std::string EnterStandbyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string EnterStandbyRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
long EnterStandbyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string EnterStandbyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ess/src/model/EnterStandbyResult.cc
Normal file
45
ess/src/model/EnterStandbyResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ess/model/EnterStandbyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
EnterStandbyResult::EnterStandbyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnterStandbyResult::EnterStandbyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnterStandbyResult::~EnterStandbyResult()
|
||||
{}
|
||||
|
||||
void EnterStandbyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -40,13 +40,13 @@ void ExecuteScalingRuleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ExecuteScalingRuleResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
std::string ExecuteScalingRuleResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
|
||||
83
ess/src/model/ExitStandbyRequest.cc
Normal file
83
ess/src/model/ExitStandbyRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/ess/model/ExitStandbyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::ExitStandbyRequest;
|
||||
|
||||
ExitStandbyRequest::ExitStandbyRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "ExitStandby")
|
||||
{}
|
||||
|
||||
ExitStandbyRequest::~ExitStandbyRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> ExitStandbyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setInstanceId(const std::vector<std::string>& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
for(int i = 0; i!= instanceId.size(); i++)
|
||||
setParameter("InstanceId."+ std::to_string(i), instanceId.at(i));
|
||||
}
|
||||
|
||||
std::string ExitStandbyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ExitStandbyRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
long ExitStandbyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ExitStandbyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ess/src/model/ExitStandbyResult.cc
Normal file
45
ess/src/model/ExitStandbyResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ess/model/ExitStandbyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
ExitStandbyResult::ExitStandbyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExitStandbyResult::ExitStandbyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExitStandbyResult::~ExitStandbyResult()
|
||||
{}
|
||||
|
||||
void ExitStandbyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
94
ess/src/model/ModifyNotificationConfigurationRequest.cc
Normal file
94
ess/src/model/ModifyNotificationConfigurationRequest.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/ess/model/ModifyNotificationConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::ModifyNotificationConfigurationRequest;
|
||||
|
||||
ModifyNotificationConfigurationRequest::ModifyNotificationConfigurationRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "ModifyNotificationConfiguration")
|
||||
{}
|
||||
|
||||
ModifyNotificationConfigurationRequest::~ModifyNotificationConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyNotificationConfigurationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyNotificationConfigurationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyNotificationConfigurationRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void ModifyNotificationConfigurationRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyNotificationConfigurationRequest::getNotificationArn()const
|
||||
{
|
||||
return notificationArn_;
|
||||
}
|
||||
|
||||
void ModifyNotificationConfigurationRequest::setNotificationArn(const std::string& notificationArn)
|
||||
{
|
||||
notificationArn_ = notificationArn;
|
||||
setParameter("NotificationArn", notificationArn);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyNotificationConfigurationRequest::getNotificationType()const
|
||||
{
|
||||
return notificationType_;
|
||||
}
|
||||
|
||||
void ModifyNotificationConfigurationRequest::setNotificationType(const std::vector<std::string>& notificationType)
|
||||
{
|
||||
notificationType_ = notificationType;
|
||||
for(int i = 0; i!= notificationType.size(); i++)
|
||||
setParameter("NotificationType."+ std::to_string(i), notificationType.at(i));
|
||||
}
|
||||
|
||||
long ModifyNotificationConfigurationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyNotificationConfigurationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyNotificationConfigurationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyNotificationConfigurationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ess/src/model/ModifyNotificationConfigurationResult.cc
Normal file
45
ess/src/model/ModifyNotificationConfigurationResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ess/model/ModifyNotificationConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
ModifyNotificationConfigurationResult::ModifyNotificationConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyNotificationConfigurationResult::ModifyNotificationConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyNotificationConfigurationResult::~ModifyNotificationConfigurationResult()
|
||||
{}
|
||||
|
||||
void ModifyNotificationConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -40,13 +40,13 @@ void RemoveInstancesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
if(!value["ScalingActivityId"].isNull())
|
||||
scalingActivityId_ = value["ScalingActivityId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RemoveInstancesResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
std::string RemoveInstancesResult::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user