GetResourcePackagePriceRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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/bssopenapi/model/GetResourcePackagePriceRequest.h>
  17. using AlibabaCloud::BssOpenApi::Model::GetResourcePackagePriceRequest;
  18. GetResourcePackagePriceRequest::GetResourcePackagePriceRequest() :
  19. RpcServiceRequest("bssopenapi", "2017-12-14", "GetResourcePackagePrice")
  20. {}
  21. GetResourcePackagePriceRequest::~GetResourcePackagePriceRequest()
  22. {}
  23. std::string GetResourcePackagePriceRequest::getProductCode()const
  24. {
  25. return productCode_;
  26. }
  27. void GetResourcePackagePriceRequest::setProductCode(const std::string& productCode)
  28. {
  29. productCode_ = productCode;
  30. setCoreParameter("ProductCode", productCode);
  31. }
  32. std::string GetResourcePackagePriceRequest::getSpecification()const
  33. {
  34. return specification_;
  35. }
  36. void GetResourcePackagePriceRequest::setSpecification(const std::string& specification)
  37. {
  38. specification_ = specification;
  39. setCoreParameter("Specification", specification);
  40. }
  41. long GetResourcePackagePriceRequest::getOwnerId()const
  42. {
  43. return ownerId_;
  44. }
  45. void GetResourcePackagePriceRequest::setOwnerId(long ownerId)
  46. {
  47. ownerId_ = ownerId;
  48. setCoreParameter("OwnerId", std::to_string(ownerId));
  49. }
  50. std::string GetResourcePackagePriceRequest::getEffectiveDate()const
  51. {
  52. return effectiveDate_;
  53. }
  54. void GetResourcePackagePriceRequest::setEffectiveDate(const std::string& effectiveDate)
  55. {
  56. effectiveDate_ = effectiveDate;
  57. setCoreParameter("EffectiveDate", effectiveDate);
  58. }
  59. int GetResourcePackagePriceRequest::getDuration()const
  60. {
  61. return duration_;
  62. }
  63. void GetResourcePackagePriceRequest::setDuration(int duration)
  64. {
  65. duration_ = duration;
  66. setCoreParameter("Duration", std::to_string(duration));
  67. }
  68. std::string GetResourcePackagePriceRequest::getInstanceId()const
  69. {
  70. return instanceId_;
  71. }
  72. void GetResourcePackagePriceRequest::setInstanceId(const std::string& instanceId)
  73. {
  74. instanceId_ = instanceId;
  75. setCoreParameter("InstanceId", instanceId);
  76. }
  77. std::string GetResourcePackagePriceRequest::getPackageType()const
  78. {
  79. return packageType_;
  80. }
  81. void GetResourcePackagePriceRequest::setPackageType(const std::string& packageType)
  82. {
  83. packageType_ = packageType;
  84. setCoreParameter("PackageType", packageType);
  85. }
  86. std::string GetResourcePackagePriceRequest::getPricingCycle()const
  87. {
  88. return pricingCycle_;
  89. }
  90. void GetResourcePackagePriceRequest::setPricingCycle(const std::string& pricingCycle)
  91. {
  92. pricingCycle_ = pricingCycle;
  93. setCoreParameter("PricingCycle", pricingCycle);
  94. }
  95. std::string GetResourcePackagePriceRequest::getOrderType()const
  96. {
  97. return orderType_;
  98. }
  99. void GetResourcePackagePriceRequest::setOrderType(const std::string& orderType)
  100. {
  101. orderType_ = orderType;
  102. setCoreParameter("OrderType", orderType);
  103. }