ListServicesRequest.cc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/retailcloud/model/ListServicesRequest.h>
  17. using AlibabaCloud::Retailcloud::Model::ListServicesRequest;
  18. ListServicesRequest::ListServicesRequest() :
  19. RpcServiceRequest("retailcloud", "2018-03-13", "ListServices")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListServicesRequest::~ListServicesRequest()
  24. {}
  25. std::string ListServicesRequest::getServiceType()const
  26. {
  27. return serviceType_;
  28. }
  29. void ListServicesRequest::setServiceType(const std::string& serviceType)
  30. {
  31. serviceType_ = serviceType;
  32. setParameter("ServiceType", serviceType);
  33. }
  34. long ListServicesRequest::getAppId()const
  35. {
  36. return appId_;
  37. }
  38. void ListServicesRequest::setAppId(long appId)
  39. {
  40. appId_ = appId;
  41. setParameter("AppId", std::to_string(appId));
  42. }
  43. std::string ListServicesRequest::getName()const
  44. {
  45. return name_;
  46. }
  47. void ListServicesRequest::setName(const std::string& name)
  48. {
  49. name_ = name;
  50. setParameter("Name", name);
  51. }
  52. int ListServicesRequest::getPageSize()const
  53. {
  54. return pageSize_;
  55. }
  56. void ListServicesRequest::setPageSize(int pageSize)
  57. {
  58. pageSize_ = pageSize;
  59. setParameter("PageSize", std::to_string(pageSize));
  60. }
  61. long ListServicesRequest::getEnvId()const
  62. {
  63. return envId_;
  64. }
  65. void ListServicesRequest::setEnvId(long envId)
  66. {
  67. envId_ = envId;
  68. setParameter("EnvId", std::to_string(envId));
  69. }
  70. int ListServicesRequest::getPageNumber()const
  71. {
  72. return pageNumber_;
  73. }
  74. void ListServicesRequest::setPageNumber(int pageNumber)
  75. {
  76. pageNumber_ = pageNumber;
  77. setParameter("PageNumber", std::to_string(pageNumber));
  78. }