CreateSavingsPlansInstanceRequest.cc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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/CreateSavingsPlansInstanceRequest.h>
  17. using AlibabaCloud::BssOpenApi::Model::CreateSavingsPlansInstanceRequest;
  18. CreateSavingsPlansInstanceRequest::CreateSavingsPlansInstanceRequest()
  19. : RpcServiceRequest("bssopenapi", "2017-12-14", "CreateSavingsPlansInstance") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateSavingsPlansInstanceRequest::~CreateSavingsPlansInstanceRequest() {}
  23. std::string CreateSavingsPlansInstanceRequest::getSpecification() const {
  24. return specification_;
  25. }
  26. void CreateSavingsPlansInstanceRequest::setSpecification(const std::string &specification) {
  27. specification_ = specification;
  28. setParameter(std::string("Specification"), specification);
  29. }
  30. std::string CreateSavingsPlansInstanceRequest::getPoolValue() const {
  31. return poolValue_;
  32. }
  33. void CreateSavingsPlansInstanceRequest::setPoolValue(const std::string &poolValue) {
  34. poolValue_ = poolValue;
  35. setParameter(std::string("PoolValue"), poolValue);
  36. }
  37. std::string CreateSavingsPlansInstanceRequest::getCommodityCode() const {
  38. return commodityCode_;
  39. }
  40. void CreateSavingsPlansInstanceRequest::setCommodityCode(const std::string &commodityCode) {
  41. commodityCode_ = commodityCode;
  42. setParameter(std::string("CommodityCode"), commodityCode);
  43. }
  44. std::string CreateSavingsPlansInstanceRequest::getType() const {
  45. return type_;
  46. }
  47. void CreateSavingsPlansInstanceRequest::setType(const std::string &type) {
  48. type_ = type;
  49. setParameter(std::string("Type"), type);
  50. }
  51. std::string CreateSavingsPlansInstanceRequest::getEffectiveDate() const {
  52. return effectiveDate_;
  53. }
  54. void CreateSavingsPlansInstanceRequest::setEffectiveDate(const std::string &effectiveDate) {
  55. effectiveDate_ = effectiveDate;
  56. setParameter(std::string("EffectiveDate"), effectiveDate);
  57. }
  58. std::string CreateSavingsPlansInstanceRequest::getDuration() const {
  59. return duration_;
  60. }
  61. void CreateSavingsPlansInstanceRequest::setDuration(const std::string &duration) {
  62. duration_ = duration;
  63. setParameter(std::string("Duration"), duration);
  64. }
  65. std::string CreateSavingsPlansInstanceRequest::getSpecType() const {
  66. return specType_;
  67. }
  68. void CreateSavingsPlansInstanceRequest::setSpecType(const std::string &specType) {
  69. specType_ = specType;
  70. setParameter(std::string("SpecType"), specType);
  71. }
  72. std::string CreateSavingsPlansInstanceRequest::getPayMode() const {
  73. return payMode_;
  74. }
  75. void CreateSavingsPlansInstanceRequest::setPayMode(const std::string &payMode) {
  76. payMode_ = payMode;
  77. setParameter(std::string("PayMode"), payMode);
  78. }
  79. std::string CreateSavingsPlansInstanceRequest::getRegion() const {
  80. return region_;
  81. }
  82. void CreateSavingsPlansInstanceRequest::setRegion(const std::string &region) {
  83. region_ = region;
  84. setParameter(std::string("Region"), region);
  85. }
  86. std::string CreateSavingsPlansInstanceRequest::getPricingCycle() const {
  87. return pricingCycle_;
  88. }
  89. void CreateSavingsPlansInstanceRequest::setPricingCycle(const std::string &pricingCycle) {
  90. pricingCycle_ = pricingCycle;
  91. setParameter(std::string("PricingCycle"), pricingCycle);
  92. }