127 lines
4.5 KiB
C++
127 lines
4.5 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/vpc/model/CreatePhysicalConnectionOccupancyOrderRequest.h>
|
|
|
|
using AlibabaCloud::Vpc::Model::CreatePhysicalConnectionOccupancyOrderRequest;
|
|
|
|
CreatePhysicalConnectionOccupancyOrderRequest::CreatePhysicalConnectionOccupancyOrderRequest()
|
|
: RpcServiceRequest("vpc", "2016-04-28", "CreatePhysicalConnectionOccupancyOrder") {
|
|
setMethod(HttpRequest::Method::Post);
|
|
}
|
|
|
|
CreatePhysicalConnectionOccupancyOrderRequest::~CreatePhysicalConnectionOccupancyOrderRequest() {}
|
|
|
|
long CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerId() const {
|
|
return resourceOwnerId_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerId(long resourceOwnerId) {
|
|
resourceOwnerId_ = resourceOwnerId;
|
|
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
|
}
|
|
|
|
std::string CreatePhysicalConnectionOccupancyOrderRequest::getClientToken() const {
|
|
return clientToken_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setClientToken(const std::string &clientToken) {
|
|
clientToken_ = clientToken;
|
|
setParameter(std::string("ClientToken"), clientToken);
|
|
}
|
|
|
|
std::string CreatePhysicalConnectionOccupancyOrderRequest::getRegionId() const {
|
|
return regionId_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setRegionId(const std::string ®ionId) {
|
|
regionId_ = regionId;
|
|
setParameter(std::string("RegionId"), regionId);
|
|
}
|
|
|
|
std::string CreatePhysicalConnectionOccupancyOrderRequest::getInstanceChargeType() const {
|
|
return instanceChargeType_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setInstanceChargeType(const std::string &instanceChargeType) {
|
|
instanceChargeType_ = instanceChargeType;
|
|
setParameter(std::string("InstanceChargeType"), instanceChargeType);
|
|
}
|
|
|
|
int CreatePhysicalConnectionOccupancyOrderRequest::getPeriod() const {
|
|
return period_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setPeriod(int period) {
|
|
period_ = period;
|
|
setParameter(std::string("Period"), std::to_string(period));
|
|
}
|
|
|
|
bool CreatePhysicalConnectionOccupancyOrderRequest::getAutoPay() const {
|
|
return autoPay_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setAutoPay(bool autoPay) {
|
|
autoPay_ = autoPay;
|
|
setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
|
|
}
|
|
|
|
std::string CreatePhysicalConnectionOccupancyOrderRequest::getResourceOwnerAccount() const {
|
|
return resourceOwnerAccount_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
|
}
|
|
|
|
std::string CreatePhysicalConnectionOccupancyOrderRequest::getOwnerAccount() const {
|
|
return ownerAccount_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerAccount(const std::string &ownerAccount) {
|
|
ownerAccount_ = ownerAccount;
|
|
setParameter(std::string("OwnerAccount"), ownerAccount);
|
|
}
|
|
|
|
long CreatePhysicalConnectionOccupancyOrderRequest::getOwnerId() const {
|
|
return ownerId_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setOwnerId(long ownerId) {
|
|
ownerId_ = ownerId;
|
|
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
|
}
|
|
|
|
std::string CreatePhysicalConnectionOccupancyOrderRequest::getPhysicalConnectionId() const {
|
|
return physicalConnectionId_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) {
|
|
physicalConnectionId_ = physicalConnectionId;
|
|
setParameter(std::string("PhysicalConnectionId"), physicalConnectionId);
|
|
}
|
|
|
|
std::string CreatePhysicalConnectionOccupancyOrderRequest::getPricingCycle() const {
|
|
return pricingCycle_;
|
|
}
|
|
|
|
void CreatePhysicalConnectionOccupancyOrderRequest::setPricingCycle(const std::string &pricingCycle) {
|
|
pricingCycle_ = pricingCycle;
|
|
setParameter(std::string("PricingCycle"), pricingCycle);
|
|
}
|
|
|