| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- /*
- * 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/rds/model/CreateDedicatedHostGroupRequest.h>
- using AlibabaCloud::Rds::Model::CreateDedicatedHostGroupRequest;
- CreateDedicatedHostGroupRequest::CreateDedicatedHostGroupRequest() :
- RpcServiceRequest("rds", "2014-08-15", "CreateDedicatedHostGroup")
- {
- setMethod(HttpRequest::Method::Post);
- }
- CreateDedicatedHostGroupRequest::~CreateDedicatedHostGroupRequest()
- {}
- long CreateDedicatedHostGroupRequest::getResourceOwnerId()const
- {
- return resourceOwnerId_;
- }
- void CreateDedicatedHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
- {
- resourceOwnerId_ = resourceOwnerId;
- setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
- }
- int CreateDedicatedHostGroupRequest::getCpuAllocationRatio()const
- {
- return cpuAllocationRatio_;
- }
- void CreateDedicatedHostGroupRequest::setCpuAllocationRatio(int cpuAllocationRatio)
- {
- cpuAllocationRatio_ = cpuAllocationRatio;
- setParameter("CpuAllocationRatio", std::to_string(cpuAllocationRatio));
- }
- std::string CreateDedicatedHostGroupRequest::getClientToken()const
- {
- return clientToken_;
- }
- void CreateDedicatedHostGroupRequest::setClientToken(const std::string& clientToken)
- {
- clientToken_ = clientToken;
- setParameter("ClientToken", clientToken);
- }
- std::string CreateDedicatedHostGroupRequest::getAccessKeyId()const
- {
- return accessKeyId_;
- }
- void CreateDedicatedHostGroupRequest::setAccessKeyId(const std::string& accessKeyId)
- {
- accessKeyId_ = accessKeyId;
- setParameter("AccessKeyId", accessKeyId);
- }
- std::string CreateDedicatedHostGroupRequest::getRegionId()const
- {
- return regionId_;
- }
- void CreateDedicatedHostGroupRequest::setRegionId(const std::string& regionId)
- {
- regionId_ = regionId;
- setParameter("RegionId", regionId);
- }
- std::string CreateDedicatedHostGroupRequest::getEngine()const
- {
- return engine_;
- }
- void CreateDedicatedHostGroupRequest::setEngine(const std::string& engine)
- {
- engine_ = engine;
- setParameter("Engine", engine);
- }
- std::string CreateDedicatedHostGroupRequest::getResourceOwnerAccount()const
- {
- return resourceOwnerAccount_;
- }
- void CreateDedicatedHostGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
- {
- resourceOwnerAccount_ = resourceOwnerAccount;
- setParameter("ResourceOwnerAccount", resourceOwnerAccount);
- }
- int CreateDedicatedHostGroupRequest::getDiskAllocationRatio()const
- {
- return diskAllocationRatio_;
- }
- void CreateDedicatedHostGroupRequest::setDiskAllocationRatio(int diskAllocationRatio)
- {
- diskAllocationRatio_ = diskAllocationRatio;
- setParameter("DiskAllocationRatio", std::to_string(diskAllocationRatio));
- }
- int CreateDedicatedHostGroupRequest::getOpenPermission()const
- {
- return openPermission_;
- }
- void CreateDedicatedHostGroupRequest::setOpenPermission(int openPermission)
- {
- openPermission_ = openPermission;
- setParameter("OpenPermission", std::to_string(openPermission));
- }
- int CreateDedicatedHostGroupRequest::getMemAllocationRatio()const
- {
- return memAllocationRatio_;
- }
- void CreateDedicatedHostGroupRequest::setMemAllocationRatio(int memAllocationRatio)
- {
- memAllocationRatio_ = memAllocationRatio;
- setParameter("MemAllocationRatio", std::to_string(memAllocationRatio));
- }
- long CreateDedicatedHostGroupRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void CreateDedicatedHostGroupRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setParameter("OwnerId", std::to_string(ownerId));
- }
- std::string CreateDedicatedHostGroupRequest::getHostReplacePolicy()const
- {
- return hostReplacePolicy_;
- }
- void CreateDedicatedHostGroupRequest::setHostReplacePolicy(const std::string& hostReplacePolicy)
- {
- hostReplacePolicy_ = hostReplacePolicy;
- setParameter("HostReplacePolicy", hostReplacePolicy);
- }
- std::string CreateDedicatedHostGroupRequest::getAllocationPolicy()const
- {
- return allocationPolicy_;
- }
- void CreateDedicatedHostGroupRequest::setAllocationPolicy(const std::string& allocationPolicy)
- {
- allocationPolicy_ = allocationPolicy;
- setParameter("AllocationPolicy", allocationPolicy);
- }
- std::string CreateDedicatedHostGroupRequest::getVPCId()const
- {
- return vPCId_;
- }
- void CreateDedicatedHostGroupRequest::setVPCId(const std::string& vPCId)
- {
- vPCId_ = vPCId;
- setParameter("VPCId", vPCId);
- }
|