QuerySettlementBillRequest.cc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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/QuerySettlementBillRequest.h>
  17. using AlibabaCloud::BssOpenApi::Model::QuerySettlementBillRequest;
  18. QuerySettlementBillRequest::QuerySettlementBillRequest() :
  19. RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettlementBill")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. QuerySettlementBillRequest::~QuerySettlementBillRequest()
  24. {}
  25. std::string QuerySettlementBillRequest::getProductCode()const
  26. {
  27. return productCode_;
  28. }
  29. void QuerySettlementBillRequest::setProductCode(const std::string& productCode)
  30. {
  31. productCode_ = productCode;
  32. setParameter("ProductCode", productCode);
  33. }
  34. bool QuerySettlementBillRequest::getIsHideZeroCharge()const
  35. {
  36. return isHideZeroCharge_;
  37. }
  38. void QuerySettlementBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
  39. {
  40. isHideZeroCharge_ = isHideZeroCharge;
  41. setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
  42. }
  43. std::string QuerySettlementBillRequest::getSubscriptionType()const
  44. {
  45. return subscriptionType_;
  46. }
  47. void QuerySettlementBillRequest::setSubscriptionType(const std::string& subscriptionType)
  48. {
  49. subscriptionType_ = subscriptionType;
  50. setParameter("SubscriptionType", subscriptionType);
  51. }
  52. std::string QuerySettlementBillRequest::getEndTime()const
  53. {
  54. return endTime_;
  55. }
  56. void QuerySettlementBillRequest::setEndTime(const std::string& endTime)
  57. {
  58. endTime_ = endTime;
  59. setParameter("EndTime", endTime);
  60. }
  61. std::string QuerySettlementBillRequest::getBillingCycle()const
  62. {
  63. return billingCycle_;
  64. }
  65. void QuerySettlementBillRequest::setBillingCycle(const std::string& billingCycle)
  66. {
  67. billingCycle_ = billingCycle;
  68. setParameter("BillingCycle", billingCycle);
  69. }
  70. std::string QuerySettlementBillRequest::getStartTime()const
  71. {
  72. return startTime_;
  73. }
  74. void QuerySettlementBillRequest::setStartTime(const std::string& startTime)
  75. {
  76. startTime_ = startTime;
  77. setParameter("StartTime", startTime);
  78. }
  79. long QuerySettlementBillRequest::getOwnerId()const
  80. {
  81. return ownerId_;
  82. }
  83. void QuerySettlementBillRequest::setOwnerId(long ownerId)
  84. {
  85. ownerId_ = ownerId;
  86. setParameter("OwnerId", std::to_string(ownerId));
  87. }
  88. int QuerySettlementBillRequest::getPageNum()const
  89. {
  90. return pageNum_;
  91. }
  92. void QuerySettlementBillRequest::setPageNum(int pageNum)
  93. {
  94. pageNum_ = pageNum;
  95. setParameter("PageNum", std::to_string(pageNum));
  96. }
  97. std::string QuerySettlementBillRequest::getType()const
  98. {
  99. return type_;
  100. }
  101. void QuerySettlementBillRequest::setType(const std::string& type)
  102. {
  103. type_ = type;
  104. setParameter("Type", type);
  105. }
  106. std::string QuerySettlementBillRequest::getProductType()const
  107. {
  108. return productType_;
  109. }
  110. void QuerySettlementBillRequest::setProductType(const std::string& productType)
  111. {
  112. productType_ = productType;
  113. setParameter("ProductType", productType);
  114. }
  115. int QuerySettlementBillRequest::getPageSize()const
  116. {
  117. return pageSize_;
  118. }
  119. void QuerySettlementBillRequest::setPageSize(int pageSize)
  120. {
  121. pageSize_ = pageSize;
  122. setParameter("PageSize", std::to_string(pageSize));
  123. }