DescribeItemsRequest.cc 2.9 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/cloudesl/model/DescribeItemsRequest.h>
  17. using AlibabaCloud::Cloudesl::Model::DescribeItemsRequest;
  18. DescribeItemsRequest::DescribeItemsRequest() :
  19. RpcServiceRequest("cloudesl", "2020-02-01", "DescribeItems")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. DescribeItemsRequest::~DescribeItemsRequest()
  24. {}
  25. std::string DescribeItemsRequest::getExtraParams()const
  26. {
  27. return extraParams_;
  28. }
  29. void DescribeItemsRequest::setExtraParams(const std::string& extraParams)
  30. {
  31. extraParams_ = extraParams;
  32. setBodyParameter("ExtraParams", extraParams);
  33. }
  34. std::string DescribeItemsRequest::getStoreId()const
  35. {
  36. return storeId_;
  37. }
  38. void DescribeItemsRequest::setStoreId(const std::string& storeId)
  39. {
  40. storeId_ = storeId;
  41. setBodyParameter("StoreId", storeId);
  42. }
  43. int DescribeItemsRequest::getPageNumber()const
  44. {
  45. return pageNumber_;
  46. }
  47. void DescribeItemsRequest::setPageNumber(int pageNumber)
  48. {
  49. pageNumber_ = pageNumber;
  50. setBodyParameter("PageNumber", std::to_string(pageNumber));
  51. }
  52. std::string DescribeItemsRequest::getItemId()const
  53. {
  54. return itemId_;
  55. }
  56. void DescribeItemsRequest::setItemId(const std::string& itemId)
  57. {
  58. itemId_ = itemId;
  59. setBodyParameter("ItemId", itemId);
  60. }
  61. int DescribeItemsRequest::getPageSize()const
  62. {
  63. return pageSize_;
  64. }
  65. void DescribeItemsRequest::setPageSize(int pageSize)
  66. {
  67. pageSize_ = pageSize;
  68. setBodyParameter("PageSize", std::to_string(pageSize));
  69. }
  70. std::string DescribeItemsRequest::getItemBarCode()const
  71. {
  72. return itemBarCode_;
  73. }
  74. void DescribeItemsRequest::setItemBarCode(const std::string& itemBarCode)
  75. {
  76. itemBarCode_ = itemBarCode;
  77. setBodyParameter("ItemBarCode", itemBarCode);
  78. }
  79. bool DescribeItemsRequest::getBePromotion()const
  80. {
  81. return bePromotion_;
  82. }
  83. void DescribeItemsRequest::setBePromotion(bool bePromotion)
  84. {
  85. bePromotion_ = bePromotion;
  86. setBodyParameter("BePromotion", bePromotion ? "true" : "false");
  87. }
  88. std::string DescribeItemsRequest::getItemTitle()const
  89. {
  90. return itemTitle_;
  91. }
  92. void DescribeItemsRequest::setItemTitle(const std::string& itemTitle)
  93. {
  94. itemTitle_ = itemTitle;
  95. setBodyParameter("ItemTitle", itemTitle);
  96. }
  97. std::string DescribeItemsRequest::getSkuId()const
  98. {
  99. return skuId_;
  100. }
  101. void DescribeItemsRequest::setSkuId(const std::string& skuId)
  102. {
  103. skuId_ = skuId;
  104. setBodyParameter("SkuId", skuId);
  105. }