Update ScalingConfig parameters.
This commit is contained in:
11
ess/src/model/AttachDBInstancesRequest.cc
Executable file → Normal file
11
ess/src/model/AttachDBInstancesRequest.cc
Executable file → Normal file
@@ -27,6 +27,17 @@ AttachDBInstancesRequest::AttachDBInstancesRequest() :
|
||||
AttachDBInstancesRequest::~AttachDBInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string AttachDBInstancesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AttachDBInstancesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AttachDBInstancesRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
|
||||
0
ess/src/model/AttachDBInstancesResult.cc
Executable file → Normal file
0
ess/src/model/AttachDBInstancesResult.cc
Executable file → Normal file
0
ess/src/model/AttachInstancesRequest.cc
Executable file → Normal file
0
ess/src/model/AttachInstancesRequest.cc
Executable file → Normal file
0
ess/src/model/AttachInstancesResult.cc
Executable file → Normal file
0
ess/src/model/AttachInstancesResult.cc
Executable file → Normal file
11
ess/src/model/AttachLoadBalancersRequest.cc
Executable file → Normal file
11
ess/src/model/AttachLoadBalancersRequest.cc
Executable file → Normal file
@@ -27,6 +27,17 @@ AttachLoadBalancersRequest::AttachLoadBalancersRequest() :
|
||||
AttachLoadBalancersRequest::~AttachLoadBalancersRequest()
|
||||
{}
|
||||
|
||||
std::string AttachLoadBalancersRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AttachLoadBalancersRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AttachLoadBalancersRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
|
||||
0
ess/src/model/AttachLoadBalancersResult.cc
Executable file → Normal file
0
ess/src/model/AttachLoadBalancersResult.cc
Executable file → Normal file
11
ess/src/model/AttachVServerGroupsRequest.cc
Executable file → Normal file
11
ess/src/model/AttachVServerGroupsRequest.cc
Executable file → Normal file
@@ -27,6 +27,17 @@ AttachVServerGroupsRequest::AttachVServerGroupsRequest() :
|
||||
AttachVServerGroupsRequest::~AttachVServerGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string AttachVServerGroupsRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AttachVServerGroupsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AttachVServerGroupsRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
|
||||
0
ess/src/model/AttachVServerGroupsResult.cc
Executable file → Normal file
0
ess/src/model/AttachVServerGroupsResult.cc
Executable file → Normal file
11
ess/src/model/CompleteLifecycleActionRequest.cc
Executable file → Normal file
11
ess/src/model/CompleteLifecycleActionRequest.cc
Executable file → Normal file
@@ -38,6 +38,17 @@ void CompleteLifecycleActionRequest::setLifecycleActionToken(const std::string&
|
||||
setParameter("LifecycleActionToken", lifecycleActionToken);
|
||||
}
|
||||
|
||||
std::string CompleteLifecycleActionRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CompleteLifecycleActionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CompleteLifecycleActionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
|
||||
0
ess/src/model/CompleteLifecycleActionResult.cc
Executable file → Normal file
0
ess/src/model/CompleteLifecycleActionResult.cc
Executable file → Normal file
11
ess/src/model/CreateAlarmRequest.cc
Executable file → Normal file
11
ess/src/model/CreateAlarmRequest.cc
Executable file → Normal file
@@ -95,6 +95,17 @@ void CreateAlarmRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getEffective()const
|
||||
{
|
||||
return effective_;
|
||||
}
|
||||
|
||||
void CreateAlarmRequest::setEffective(const std::string& effective)
|
||||
{
|
||||
effective_ = effective;
|
||||
setParameter("Effective", effective);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
0
ess/src/model/CreateAlarmResult.cc
Executable file → Normal file
0
ess/src/model/CreateAlarmResult.cc
Executable file → Normal file
20
ess/src/model/CreateLifecycleHookRequest.cc
Executable file → Normal file
20
ess/src/model/CreateLifecycleHookRequest.cc
Executable file → Normal file
@@ -148,23 +148,3 @@ void CreateLifecycleHookRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<CreateLifecycleHookRequest::LifecycleHook> CreateLifecycleHookRequest::getLifecycleHook()const
|
||||
{
|
||||
return lifecycleHook_;
|
||||
}
|
||||
|
||||
void CreateLifecycleHookRequest::setLifecycleHook(const std::vector<LifecycleHook>& lifecycleHook)
|
||||
{
|
||||
lifecycleHook_ = lifecycleHook;
|
||||
for(int dep1 = 0; dep1!= lifecycleHook.size(); dep1++) {
|
||||
auto lifecycleHookObj = lifecycleHook.at(dep1);
|
||||
std::string lifecycleHookObjStr = "LifecycleHook." + std::to_string(dep1 + 1);
|
||||
setParameter(lifecycleHookObjStr + ".DefaultResult", lifecycleHookObj.defaultResult);
|
||||
setParameter(lifecycleHookObjStr + ".LifecycleHookName", lifecycleHookObj.lifecycleHookName);
|
||||
setParameter(lifecycleHookObjStr + ".HeartbeatTimeout", std::to_string(lifecycleHookObj.heartbeatTimeout));
|
||||
setParameter(lifecycleHookObjStr + ".NotificationArn", lifecycleHookObj.notificationArn);
|
||||
setParameter(lifecycleHookObjStr + ".NotificationMetadata", lifecycleHookObj.notificationMetadata);
|
||||
setParameter(lifecycleHookObjStr + ".LifecycleTransition", lifecycleHookObj.lifecycleTransition);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
0
ess/src/model/CreateLifecycleHookResult.cc
Executable file → Normal file
0
ess/src/model/CreateLifecycleHookResult.cc
Executable file → Normal file
0
ess/src/model/CreateNotificationConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/CreateNotificationConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/CreateNotificationConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/CreateNotificationConfigurationResult.cc
Executable file → Normal file
99
ess/src/model/CreateScalingConfigurationRequest.cc
Executable file → Normal file
99
ess/src/model/CreateScalingConfigurationRequest.cc
Executable file → Normal file
@@ -87,6 +87,17 @@ void CreateScalingConfigurationRequest::setResourceGroupId(const std::string& re
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getPrivatePoolOptionsMatchCriteria()const
|
||||
{
|
||||
return privatePoolOptionsMatchCriteria_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria)
|
||||
{
|
||||
privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria;
|
||||
setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getHostName()const
|
||||
{
|
||||
return hostName_;
|
||||
@@ -131,6 +142,17 @@ void CreateScalingConfigurationRequest::setSystemDiskAutoSnapshotPolicyId(const
|
||||
setParameter("SystemDiskAutoSnapshotPolicyId", systemDiskAutoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getPrivatePoolOptionsId()const
|
||||
{
|
||||
return privatePoolOptionsId_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId)
|
||||
{
|
||||
privatePoolOptionsId_ = privatePoolOptionsId;
|
||||
setParameter("PrivatePoolOptionsId", privatePoolOptionsId);
|
||||
}
|
||||
|
||||
int CreateScalingConfigurationRequest::getIpv6AddressCount()const
|
||||
{
|
||||
return ipv6AddressCount_;
|
||||
@@ -219,6 +241,17 @@ void CreateScalingConfigurationRequest::setInternetChargeType(const std::string&
|
||||
setParameter("InternetChargeType", internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
int CreateScalingConfigurationRequest::getInternetMaxBandwidthIn()const
|
||||
{
|
||||
return internetMaxBandwidthIn_;
|
||||
@@ -230,6 +263,17 @@ void CreateScalingConfigurationRequest::setInternetMaxBandwidthIn(int internetMa
|
||||
setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn));
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getAffinity()const
|
||||
{
|
||||
return affinity_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setAffinity(const std::string& affinity)
|
||||
{
|
||||
affinity_ = affinity;
|
||||
setParameter("Affinity", affinity);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getImageId()const
|
||||
{
|
||||
return imageId_;
|
||||
@@ -386,6 +430,17 @@ void CreateScalingConfigurationRequest::setInstanceType(const std::string& insta
|
||||
setParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> CreateScalingConfigurationRequest::getSchedulerOptions()const
|
||||
{
|
||||
return schedulerOptions_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setSchedulerOptions(const std::map<std::string, std::string>& schedulerOptions)
|
||||
{
|
||||
schedulerOptions_ = schedulerOptions;
|
||||
setJsonParameters("SchedulerOptions", schedulerOptions);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
@@ -419,6 +474,17 @@ void CreateScalingConfigurationRequest::setOwnerAccount(const std::string& owner
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getTenancy()const
|
||||
{
|
||||
return tenancy_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setTenancy(const std::string& tenancy)
|
||||
{
|
||||
tenancy_ = tenancy;
|
||||
setParameter("Tenancy", tenancy);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getSystemDiskDiskName()const
|
||||
{
|
||||
return systemDiskDiskName_;
|
||||
@@ -441,6 +507,28 @@ void CreateScalingConfigurationRequest::setRamRoleName(const std::string& ramRol
|
||||
setParameter("RamRoleName", ramRoleName);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getCreditSpecification()const
|
||||
{
|
||||
return creditSpecification_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setCreditSpecification(const std::string& creditSpecification)
|
||||
{
|
||||
creditSpecification_ = creditSpecification;
|
||||
setParameter("CreditSpecification", creditSpecification);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateScalingConfigurationRequest::getSecurityGroupIds()const
|
||||
{
|
||||
return securityGroupIds_;
|
||||
@@ -500,6 +588,17 @@ void CreateScalingConfigurationRequest::setSystemDiskSize(int systemDiskSize)
|
||||
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getImageFamily()const
|
||||
{
|
||||
return imageFamily_;
|
||||
}
|
||||
|
||||
void CreateScalingConfigurationRequest::setImageFamily(const std::string& imageFamily)
|
||||
{
|
||||
imageFamily_ = imageFamily;
|
||||
setParameter("ImageFamily", imageFamily);
|
||||
}
|
||||
|
||||
std::string CreateScalingConfigurationRequest::getSystemDiskDescription()const
|
||||
{
|
||||
return systemDiskDescription_;
|
||||
|
||||
0
ess/src/model/CreateScalingConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/CreateScalingConfigurationResult.cc
Executable file → Normal file
22
ess/src/model/CreateScalingGroupRequest.cc
Executable file → Normal file
22
ess/src/model/CreateScalingGroupRequest.cc
Executable file → Normal file
@@ -51,6 +51,17 @@ void CreateScalingGroupRequest::setSpotInstanceRemedy(bool spotInstanceRemedy)
|
||||
setParameter("SpotInstanceRemedy", spotInstanceRemedy ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateScalingGroupRequest::getScaleOutAmountCheck()const
|
||||
{
|
||||
return scaleOutAmountCheck_;
|
||||
}
|
||||
|
||||
void CreateScalingGroupRequest::setScaleOutAmountCheck(bool scaleOutAmountCheck)
|
||||
{
|
||||
scaleOutAmountCheck_ = scaleOutAmountCheck;
|
||||
setParameter("ScaleOutAmountCheck", scaleOutAmountCheck ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateScalingGroupRequest::Tag> CreateScalingGroupRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
@@ -122,6 +133,17 @@ void CreateScalingGroupRequest::setDesiredCapacity(int desiredCapacity)
|
||||
setParameter("DesiredCapacity", std::to_string(desiredCapacity));
|
||||
}
|
||||
|
||||
bool CreateScalingGroupRequest::getCompensateWithOnDemand()const
|
||||
{
|
||||
return compensateWithOnDemand_;
|
||||
}
|
||||
|
||||
void CreateScalingGroupRequest::setCompensateWithOnDemand(bool compensateWithOnDemand)
|
||||
{
|
||||
compensateWithOnDemand_ = compensateWithOnDemand;
|
||||
setParameter("CompensateWithOnDemand", compensateWithOnDemand ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateScalingGroupRequest::getMinSize()const
|
||||
{
|
||||
return minSize_;
|
||||
|
||||
0
ess/src/model/CreateScalingGroupResult.cc
Executable file → Normal file
0
ess/src/model/CreateScalingGroupResult.cc
Executable file → Normal file
22
ess/src/model/CreateScalingRuleRequest.cc
Executable file → Normal file
22
ess/src/model/CreateScalingRuleRequest.cc
Executable file → Normal file
@@ -121,6 +121,17 @@ void CreateScalingRuleRequest::setPredictiveValueBehavior(const std::string& pre
|
||||
setParameter("PredictiveValueBehavior", predictiveValueBehavior);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getScaleInEvaluationCount()const
|
||||
{
|
||||
return scaleInEvaluationCount_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setScaleInEvaluationCount(int scaleInEvaluationCount)
|
||||
{
|
||||
scaleInEvaluationCount_ = scaleInEvaluationCount;
|
||||
setParameter("ScaleInEvaluationCount", std::to_string(scaleInEvaluationCount));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getScalingRuleType()const
|
||||
{
|
||||
return scalingRuleType_;
|
||||
@@ -242,6 +253,17 @@ void CreateScalingRuleRequest::setPredictiveValueBuffer(int predictiveValueBuffe
|
||||
setParameter("PredictiveValueBuffer", std::to_string(predictiveValueBuffer));
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getScaleOutEvaluationCount()const
|
||||
{
|
||||
return scaleOutEvaluationCount_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setScaleOutEvaluationCount(int scaleOutEvaluationCount)
|
||||
{
|
||||
scaleOutEvaluationCount_ = scaleOutEvaluationCount;
|
||||
setParameter("ScaleOutEvaluationCount", std::to_string(scaleOutEvaluationCount));
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getMinAdjustmentMagnitude()const
|
||||
{
|
||||
return minAdjustmentMagnitude_;
|
||||
|
||||
0
ess/src/model/CreateScalingRuleResult.cc
Executable file → Normal file
0
ess/src/model/CreateScalingRuleResult.cc
Executable file → Normal file
0
ess/src/model/CreateScheduledTaskRequest.cc
Executable file → Normal file
0
ess/src/model/CreateScheduledTaskRequest.cc
Executable file → Normal file
0
ess/src/model/CreateScheduledTaskResult.cc
Executable file → Normal file
0
ess/src/model/CreateScheduledTaskResult.cc
Executable file → Normal file
0
ess/src/model/DeactivateScalingConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/DeactivateScalingConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/DeactivateScalingConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/DeactivateScalingConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/DeleteAlarmRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteAlarmRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteAlarmResult.cc
Executable file → Normal file
0
ess/src/model/DeleteAlarmResult.cc
Executable file → Normal file
0
ess/src/model/DeleteLifecycleHookRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteLifecycleHookRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteLifecycleHookResult.cc
Executable file → Normal file
0
ess/src/model/DeleteLifecycleHookResult.cc
Executable file → Normal file
0
ess/src/model/DeleteNotificationConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteNotificationConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteNotificationConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/DeleteNotificationConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingConfigurationRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingConfigurationResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingGroupRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingGroupRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingGroupResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingGroupResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingRuleRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingRuleRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingRuleResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScalingRuleResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScheduledTaskRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScheduledTaskRequest.cc
Executable file → Normal file
0
ess/src/model/DeleteScheduledTaskResult.cc
Executable file → Normal file
0
ess/src/model/DeleteScheduledTaskResult.cc
Executable file → Normal file
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeAccountAttributesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::DescribeAccountAttributesRequest;
|
||||
|
||||
DescribeAccountAttributesRequest::DescribeAccountAttributesRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "DescribeAccountAttributes")
|
||||
{}
|
||||
|
||||
DescribeAccountAttributesRequest::~DescribeAccountAttributesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccountAttributesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAccountAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeAccountAttributesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAccountAttributesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAccountAttributesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAccountAttributesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeAccountAttributesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
DescribeAccountAttributesResult::DescribeAccountAttributesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountAttributesResult::DescribeAccountAttributesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountAttributesResult::~DescribeAccountAttributesResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountAttributesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
0
ess/src/model/DescribeAlarmsRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeAlarmsRequest.cc
Executable file → Normal file
2
ess/src/model/DescribeAlarmsResult.cc
Executable file → Normal file
2
ess/src/model/DescribeAlarmsResult.cc
Executable file → Normal file
@@ -69,6 +69,8 @@ void DescribeAlarmsResult::parse(const std::string &payload)
|
||||
alarmListObject.scalingGroupId = valueAlarmListAlarm["ScalingGroupId"].asString();
|
||||
if(!valueAlarmListAlarm["Enable"].isNull())
|
||||
alarmListObject.enable = valueAlarmListAlarm["Enable"].asString() == "true";
|
||||
if(!valueAlarmListAlarm["Effective"].isNull())
|
||||
alarmListObject.effective = valueAlarmListAlarm["Effective"].asString();
|
||||
auto allDimensionsNode = allAlarmListNode["Dimensions"]["Dimension"];
|
||||
for (auto allAlarmListNodeDimensionsDimension : allDimensionsNode)
|
||||
{
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeAlertConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::DescribeAlertConfigRequest;
|
||||
|
||||
DescribeAlertConfigRequest::DescribeAlertConfigRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "DescribeAlertConfig")
|
||||
{}
|
||||
|
||||
DescribeAlertConfigRequest::~DescribeAlertConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAlertConfigRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAlertConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAlertConfigRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void DescribeAlertConfigRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setCoreParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
long DescribeAlertConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAlertConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAlertConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAlertConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeAlertConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
DescribeAlertConfigResult::DescribeAlertConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAlertConfigResult::DescribeAlertConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAlertConfigResult::~DescribeAlertConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeAlertConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getFailConfig()const
|
||||
{
|
||||
return failConfig_;
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getRejectConfig()const
|
||||
{
|
||||
return rejectConfig_;
|
||||
}
|
||||
|
||||
int DescribeAlertConfigResult::getSuccessConfig()const
|
||||
{
|
||||
return successConfig_;
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeCapacityHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::DescribeCapacityHistoryRequest;
|
||||
|
||||
DescribeCapacityHistoryRequest::DescribeCapacityHistoryRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "DescribeCapacityHistory")
|
||||
{}
|
||||
|
||||
DescribeCapacityHistoryRequest::~DescribeCapacityHistoryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCapacityHistoryRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setCoreParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeCapacityHistoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeCapacityHistoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int DescribeCapacityHistoryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCapacityHistoryRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCapacityHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeCapacityHistoryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCapacityHistoryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeCapacityHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
DescribeCapacityHistoryResult::DescribeCapacityHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCapacityHistoryResult::DescribeCapacityHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCapacityHistoryResult::~DescribeCapacityHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeCapacityHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCapacityHistoryItemsNode = value["CapacityHistoryItems"]["CapacityHistoryModel"];
|
||||
for (auto valueCapacityHistoryItemsCapacityHistoryModel : allCapacityHistoryItemsNode)
|
||||
{
|
||||
CapacityHistoryModel capacityHistoryItemsObject;
|
||||
if(!valueCapacityHistoryItemsCapacityHistoryModel["ScalingGroupId"].isNull())
|
||||
capacityHistoryItemsObject.scalingGroupId = valueCapacityHistoryItemsCapacityHistoryModel["ScalingGroupId"].asString();
|
||||
if(!valueCapacityHistoryItemsCapacityHistoryModel["TotalCapacity"].isNull())
|
||||
capacityHistoryItemsObject.totalCapacity = std::stoi(valueCapacityHistoryItemsCapacityHistoryModel["TotalCapacity"].asString());
|
||||
if(!valueCapacityHistoryItemsCapacityHistoryModel["AttachedCapacity"].isNull())
|
||||
capacityHistoryItemsObject.attachedCapacity = std::stoi(valueCapacityHistoryItemsCapacityHistoryModel["AttachedCapacity"].asString());
|
||||
if(!valueCapacityHistoryItemsCapacityHistoryModel["AutoCreatedCapacity"].isNull())
|
||||
capacityHistoryItemsObject.autoCreatedCapacity = std::stoi(valueCapacityHistoryItemsCapacityHistoryModel["AutoCreatedCapacity"].asString());
|
||||
if(!valueCapacityHistoryItemsCapacityHistoryModel["Timestamp"].isNull())
|
||||
capacityHistoryItemsObject.timestamp = valueCapacityHistoryItemsCapacityHistoryModel["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_;
|
||||
}
|
||||
|
||||
106
ess/src/model/DescribeLifecycleActionsRequest.cc
Normal file
106
ess/src/model/DescribeLifecycleActionsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/DescribeLifecycleActionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::DescribeLifecycleActionsRequest;
|
||||
|
||||
DescribeLifecycleActionsRequest::DescribeLifecycleActionsRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "DescribeLifecycleActions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLifecycleActionsRequest::~DescribeLifecycleActionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLifecycleActionsRequest::getLifecycleActionStatus()const
|
||||
{
|
||||
return lifecycleActionStatus_;
|
||||
}
|
||||
|
||||
void DescribeLifecycleActionsRequest::setLifecycleActionStatus(const std::string& lifecycleActionStatus)
|
||||
{
|
||||
lifecycleActionStatus_ = lifecycleActionStatus;
|
||||
setParameter("LifecycleActionStatus", lifecycleActionStatus);
|
||||
}
|
||||
|
||||
std::string DescribeLifecycleActionsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLifecycleActionsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLifecycleActionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeLifecycleActionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeLifecycleActionsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLifecycleActionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeLifecycleActionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLifecycleActionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLifecycleActionsRequest::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
void DescribeLifecycleActionsRequest::setScalingActivityId(const std::string& scalingActivityId)
|
||||
{
|
||||
scalingActivityId_ = scalingActivityId;
|
||||
setParameter("ScalingActivityId", scalingActivityId);
|
||||
}
|
||||
|
||||
int DescribeLifecycleActionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeLifecycleActionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
87
ess/src/model/DescribeLifecycleActionsResult.cc
Normal file
87
ess/src/model/DescribeLifecycleActionsResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/DescribeLifecycleActionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
DescribeLifecycleActionsResult::DescribeLifecycleActionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLifecycleActionsResult::DescribeLifecycleActionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLifecycleActionsResult::~DescribeLifecycleActionsResult()
|
||||
{}
|
||||
|
||||
void DescribeLifecycleActionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLifecycleActionsNode = value["LifecycleActions"]["LifecycleAction"];
|
||||
for (auto valueLifecycleActionsLifecycleAction : allLifecycleActionsNode)
|
||||
{
|
||||
LifecycleAction lifecycleActionsObject;
|
||||
if(!valueLifecycleActionsLifecycleAction["LifecycleActionToken"].isNull())
|
||||
lifecycleActionsObject.lifecycleActionToken = valueLifecycleActionsLifecycleAction["LifecycleActionToken"].asString();
|
||||
if(!valueLifecycleActionsLifecycleAction["LifecycleActionStatus"].isNull())
|
||||
lifecycleActionsObject.lifecycleActionStatus = valueLifecycleActionsLifecycleAction["LifecycleActionStatus"].asString();
|
||||
if(!valueLifecycleActionsLifecycleAction["LifecycleActionResult"].isNull())
|
||||
lifecycleActionsObject.lifecycleActionResult = valueLifecycleActionsLifecycleAction["LifecycleActionResult"].asString();
|
||||
if(!valueLifecycleActionsLifecycleAction["LifecycleHookId"].isNull())
|
||||
lifecycleActionsObject.lifecycleHookId = valueLifecycleActionsLifecycleAction["LifecycleHookId"].asString();
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (auto value : allInstanceIds)
|
||||
lifecycleActionsObject.instanceIds.push_back(value.asString());
|
||||
lifecycleActions_.push_back(lifecycleActionsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeLifecycleActionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeLifecycleActionsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int DescribeLifecycleActionsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLifecycleActionsResult::LifecycleAction> DescribeLifecycleActionsResult::getLifecycleActions()const
|
||||
{
|
||||
return lifecycleActions_;
|
||||
}
|
||||
|
||||
0
ess/src/model/DescribeLifecycleHooksRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeLifecycleHooksRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeLifecycleHooksResult.cc
Executable file → Normal file
0
ess/src/model/DescribeLifecycleHooksResult.cc
Executable file → Normal file
0
ess/src/model/DescribeLimitationRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeLimitationRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeLimitationResult.cc
Executable file → Normal file
0
ess/src/model/DescribeLimitationResult.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationConfigurationsRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationConfigurationsRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationConfigurationsResult.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationConfigurationsResult.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationTypesRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationTypesRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationTypesResult.cc
Executable file → Normal file
0
ess/src/model/DescribeNotificationTypesResult.cc
Executable file → Normal file
0
ess/src/model/DescribeRegionsRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeRegionsRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeRegionsResult.cc
Executable file → Normal file
0
ess/src/model/DescribeRegionsResult.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivitiesRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivitiesRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivitiesResult.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivitiesResult.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivityDetailRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivityDetailRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivityDetailResult.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingActivityDetailResult.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingConfigurationsRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingConfigurationsRequest.cc
Executable file → Normal file
19
ess/src/model/DescribeScalingConfigurationsResult.cc
Executable file → Normal file
19
ess/src/model/DescribeScalingConfigurationsResult.cc
Executable file → Normal file
@@ -111,6 +111,22 @@ void DescribeScalingConfigurationsResult::parse(const std::string &payload)
|
||||
scalingConfigurationsObject.hpcClusterId = valueScalingConfigurationsScalingConfiguration["HpcClusterId"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["InstanceDescription"].isNull())
|
||||
scalingConfigurationsObject.instanceDescription = valueScalingConfigurationsScalingConfiguration["InstanceDescription"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["CreditSpecification"].isNull())
|
||||
scalingConfigurationsObject.creditSpecification = valueScalingConfigurationsScalingConfiguration["CreditSpecification"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["ImageFamily"].isNull())
|
||||
scalingConfigurationsObject.imageFamily = valueScalingConfigurationsScalingConfiguration["ImageFamily"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["ZoneId"].isNull())
|
||||
scalingConfigurationsObject.zoneId = valueScalingConfigurationsScalingConfiguration["ZoneId"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["DedicatedHostId"].isNull())
|
||||
scalingConfigurationsObject.dedicatedHostId = valueScalingConfigurationsScalingConfiguration["DedicatedHostId"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["Affinity"].isNull())
|
||||
scalingConfigurationsObject.affinity = valueScalingConfigurationsScalingConfiguration["Affinity"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["Tenancy"].isNull())
|
||||
scalingConfigurationsObject.tenancy = valueScalingConfigurationsScalingConfiguration["Tenancy"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["PrivatePoolOptions.MatchCriteria"].isNull())
|
||||
scalingConfigurationsObject.privatePoolOptionsMatchCriteria = valueScalingConfigurationsScalingConfiguration["PrivatePoolOptions.MatchCriteria"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["PrivatePoolOptions.Id"].isNull())
|
||||
scalingConfigurationsObject.privatePoolOptionsId = valueScalingConfigurationsScalingConfiguration["PrivatePoolOptions.Id"].asString();
|
||||
if(!valueScalingConfigurationsScalingConfiguration["Ipv6AddressCount"].isNull())
|
||||
scalingConfigurationsObject.ipv6AddressCount = std::stoi(valueScalingConfigurationsScalingConfiguration["Ipv6AddressCount"].asString());
|
||||
auto allDataDisksNode = allScalingConfigurationsNode["DataDisks"]["DataDisk"];
|
||||
@@ -159,6 +175,9 @@ void DescribeScalingConfigurationsResult::parse(const std::string &payload)
|
||||
spotPriceLimitObject.priceLimit = std::stof(allScalingConfigurationsNodeSpotPriceLimitSpotPriceModel["PriceLimit"].asString());
|
||||
scalingConfigurationsObject.spotPriceLimit.push_back(spotPriceLimitObject);
|
||||
}
|
||||
auto schedulerOptionsNode = value["SchedulerOptions"];
|
||||
if(!schedulerOptionsNode["ManagedPrivateSpaceId"].isNull())
|
||||
scalingConfigurationsObject.schedulerOptions.managedPrivateSpaceId = schedulerOptionsNode["ManagedPrivateSpaceId"].asString();
|
||||
auto allInstanceTypes = value["InstanceTypes"]["InstanceType"];
|
||||
for (auto value : allInstanceTypes)
|
||||
scalingConfigurationsObject.instanceTypes.push_back(value.asString());
|
||||
|
||||
0
ess/src/model/DescribeScalingGroupsRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingGroupsRequest.cc
Executable file → Normal file
4
ess/src/model/DescribeScalingGroupsResult.cc
Executable file → Normal file
4
ess/src/model/DescribeScalingGroupsResult.cc
Executable file → Normal file
@@ -101,12 +101,16 @@ void DescribeScalingGroupsResult::parse(const std::string &payload)
|
||||
scalingGroupsObject.onDemandPercentageAboveBaseCapacity = std::stoi(valueScalingGroupsScalingGroup["OnDemandPercentageAboveBaseCapacity"].asString());
|
||||
if(!valueScalingGroupsScalingGroup["SpotInstanceRemedy"].isNull())
|
||||
scalingGroupsObject.spotInstanceRemedy = valueScalingGroupsScalingGroup["SpotInstanceRemedy"].asString() == "true";
|
||||
if(!valueScalingGroupsScalingGroup["CompensateWithOnDemand"].isNull())
|
||||
scalingGroupsObject.compensateWithOnDemand = valueScalingGroupsScalingGroup["CompensateWithOnDemand"].asString() == "true";
|
||||
if(!valueScalingGroupsScalingGroup["SpotInstancePools"].isNull())
|
||||
scalingGroupsObject.spotInstancePools = std::stoi(valueScalingGroupsScalingGroup["SpotInstancePools"].asString());
|
||||
if(!valueScalingGroupsScalingGroup["DesiredCapacity"].isNull())
|
||||
scalingGroupsObject.desiredCapacity = std::stoi(valueScalingGroupsScalingGroup["DesiredCapacity"].asString());
|
||||
if(!valueScalingGroupsScalingGroup["GroupDeletionProtection"].isNull())
|
||||
scalingGroupsObject.groupDeletionProtection = valueScalingGroupsScalingGroup["GroupDeletionProtection"].asString() == "true";
|
||||
if(!valueScalingGroupsScalingGroup["ScaleOutAmountCheck"].isNull())
|
||||
scalingGroupsObject.scaleOutAmountCheck = valueScalingGroupsScalingGroup["ScaleOutAmountCheck"].asString() == "true";
|
||||
auto allVServerGroupsNode = allScalingGroupsNode["VServerGroups"]["VServerGroup"];
|
||||
for (auto allScalingGroupsNodeVServerGroupsVServerGroup : allVServerGroupsNode)
|
||||
{
|
||||
|
||||
0
ess/src/model/DescribeScalingInstancesRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingInstancesRequest.cc
Executable file → Normal file
2
ess/src/model/DescribeScalingInstancesResult.cc
Executable file → Normal file
2
ess/src/model/DescribeScalingInstancesResult.cc
Executable file → Normal file
@@ -67,6 +67,8 @@ void DescribeScalingInstancesResult::parse(const std::string &payload)
|
||||
scalingInstancesObject.warmupState = valueScalingInstancesScalingInstance["WarmupState"].asString();
|
||||
if(!valueScalingInstancesScalingInstance["Entrusted"].isNull())
|
||||
scalingInstancesObject.entrusted = valueScalingInstancesScalingInstance["Entrusted"].asString() == "true";
|
||||
if(!valueScalingInstancesScalingInstance["CreatedTime"].isNull())
|
||||
scalingInstancesObject.createdTime = valueScalingInstancesScalingInstance["CreatedTime"].asString();
|
||||
scalingInstances_.push_back(scalingInstancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
0
ess/src/model/DescribeScalingRulesRequest.cc
Executable file → Normal file
0
ess/src/model/DescribeScalingRulesRequest.cc
Executable file → Normal file
4
ess/src/model/DescribeScalingRulesResult.cc
Executable file → Normal file
4
ess/src/model/DescribeScalingRulesResult.cc
Executable file → Normal file
@@ -73,6 +73,10 @@ void DescribeScalingRulesResult::parse(const std::string &payload)
|
||||
scalingRulesObject.targetValue = std::stof(valueScalingRulesScalingRule["TargetValue"].asString());
|
||||
if(!valueScalingRulesScalingRule["DisableScaleIn"].isNull())
|
||||
scalingRulesObject.disableScaleIn = valueScalingRulesScalingRule["DisableScaleIn"].asString() == "true";
|
||||
if(!valueScalingRulesScalingRule["ScaleInEvaluationCount"].isNull())
|
||||
scalingRulesObject.scaleInEvaluationCount = std::stoi(valueScalingRulesScalingRule["ScaleInEvaluationCount"].asString());
|
||||
if(!valueScalingRulesScalingRule["ScaleOutEvaluationCount"].isNull())
|
||||
scalingRulesObject.scaleOutEvaluationCount = std::stoi(valueScalingRulesScalingRule["ScaleOutEvaluationCount"].asString());
|
||||
if(!valueScalingRulesScalingRule["PredictiveScalingMode"].isNull())
|
||||
scalingRulesObject.predictiveScalingMode = valueScalingRulesScalingRule["PredictiveScalingMode"].asString();
|
||||
if(!valueScalingRulesScalingRule["PredictiveValueBehavior"].isNull())
|
||||
|
||||
11
ess/src/model/DescribeScheduledTasksRequest.cc
Executable file → Normal file
11
ess/src/model/DescribeScheduledTasksRequest.cc
Executable file → Normal file
@@ -192,6 +192,17 @@ void DescribeScheduledTasksRequest::setScheduledTaskId20(const std::string& sche
|
||||
setParameter("ScheduledTaskId20", scheduledTaskId20);
|
||||
}
|
||||
|
||||
std::string DescribeScheduledTasksRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void DescribeScheduledTasksRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeScheduledTasksRequest::getScheduledTaskName13()const
|
||||
{
|
||||
return scheduledTaskName13_;
|
||||
|
||||
0
ess/src/model/DescribeScheduledTasksResult.cc
Executable file → Normal file
0
ess/src/model/DescribeScheduledTasksResult.cc
Executable file → Normal file
11
ess/src/model/DetachDBInstancesRequest.cc
Executable file → Normal file
11
ess/src/model/DetachDBInstancesRequest.cc
Executable file → Normal file
@@ -27,6 +27,17 @@ DetachDBInstancesRequest::DetachDBInstancesRequest() :
|
||||
DetachDBInstancesRequest::~DetachDBInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DetachDBInstancesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DetachDBInstancesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DetachDBInstancesRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
|
||||
0
ess/src/model/DetachDBInstancesResult.cc
Executable file → Normal file
0
ess/src/model/DetachDBInstancesResult.cc
Executable file → Normal file
11
ess/src/model/DetachInstancesRequest.cc
Executable file → Normal file
11
ess/src/model/DetachInstancesRequest.cc
Executable file → Normal file
@@ -117,3 +117,14 @@ void DetachInstancesRequest::setInstanceId(const std::vector<std::string>& insta
|
||||
}
|
||||
}
|
||||
|
||||
std::string DetachInstancesRequest::getDetachOption()const
|
||||
{
|
||||
return detachOption_;
|
||||
}
|
||||
|
||||
void DetachInstancesRequest::setDetachOption(const std::string& detachOption)
|
||||
{
|
||||
detachOption_ = detachOption;
|
||||
setParameter("DetachOption", detachOption);
|
||||
}
|
||||
|
||||
|
||||
0
ess/src/model/DetachInstancesResult.cc
Executable file → Normal file
0
ess/src/model/DetachInstancesResult.cc
Executable file → Normal file
11
ess/src/model/DetachLoadBalancersRequest.cc
Executable file → Normal file
11
ess/src/model/DetachLoadBalancersRequest.cc
Executable file → Normal file
@@ -27,6 +27,17 @@ DetachLoadBalancersRequest::DetachLoadBalancersRequest() :
|
||||
DetachLoadBalancersRequest::~DetachLoadBalancersRequest()
|
||||
{}
|
||||
|
||||
std::string DetachLoadBalancersRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DetachLoadBalancersRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DetachLoadBalancersRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
|
||||
0
ess/src/model/DetachLoadBalancersResult.cc
Executable file → Normal file
0
ess/src/model/DetachLoadBalancersResult.cc
Executable file → Normal file
11
ess/src/model/DetachVServerGroupsRequest.cc
Executable file → Normal file
11
ess/src/model/DetachVServerGroupsRequest.cc
Executable file → Normal file
@@ -27,6 +27,17 @@ DetachVServerGroupsRequest::DetachVServerGroupsRequest() :
|
||||
DetachVServerGroupsRequest::~DetachVServerGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string DetachVServerGroupsRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DetachVServerGroupsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DetachVServerGroupsRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
|
||||
0
ess/src/model/DetachVServerGroupsResult.cc
Executable file → Normal file
0
ess/src/model/DetachVServerGroupsResult.cc
Executable file → Normal file
0
ess/src/model/DisableAlarmRequest.cc
Executable file → Normal file
0
ess/src/model/DisableAlarmRequest.cc
Executable file → Normal file
0
ess/src/model/DisableAlarmResult.cc
Executable file → Normal file
0
ess/src/model/DisableAlarmResult.cc
Executable file → Normal file
0
ess/src/model/DisableScalingGroupRequest.cc
Executable file → Normal file
0
ess/src/model/DisableScalingGroupRequest.cc
Executable file → Normal file
0
ess/src/model/DisableScalingGroupResult.cc
Executable file → Normal file
0
ess/src/model/DisableScalingGroupResult.cc
Executable file → Normal file
0
ess/src/model/EnableAlarmRequest.cc
Executable file → Normal file
0
ess/src/model/EnableAlarmRequest.cc
Executable file → Normal file
0
ess/src/model/EnableAlarmResult.cc
Executable file → Normal file
0
ess/src/model/EnableAlarmResult.cc
Executable file → Normal file
0
ess/src/model/EnableScalingGroupRequest.cc
Executable file → Normal file
0
ess/src/model/EnableScalingGroupRequest.cc
Executable file → Normal file
0
ess/src/model/EnableScalingGroupResult.cc
Executable file → Normal file
0
ess/src/model/EnableScalingGroupResult.cc
Executable file → Normal file
43
ess/src/model/EnterStandbyRequest.cc
Executable file → Normal file
43
ess/src/model/EnterStandbyRequest.cc
Executable file → Normal file
@@ -27,15 +27,15 @@ EnterStandbyRequest::EnterStandbyRequest() :
|
||||
EnterStandbyRequest::~EnterStandbyRequest()
|
||||
{}
|
||||
|
||||
std::string EnterStandbyRequest::getResourceOwnerAccount()const
|
||||
std::string EnterStandbyRequest::getClientToken()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
void EnterStandbyRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string EnterStandbyRequest::getScalingGroupId()const
|
||||
@@ -49,17 +49,6 @@ void EnterStandbyRequest::setScalingGroupId(const std::string& 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_;
|
||||
@@ -71,6 +60,28 @@ void EnterStandbyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string EnterStandbyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long EnterStandbyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnterStandbyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> EnterStandbyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
0
ess/src/model/EnterStandbyResult.cc
Executable file → Normal file
0
ess/src/model/EnterStandbyResult.cc
Executable file → Normal file
0
ess/src/model/ExecuteScalingRuleRequest.cc
Executable file → Normal file
0
ess/src/model/ExecuteScalingRuleRequest.cc
Executable file → Normal file
0
ess/src/model/ExecuteScalingRuleResult.cc
Executable file → Normal file
0
ess/src/model/ExecuteScalingRuleResult.cc
Executable file → Normal file
43
ess/src/model/ExitStandbyRequest.cc
Executable file → Normal file
43
ess/src/model/ExitStandbyRequest.cc
Executable file → Normal file
@@ -27,15 +27,15 @@ ExitStandbyRequest::ExitStandbyRequest() :
|
||||
ExitStandbyRequest::~ExitStandbyRequest()
|
||||
{}
|
||||
|
||||
std::string ExitStandbyRequest::getResourceOwnerAccount()const
|
||||
std::string ExitStandbyRequest::getClientToken()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
void ExitStandbyRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ExitStandbyRequest::getScalingGroupId()const
|
||||
@@ -49,17 +49,6 @@ void ExitStandbyRequest::setScalingGroupId(const std::string& 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_;
|
||||
@@ -71,6 +60,28 @@ void ExitStandbyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ExitStandbyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ExitStandbyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ExitStandbyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> ExitStandbyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
0
ess/src/model/ExitStandbyResult.cc
Executable file → Normal file
0
ess/src/model/ExitStandbyResult.cc
Executable file → Normal file
11
ess/src/model/ModifyAlarmRequest.cc
Executable file → Normal file
11
ess/src/model/ModifyAlarmRequest.cc
Executable file → Normal file
@@ -84,6 +84,17 @@ void ModifyAlarmRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyAlarmRequest::getEffective()const
|
||||
{
|
||||
return effective_;
|
||||
}
|
||||
|
||||
void ModifyAlarmRequest::setEffective(const std::string& effective)
|
||||
{
|
||||
effective_ = effective;
|
||||
setParameter("Effective", effective);
|
||||
}
|
||||
|
||||
std::string ModifyAlarmRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
0
ess/src/model/ModifyAlarmResult.cc
Executable file → Normal file
0
ess/src/model/ModifyAlarmResult.cc
Executable file → Normal file
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ModifyAlertConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Ess::Model::ModifyAlertConfigRequest;
|
||||
|
||||
ModifyAlertConfigRequest::ModifyAlertConfigRequest() :
|
||||
RpcServiceRequest("ess", "2014-08-28", "ModifyAlertConfig")
|
||||
{}
|
||||
|
||||
ModifyAlertConfigRequest::~ModifyAlertConfigRequest()
|
||||
{}
|
||||
|
||||
int ModifyAlertConfigRequest::getRejectConfig()const
|
||||
{
|
||||
return rejectConfig_;
|
||||
}
|
||||
|
||||
void ModifyAlertConfigRequest::setRejectConfig(int rejectConfig)
|
||||
{
|
||||
rejectConfig_ = rejectConfig;
|
||||
setCoreParameter("RejectConfig", std::to_string(rejectConfig));
|
||||
}
|
||||
|
||||
std::string ModifyAlertConfigRequest::getScalingGroupId()const
|
||||
{
|
||||
return scalingGroupId_;
|
||||
}
|
||||
|
||||
void ModifyAlertConfigRequest::setScalingGroupId(const std::string& scalingGroupId)
|
||||
{
|
||||
scalingGroupId_ = scalingGroupId;
|
||||
setCoreParameter("ScalingGroupId", scalingGroupId);
|
||||
}
|
||||
|
||||
int ModifyAlertConfigRequest::getFailConfig()const
|
||||
{
|
||||
return failConfig_;
|
||||
}
|
||||
|
||||
void ModifyAlertConfigRequest::setFailConfig(int failConfig)
|
||||
{
|
||||
failConfig_ = failConfig;
|
||||
setCoreParameter("FailConfig", std::to_string(failConfig));
|
||||
}
|
||||
|
||||
std::string ModifyAlertConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyAlertConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyAlertConfigRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyAlertConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyAlertConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyAlertConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int ModifyAlertConfigRequest::getSuccessConfig()const
|
||||
{
|
||||
return successConfig_;
|
||||
}
|
||||
|
||||
void ModifyAlertConfigRequest::setSuccessConfig(int successConfig)
|
||||
{
|
||||
successConfig_ = successConfig;
|
||||
setCoreParameter("SuccessConfig", std::to_string(successConfig));
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/ModifyAlertConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ess;
|
||||
using namespace AlibabaCloud::Ess::Model;
|
||||
|
||||
ModifyAlertConfigResult::ModifyAlertConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyAlertConfigResult::ModifyAlertConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyAlertConfigResult::~ModifyAlertConfigResult()
|
||||
{}
|
||||
|
||||
void ModifyAlertConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user