95 lines
2.6 KiB
C++
Executable File
95 lines
2.6 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/AttachLoadBalancersRequest.h>
|
|
|
|
using AlibabaCloud::Ess::Model::AttachLoadBalancersRequest;
|
|
|
|
AttachLoadBalancersRequest::AttachLoadBalancersRequest() :
|
|
RpcServiceRequest("ess", "2014-08-28", "AttachLoadBalancers")
|
|
{}
|
|
|
|
AttachLoadBalancersRequest::~AttachLoadBalancersRequest()
|
|
{}
|
|
|
|
std::vector<std::string> AttachLoadBalancersRequest::getLoadBalancer()const
|
|
{
|
|
return loadBalancer_;
|
|
}
|
|
|
|
void AttachLoadBalancersRequest::setLoadBalancer(const std::vector<std::string>& loadBalancer)
|
|
{
|
|
loadBalancer_ = loadBalancer;
|
|
for(int i = 0; i!= loadBalancer.size(); i++)
|
|
setParameter("LoadBalancer."+ std::to_string(i), loadBalancer.at(i));
|
|
}
|
|
|
|
std::string AttachLoadBalancersRequest::getResourceOwnerAccount()const
|
|
{
|
|
return resourceOwnerAccount_;
|
|
}
|
|
|
|
void AttachLoadBalancersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
{
|
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
}
|
|
|
|
std::string AttachLoadBalancersRequest::getScalingGroupId()const
|
|
{
|
|
return scalingGroupId_;
|
|
}
|
|
|
|
void AttachLoadBalancersRequest::setScalingGroupId(const std::string& scalingGroupId)
|
|
{
|
|
scalingGroupId_ = scalingGroupId;
|
|
setParameter("ScalingGroupId", scalingGroupId);
|
|
}
|
|
|
|
bool AttachLoadBalancersRequest::getForceAttach()const
|
|
{
|
|
return forceAttach_;
|
|
}
|
|
|
|
void AttachLoadBalancersRequest::setForceAttach(bool forceAttach)
|
|
{
|
|
forceAttach_ = forceAttach;
|
|
setParameter("ForceAttach", std::to_string(forceAttach));
|
|
}
|
|
|
|
long AttachLoadBalancersRequest::getOwnerId()const
|
|
{
|
|
return ownerId_;
|
|
}
|
|
|
|
void AttachLoadBalancersRequest::setOwnerId(long ownerId)
|
|
{
|
|
ownerId_ = ownerId;
|
|
setParameter("OwnerId", std::to_string(ownerId));
|
|
}
|
|
|
|
std::string AttachLoadBalancersRequest::getAccessKeyId()const
|
|
{
|
|
return accessKeyId_;
|
|
}
|
|
|
|
void AttachLoadBalancersRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
{
|
|
accessKeyId_ = accessKeyId;
|
|
setParameter("AccessKeyId", accessKeyId);
|
|
}
|
|
|