TransformToPrePaidRequest.cc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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/dds/model/TransformToPrePaidRequest.h>
  17. using AlibabaCloud::Dds::Model::TransformToPrePaidRequest;
  18. TransformToPrePaidRequest::TransformToPrePaidRequest()
  19. : RpcServiceRequest("dds", "2015-12-01", "TransformToPrePaid") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. TransformToPrePaidRequest::~TransformToPrePaidRequest() {}
  23. long TransformToPrePaidRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void TransformToPrePaidRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string TransformToPrePaidRequest::getCouponNo() const {
  31. return couponNo_;
  32. }
  33. void TransformToPrePaidRequest::setCouponNo(const std::string &couponNo) {
  34. couponNo_ = couponNo;
  35. setParameter(std::string("CouponNo"), couponNo);
  36. }
  37. std::string TransformToPrePaidRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void TransformToPrePaidRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::string TransformToPrePaidRequest::getSecurityToken() const {
  45. return securityToken_;
  46. }
  47. void TransformToPrePaidRequest::setSecurityToken(const std::string &securityToken) {
  48. securityToken_ = securityToken;
  49. setParameter(std::string("SecurityToken"), securityToken);
  50. }
  51. std::string TransformToPrePaidRequest::getBusinessInfo() const {
  52. return businessInfo_;
  53. }
  54. void TransformToPrePaidRequest::setBusinessInfo(const std::string &businessInfo) {
  55. businessInfo_ = businessInfo;
  56. setParameter(std::string("BusinessInfo"), businessInfo);
  57. }
  58. long TransformToPrePaidRequest::getPeriod() const {
  59. return period_;
  60. }
  61. void TransformToPrePaidRequest::setPeriod(long period) {
  62. period_ = period;
  63. setParameter(std::string("Period"), std::to_string(period));
  64. }
  65. bool TransformToPrePaidRequest::getAutoPay() const {
  66. return autoPay_;
  67. }
  68. void TransformToPrePaidRequest::setAutoPay(bool autoPay) {
  69. autoPay_ = autoPay;
  70. setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
  71. }
  72. std::string TransformToPrePaidRequest::getFromApp() const {
  73. return fromApp_;
  74. }
  75. void TransformToPrePaidRequest::setFromApp(const std::string &fromApp) {
  76. fromApp_ = fromApp;
  77. setParameter(std::string("FromApp"), fromApp);
  78. }
  79. std::string TransformToPrePaidRequest::getResourceOwnerAccount() const {
  80. return resourceOwnerAccount_;
  81. }
  82. void TransformToPrePaidRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  83. resourceOwnerAccount_ = resourceOwnerAccount;
  84. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  85. }
  86. std::string TransformToPrePaidRequest::getOwnerAccount() const {
  87. return ownerAccount_;
  88. }
  89. void TransformToPrePaidRequest::setOwnerAccount(const std::string &ownerAccount) {
  90. ownerAccount_ = ownerAccount;
  91. setParameter(std::string("OwnerAccount"), ownerAccount);
  92. }
  93. long TransformToPrePaidRequest::getOwnerId() const {
  94. return ownerId_;
  95. }
  96. void TransformToPrePaidRequest::setOwnerId(long ownerId) {
  97. ownerId_ = ownerId;
  98. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  99. }
  100. std::string TransformToPrePaidRequest::getInstanceId() const {
  101. return instanceId_;
  102. }
  103. void TransformToPrePaidRequest::setInstanceId(const std::string &instanceId) {
  104. instanceId_ = instanceId;
  105. setParameter(std::string("InstanceId"), instanceId);
  106. }
  107. std::string TransformToPrePaidRequest::getAutoRenew() const {
  108. return autoRenew_;
  109. }
  110. void TransformToPrePaidRequest::setAutoRenew(const std::string &autoRenew) {
  111. autoRenew_ = autoRenew;
  112. setParameter(std::string("AutoRenew"), autoRenew);
  113. }
  114. std::string TransformToPrePaidRequest::getChargeType() const {
  115. return chargeType_;
  116. }
  117. void TransformToPrePaidRequest::setChargeType(const std::string &chargeType) {
  118. chargeType_ = chargeType;
  119. setParameter(std::string("ChargeType"), chargeType);
  120. }