106 lines
2.8 KiB
C++
Executable File
106 lines
2.8 KiB
C++
Executable File
/*
|
|
* 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/DetachInstancesRequest.h>
|
|
|
|
using AlibabaCloud::Ess::Model::DetachInstancesRequest;
|
|
|
|
DetachInstancesRequest::DetachInstancesRequest() :
|
|
RpcServiceRequest("ess", "2014-08-28", "DetachInstances")
|
|
{}
|
|
|
|
DetachInstancesRequest::~DetachInstancesRequest()
|
|
{}
|
|
|
|
long DetachInstancesRequest::getResourceOwnerId()const
|
|
{
|
|
return resourceOwnerId_;
|
|
}
|
|
|
|
void DetachInstancesRequest::setResourceOwnerId(long resourceOwnerId)
|
|
{
|
|
resourceOwnerId_ = resourceOwnerId;
|
|
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
}
|
|
|
|
std::vector<std::string> DetachInstancesRequest::getInstanceId()const
|
|
{
|
|
return instanceId_;
|
|
}
|
|
|
|
void DetachInstancesRequest::setInstanceId(const std::vector<std::string>& instanceId)
|
|
{
|
|
instanceId_ = instanceId;
|
|
for(int i = 0; i!= instanceId.size(); i++)
|
|
setCoreParameter("InstanceId."+ std::to_string(i), instanceId.at(i));
|
|
}
|
|
|
|
std::string DetachInstancesRequest::getResourceOwnerAccount()const
|
|
{
|
|
return resourceOwnerAccount_;
|
|
}
|
|
|
|
void DetachInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
{
|
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
}
|
|
|
|
std::string DetachInstancesRequest::getScalingGroupId()const
|
|
{
|
|
return scalingGroupId_;
|
|
}
|
|
|
|
void DetachInstancesRequest::setScalingGroupId(const std::string& scalingGroupId)
|
|
{
|
|
scalingGroupId_ = scalingGroupId;
|
|
setCoreParameter("ScalingGroupId", scalingGroupId);
|
|
}
|
|
|
|
std::string DetachInstancesRequest::getOwnerAccount()const
|
|
{
|
|
return ownerAccount_;
|
|
}
|
|
|
|
void DetachInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
|
|
{
|
|
ownerAccount_ = ownerAccount;
|
|
setCoreParameter("OwnerAccount", ownerAccount);
|
|
}
|
|
|
|
long DetachInstancesRequest::getOwnerId()const
|
|
{
|
|
return ownerId_;
|
|
}
|
|
|
|
void DetachInstancesRequest::setOwnerId(long ownerId)
|
|
{
|
|
ownerId_ = ownerId;
|
|
setCoreParameter("OwnerId", std::to_string(ownerId));
|
|
}
|
|
|
|
std::string DetachInstancesRequest::getAccessKeyId()const
|
|
{
|
|
return accessKeyId_;
|
|
}
|
|
|
|
void DetachInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
{
|
|
accessKeyId_ = accessKeyId;
|
|
setCoreParameter("AccessKeyId", accessKeyId);
|
|
}
|
|
|