CreateDedicatedHostGroupRequest.cc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/rds/model/CreateDedicatedHostGroupRequest.h>
  17. using AlibabaCloud::Rds::Model::CreateDedicatedHostGroupRequest;
  18. CreateDedicatedHostGroupRequest::CreateDedicatedHostGroupRequest() :
  19. RpcServiceRequest("rds", "2014-08-15", "CreateDedicatedHostGroup")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateDedicatedHostGroupRequest::~CreateDedicatedHostGroupRequest()
  24. {}
  25. long CreateDedicatedHostGroupRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void CreateDedicatedHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. int CreateDedicatedHostGroupRequest::getCpuAllocationRatio()const
  35. {
  36. return cpuAllocationRatio_;
  37. }
  38. void CreateDedicatedHostGroupRequest::setCpuAllocationRatio(int cpuAllocationRatio)
  39. {
  40. cpuAllocationRatio_ = cpuAllocationRatio;
  41. setParameter("CpuAllocationRatio", std::to_string(cpuAllocationRatio));
  42. }
  43. std::string CreateDedicatedHostGroupRequest::getClientToken()const
  44. {
  45. return clientToken_;
  46. }
  47. void CreateDedicatedHostGroupRequest::setClientToken(const std::string& clientToken)
  48. {
  49. clientToken_ = clientToken;
  50. setParameter("ClientToken", clientToken);
  51. }
  52. std::string CreateDedicatedHostGroupRequest::getAccessKeyId()const
  53. {
  54. return accessKeyId_;
  55. }
  56. void CreateDedicatedHostGroupRequest::setAccessKeyId(const std::string& accessKeyId)
  57. {
  58. accessKeyId_ = accessKeyId;
  59. setParameter("AccessKeyId", accessKeyId);
  60. }
  61. std::string CreateDedicatedHostGroupRequest::getRegionId()const
  62. {
  63. return regionId_;
  64. }
  65. void CreateDedicatedHostGroupRequest::setRegionId(const std::string& regionId)
  66. {
  67. regionId_ = regionId;
  68. setParameter("RegionId", regionId);
  69. }
  70. std::string CreateDedicatedHostGroupRequest::getEngine()const
  71. {
  72. return engine_;
  73. }
  74. void CreateDedicatedHostGroupRequest::setEngine(const std::string& engine)
  75. {
  76. engine_ = engine;
  77. setParameter("Engine", engine);
  78. }
  79. std::string CreateDedicatedHostGroupRequest::getResourceOwnerAccount()const
  80. {
  81. return resourceOwnerAccount_;
  82. }
  83. void CreateDedicatedHostGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  84. {
  85. resourceOwnerAccount_ = resourceOwnerAccount;
  86. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  87. }
  88. int CreateDedicatedHostGroupRequest::getDiskAllocationRatio()const
  89. {
  90. return diskAllocationRatio_;
  91. }
  92. void CreateDedicatedHostGroupRequest::setDiskAllocationRatio(int diskAllocationRatio)
  93. {
  94. diskAllocationRatio_ = diskAllocationRatio;
  95. setParameter("DiskAllocationRatio", std::to_string(diskAllocationRatio));
  96. }
  97. int CreateDedicatedHostGroupRequest::getOpenPermission()const
  98. {
  99. return openPermission_;
  100. }
  101. void CreateDedicatedHostGroupRequest::setOpenPermission(int openPermission)
  102. {
  103. openPermission_ = openPermission;
  104. setParameter("OpenPermission", std::to_string(openPermission));
  105. }
  106. int CreateDedicatedHostGroupRequest::getMemAllocationRatio()const
  107. {
  108. return memAllocationRatio_;
  109. }
  110. void CreateDedicatedHostGroupRequest::setMemAllocationRatio(int memAllocationRatio)
  111. {
  112. memAllocationRatio_ = memAllocationRatio;
  113. setParameter("MemAllocationRatio", std::to_string(memAllocationRatio));
  114. }
  115. long CreateDedicatedHostGroupRequest::getOwnerId()const
  116. {
  117. return ownerId_;
  118. }
  119. void CreateDedicatedHostGroupRequest::setOwnerId(long ownerId)
  120. {
  121. ownerId_ = ownerId;
  122. setParameter("OwnerId", std::to_string(ownerId));
  123. }
  124. std::string CreateDedicatedHostGroupRequest::getHostReplacePolicy()const
  125. {
  126. return hostReplacePolicy_;
  127. }
  128. void CreateDedicatedHostGroupRequest::setHostReplacePolicy(const std::string& hostReplacePolicy)
  129. {
  130. hostReplacePolicy_ = hostReplacePolicy;
  131. setParameter("HostReplacePolicy", hostReplacePolicy);
  132. }
  133. std::string CreateDedicatedHostGroupRequest::getAllocationPolicy()const
  134. {
  135. return allocationPolicy_;
  136. }
  137. void CreateDedicatedHostGroupRequest::setAllocationPolicy(const std::string& allocationPolicy)
  138. {
  139. allocationPolicy_ = allocationPolicy;
  140. setParameter("AllocationPolicy", allocationPolicy);
  141. }
  142. std::string CreateDedicatedHostGroupRequest::getVPCId()const
  143. {
  144. return vPCId_;
  145. }
  146. void CreateDedicatedHostGroupRequest::setVPCId(const std::string& vPCId)
  147. {
  148. vPCId_ = vPCId;
  149. setParameter("VPCId", vPCId);
  150. }