ListAnsServiceClustersRequest.cc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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/mse/model/ListAnsServiceClustersRequest.h>
  17. using AlibabaCloud::Mse::Model::ListAnsServiceClustersRequest;
  18. ListAnsServiceClustersRequest::ListAnsServiceClustersRequest()
  19. : RpcServiceRequest("mse", "2019-05-31", "ListAnsServiceClusters") {
  20. setMethod(HttpRequest::Method::Get);
  21. }
  22. ListAnsServiceClustersRequest::~ListAnsServiceClustersRequest() {}
  23. std::string ListAnsServiceClustersRequest::getClusterName() const {
  24. return clusterName_;
  25. }
  26. void ListAnsServiceClustersRequest::setClusterName(const std::string &clusterName) {
  27. clusterName_ = clusterName;
  28. setParameter(std::string("ClusterName"), clusterName);
  29. }
  30. std::string ListAnsServiceClustersRequest::getClusterId() const {
  31. return clusterId_;
  32. }
  33. void ListAnsServiceClustersRequest::setClusterId(const std::string &clusterId) {
  34. clusterId_ = clusterId;
  35. setParameter(std::string("ClusterId"), clusterId);
  36. }
  37. int ListAnsServiceClustersRequest::getPageNum() const {
  38. return pageNum_;
  39. }
  40. void ListAnsServiceClustersRequest::setPageNum(int pageNum) {
  41. pageNum_ = pageNum;
  42. setParameter(std::string("PageNum"), std::to_string(pageNum));
  43. }
  44. std::string ListAnsServiceClustersRequest::getGroupName() const {
  45. return groupName_;
  46. }
  47. void ListAnsServiceClustersRequest::setGroupName(const std::string &groupName) {
  48. groupName_ = groupName;
  49. setParameter(std::string("GroupName"), groupName);
  50. }
  51. std::string ListAnsServiceClustersRequest::getInstanceId() const {
  52. return instanceId_;
  53. }
  54. void ListAnsServiceClustersRequest::setInstanceId(const std::string &instanceId) {
  55. instanceId_ = instanceId;
  56. setParameter(std::string("InstanceId"), instanceId);
  57. }
  58. std::string ListAnsServiceClustersRequest::getNamespaceId() const {
  59. return namespaceId_;
  60. }
  61. void ListAnsServiceClustersRequest::setNamespaceId(const std::string &namespaceId) {
  62. namespaceId_ = namespaceId;
  63. setParameter(std::string("NamespaceId"), namespaceId);
  64. }
  65. std::string ListAnsServiceClustersRequest::getRequestPars() const {
  66. return requestPars_;
  67. }
  68. void ListAnsServiceClustersRequest::setRequestPars(const std::string &requestPars) {
  69. requestPars_ = requestPars;
  70. setParameter(std::string("RequestPars"), requestPars);
  71. }
  72. int ListAnsServiceClustersRequest::getPageSize() const {
  73. return pageSize_;
  74. }
  75. void ListAnsServiceClustersRequest::setPageSize(int pageSize) {
  76. pageSize_ = pageSize;
  77. setParameter(std::string("PageSize"), std::to_string(pageSize));
  78. }
  79. std::string ListAnsServiceClustersRequest::getAcceptLanguage() const {
  80. return acceptLanguage_;
  81. }
  82. void ListAnsServiceClustersRequest::setAcceptLanguage(const std::string &acceptLanguage) {
  83. acceptLanguage_ = acceptLanguage;
  84. setParameter(std::string("AcceptLanguage"), acceptLanguage);
  85. }
  86. std::string ListAnsServiceClustersRequest::getServiceName() const {
  87. return serviceName_;
  88. }
  89. void ListAnsServiceClustersRequest::setServiceName(const std::string &serviceName) {
  90. serviceName_ = serviceName;
  91. setParameter(std::string("ServiceName"), serviceName);
  92. }