Files
aliyun-openapi-cpp-sdk/privatelink/src/model/UpdateVpcEndpointServiceAttributeRequest.cc
2021-01-21 11:44:22 +00:00

107 lines
3.1 KiB
C++

/*
* 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/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h>
using AlibabaCloud::Privatelink::Model::UpdateVpcEndpointServiceAttributeRequest;
UpdateVpcEndpointServiceAttributeRequest::UpdateVpcEndpointServiceAttributeRequest() :
RpcServiceRequest("privatelink", "2020-04-15", "UpdateVpcEndpointServiceAttribute")
{
setMethod(HttpRequest::Method::Post);
}
UpdateVpcEndpointServiceAttributeRequest::~UpdateVpcEndpointServiceAttributeRequest()
{}
bool UpdateVpcEndpointServiceAttributeRequest::getAutoAcceptEnabled()const
{
return autoAcceptEnabled_;
}
void UpdateVpcEndpointServiceAttributeRequest::setAutoAcceptEnabled(bool autoAcceptEnabled)
{
autoAcceptEnabled_ = autoAcceptEnabled;
setParameter("AutoAcceptEnabled", autoAcceptEnabled ? "true" : "false");
}
std::string UpdateVpcEndpointServiceAttributeRequest::getClientToken()const
{
return clientToken_;
}
void UpdateVpcEndpointServiceAttributeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
int UpdateVpcEndpointServiceAttributeRequest::getConnectBandwidth()const
{
return connectBandwidth_;
}
void UpdateVpcEndpointServiceAttributeRequest::setConnectBandwidth(int connectBandwidth)
{
connectBandwidth_ = connectBandwidth;
setParameter("ConnectBandwidth", std::to_string(connectBandwidth));
}
std::string UpdateVpcEndpointServiceAttributeRequest::getRegionId()const
{
return regionId_;
}
void UpdateVpcEndpointServiceAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool UpdateVpcEndpointServiceAttributeRequest::getDryRun()const
{
return dryRun_;
}
void UpdateVpcEndpointServiceAttributeRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string UpdateVpcEndpointServiceAttributeRequest::getServiceDescription()const
{
return serviceDescription_;
}
void UpdateVpcEndpointServiceAttributeRequest::setServiceDescription(const std::string& serviceDescription)
{
serviceDescription_ = serviceDescription;
setParameter("ServiceDescription", serviceDescription);
}
std::string UpdateVpcEndpointServiceAttributeRequest::getServiceId()const
{
return serviceId_;
}
void UpdateVpcEndpointServiceAttributeRequest::setServiceId(const std::string& serviceId)
{
serviceId_ = serviceId;
setParameter("ServiceId", serviceId);
}