ModifyPrepayInstanceSpecRequest.cc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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/ecs/model/ModifyPrepayInstanceSpecRequest.h>
  17. using AlibabaCloud::Ecs::Model::ModifyPrepayInstanceSpecRequest;
  18. ModifyPrepayInstanceSpecRequest::ModifyPrepayInstanceSpecRequest() :
  19. RpcServiceRequest("ecs", "2014-05-26", "ModifyPrepayInstanceSpec")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyPrepayInstanceSpecRequest::~ModifyPrepayInstanceSpecRequest()
  24. {}
  25. long ModifyPrepayInstanceSpecRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ModifyPrepayInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string ModifyPrepayInstanceSpecRequest::getClientToken()const
  35. {
  36. return clientToken_;
  37. }
  38. void ModifyPrepayInstanceSpecRequest::setClientToken(const std::string& clientToken)
  39. {
  40. clientToken_ = clientToken;
  41. setParameter("ClientToken", clientToken);
  42. }
  43. std::string ModifyPrepayInstanceSpecRequest::getOperatorType()const
  44. {
  45. return operatorType_;
  46. }
  47. void ModifyPrepayInstanceSpecRequest::setOperatorType(const std::string& operatorType)
  48. {
  49. operatorType_ = operatorType;
  50. setParameter("OperatorType", operatorType);
  51. }
  52. std::string ModifyPrepayInstanceSpecRequest::getSystemDiskCategory()const
  53. {
  54. return systemDiskCategory_;
  55. }
  56. void ModifyPrepayInstanceSpecRequest::setSystemDiskCategory(const std::string& systemDiskCategory)
  57. {
  58. systemDiskCategory_ = systemDiskCategory;
  59. setParameter("SystemDiskCategory", systemDiskCategory);
  60. }
  61. std::string ModifyPrepayInstanceSpecRequest::getRebootTime()const
  62. {
  63. return rebootTime_;
  64. }
  65. void ModifyPrepayInstanceSpecRequest::setRebootTime(const std::string& rebootTime)
  66. {
  67. rebootTime_ = rebootTime;
  68. setParameter("RebootTime", rebootTime);
  69. }
  70. std::string ModifyPrepayInstanceSpecRequest::getRegionId()const
  71. {
  72. return regionId_;
  73. }
  74. void ModifyPrepayInstanceSpecRequest::setRegionId(const std::string& regionId)
  75. {
  76. regionId_ = regionId;
  77. setParameter("RegionId", regionId);
  78. }
  79. bool ModifyPrepayInstanceSpecRequest::getMigrateAcrossZone()const
  80. {
  81. return migrateAcrossZone_;
  82. }
  83. void ModifyPrepayInstanceSpecRequest::setMigrateAcrossZone(bool migrateAcrossZone)
  84. {
  85. migrateAcrossZone_ = migrateAcrossZone;
  86. setParameter("MigrateAcrossZone", migrateAcrossZone ? "true" : "false");
  87. }
  88. std::string ModifyPrepayInstanceSpecRequest::getInstanceType()const
  89. {
  90. return instanceType_;
  91. }
  92. void ModifyPrepayInstanceSpecRequest::setInstanceType(const std::string& instanceType)
  93. {
  94. instanceType_ = instanceType;
  95. setParameter("InstanceType", instanceType);
  96. }
  97. bool ModifyPrepayInstanceSpecRequest::getAutoPay()const
  98. {
  99. return autoPay_;
  100. }
  101. void ModifyPrepayInstanceSpecRequest::setAutoPay(bool autoPay)
  102. {
  103. autoPay_ = autoPay;
  104. setParameter("AutoPay", autoPay ? "true" : "false");
  105. }
  106. bool ModifyPrepayInstanceSpecRequest::getRebootWhenFinished()const
  107. {
  108. return rebootWhenFinished_;
  109. }
  110. void ModifyPrepayInstanceSpecRequest::setRebootWhenFinished(bool rebootWhenFinished)
  111. {
  112. rebootWhenFinished_ = rebootWhenFinished;
  113. setParameter("RebootWhenFinished", rebootWhenFinished ? "true" : "false");
  114. }
  115. std::string ModifyPrepayInstanceSpecRequest::getResourceOwnerAccount()const
  116. {
  117. return resourceOwnerAccount_;
  118. }
  119. void ModifyPrepayInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  120. {
  121. resourceOwnerAccount_ = resourceOwnerAccount;
  122. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  123. }
  124. std::string ModifyPrepayInstanceSpecRequest::getOwnerAccount()const
  125. {
  126. return ownerAccount_;
  127. }
  128. void ModifyPrepayInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount)
  129. {
  130. ownerAccount_ = ownerAccount;
  131. setParameter("OwnerAccount", ownerAccount);
  132. }
  133. std::string ModifyPrepayInstanceSpecRequest::getEndTime()const
  134. {
  135. return endTime_;
  136. }
  137. void ModifyPrepayInstanceSpecRequest::setEndTime(const std::string& endTime)
  138. {
  139. endTime_ = endTime;
  140. setParameter("EndTime", endTime);
  141. }
  142. long ModifyPrepayInstanceSpecRequest::getOwnerId()const
  143. {
  144. return ownerId_;
  145. }
  146. void ModifyPrepayInstanceSpecRequest::setOwnerId(long ownerId)
  147. {
  148. ownerId_ = ownerId;
  149. setParameter("OwnerId", std::to_string(ownerId));
  150. }
  151. std::string ModifyPrepayInstanceSpecRequest::getInstanceId()const
  152. {
  153. return instanceId_;
  154. }
  155. void ModifyPrepayInstanceSpecRequest::setInstanceId(const std::string& instanceId)
  156. {
  157. instanceId_ = instanceId;
  158. setParameter("InstanceId", instanceId);
  159. }