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