QueryAccountBillRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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/QueryAccountBillRequest.h>
  17. using AlibabaCloud::BssOpenApi::Model::QueryAccountBillRequest;
  18. QueryAccountBillRequest::QueryAccountBillRequest() :
  19. RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBill")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. QueryAccountBillRequest::~QueryAccountBillRequest()
  24. {}
  25. std::string QueryAccountBillRequest::getProductCode()const
  26. {
  27. return productCode_;
  28. }
  29. void QueryAccountBillRequest::setProductCode(const std::string& productCode)
  30. {
  31. productCode_ = productCode;
  32. setParameter("ProductCode", productCode);
  33. }
  34. std::string QueryAccountBillRequest::getBillingCycle()const
  35. {
  36. return billingCycle_;
  37. }
  38. void QueryAccountBillRequest::setBillingCycle(const std::string& billingCycle)
  39. {
  40. billingCycle_ = billingCycle;
  41. setParameter("BillingCycle", billingCycle);
  42. }
  43. int QueryAccountBillRequest::getPageNum()const
  44. {
  45. return pageNum_;
  46. }
  47. void QueryAccountBillRequest::setPageNum(int pageNum)
  48. {
  49. pageNum_ = pageNum;
  50. setParameter("PageNum", std::to_string(pageNum));
  51. }
  52. long QueryAccountBillRequest::getOwnerID()const
  53. {
  54. return ownerID_;
  55. }
  56. void QueryAccountBillRequest::setOwnerID(long ownerID)
  57. {
  58. ownerID_ = ownerID;
  59. setParameter("OwnerID", std::to_string(ownerID));
  60. }
  61. long QueryAccountBillRequest::getBillOwnerId()const
  62. {
  63. return billOwnerId_;
  64. }
  65. void QueryAccountBillRequest::setBillOwnerId(long billOwnerId)
  66. {
  67. billOwnerId_ = billOwnerId;
  68. setParameter("BillOwnerId", std::to_string(billOwnerId));
  69. }
  70. std::string QueryAccountBillRequest::getBillingDate()const
  71. {
  72. return billingDate_;
  73. }
  74. void QueryAccountBillRequest::setBillingDate(const std::string& billingDate)
  75. {
  76. billingDate_ = billingDate;
  77. setParameter("BillingDate", billingDate);
  78. }
  79. bool QueryAccountBillRequest::getIsGroupByProduct()const
  80. {
  81. return isGroupByProduct_;
  82. }
  83. void QueryAccountBillRequest::setIsGroupByProduct(bool isGroupByProduct)
  84. {
  85. isGroupByProduct_ = isGroupByProduct;
  86. setParameter("IsGroupByProduct", isGroupByProduct ? "true" : "false");
  87. }
  88. std::string QueryAccountBillRequest::getGranularity()const
  89. {
  90. return granularity_;
  91. }
  92. void QueryAccountBillRequest::setGranularity(const std::string& granularity)
  93. {
  94. granularity_ = granularity;
  95. setParameter("Granularity", granularity);
  96. }
  97. int QueryAccountBillRequest::getPageSize()const
  98. {
  99. return pageSize_;
  100. }
  101. void QueryAccountBillRequest::setPageSize(int pageSize)
  102. {
  103. pageSize_ = pageSize;
  104. setParameter("PageSize", std::to_string(pageSize));
  105. }