ListClusterServiceConfigHistoryRequest.cc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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/emr/model/ListClusterServiceConfigHistoryRequest.h>
  17. using AlibabaCloud::Emr::Model::ListClusterServiceConfigHistoryRequest;
  18. ListClusterServiceConfigHistoryRequest::ListClusterServiceConfigHistoryRequest() :
  19. RpcServiceRequest("emr", "2016-04-08", "ListClusterServiceConfigHistory")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListClusterServiceConfigHistoryRequest::~ListClusterServiceConfigHistoryRequest()
  24. {}
  25. long ListClusterServiceConfigHistoryRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ListClusterServiceConfigHistoryRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string ListClusterServiceConfigHistoryRequest::getHostInstanceId()const
  35. {
  36. return hostInstanceId_;
  37. }
  38. void ListClusterServiceConfigHistoryRequest::setHostInstanceId(const std::string& hostInstanceId)
  39. {
  40. hostInstanceId_ = hostInstanceId;
  41. setParameter("HostInstanceId", hostInstanceId);
  42. }
  43. int ListClusterServiceConfigHistoryRequest::getPageNumber()const
  44. {
  45. return pageNumber_;
  46. }
  47. void ListClusterServiceConfigHistoryRequest::setPageNumber(int pageNumber)
  48. {
  49. pageNumber_ = pageNumber;
  50. setParameter("PageNumber", std::to_string(pageNumber));
  51. }
  52. std::string ListClusterServiceConfigHistoryRequest::getAccessKeyId()const
  53. {
  54. return accessKeyId_;
  55. }
  56. void ListClusterServiceConfigHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
  57. {
  58. accessKeyId_ = accessKeyId;
  59. setParameter("AccessKeyId", accessKeyId);
  60. }
  61. std::string ListClusterServiceConfigHistoryRequest::getConfigVersion()const
  62. {
  63. return configVersion_;
  64. }
  65. void ListClusterServiceConfigHistoryRequest::setConfigVersion(const std::string& configVersion)
  66. {
  67. configVersion_ = configVersion;
  68. setParameter("ConfigVersion", configVersion);
  69. }
  70. std::string ListClusterServiceConfigHistoryRequest::getRegionId()const
  71. {
  72. return regionId_;
  73. }
  74. void ListClusterServiceConfigHistoryRequest::setRegionId(const std::string& regionId)
  75. {
  76. regionId_ = regionId;
  77. setParameter("RegionId", regionId);
  78. }
  79. int ListClusterServiceConfigHistoryRequest::getPageSize()const
  80. {
  81. return pageSize_;
  82. }
  83. void ListClusterServiceConfigHistoryRequest::setPageSize(int pageSize)
  84. {
  85. pageSize_ = pageSize;
  86. setParameter("PageSize", std::to_string(pageSize));
  87. }
  88. std::string ListClusterServiceConfigHistoryRequest::getServiceName()const
  89. {
  90. return serviceName_;
  91. }
  92. void ListClusterServiceConfigHistoryRequest::setServiceName(const std::string& serviceName)
  93. {
  94. serviceName_ = serviceName;
  95. setParameter("ServiceName", serviceName);
  96. }
  97. std::string ListClusterServiceConfigHistoryRequest::getAuthor()const
  98. {
  99. return author_;
  100. }
  101. void ListClusterServiceConfigHistoryRequest::setAuthor(const std::string& author)
  102. {
  103. author_ = author;
  104. setParameter("Author", author);
  105. }
  106. std::string ListClusterServiceConfigHistoryRequest::getClusterId()const
  107. {
  108. return clusterId_;
  109. }
  110. void ListClusterServiceConfigHistoryRequest::setClusterId(const std::string& clusterId)
  111. {
  112. clusterId_ = clusterId;
  113. setParameter("ClusterId", clusterId);
  114. }
  115. std::string ListClusterServiceConfigHistoryRequest::getConfigFileName()const
  116. {
  117. return configFileName_;
  118. }
  119. void ListClusterServiceConfigHistoryRequest::setConfigFileName(const std::string& configFileName)
  120. {
  121. configFileName_ = configFileName;
  122. setParameter("ConfigFileName", configFileName);
  123. }
  124. std::string ListClusterServiceConfigHistoryRequest::getConfigItemKey()const
  125. {
  126. return configItemKey_;
  127. }
  128. void ListClusterServiceConfigHistoryRequest::setConfigItemKey(const std::string& configItemKey)
  129. {
  130. configItemKey_ = configItemKey;
  131. setParameter("ConfigItemKey", configItemKey);
  132. }
  133. std::string ListClusterServiceConfigHistoryRequest::getHostGroupId()const
  134. {
  135. return hostGroupId_;
  136. }
  137. void ListClusterServiceConfigHistoryRequest::setHostGroupId(const std::string& hostGroupId)
  138. {
  139. hostGroupId_ = hostGroupId;
  140. setParameter("HostGroupId", hostGroupId);
  141. }
  142. std::string ListClusterServiceConfigHistoryRequest::getComment()const
  143. {
  144. return comment_;
  145. }
  146. void ListClusterServiceConfigHistoryRequest::setComment(const std::string& comment)
  147. {
  148. comment_ = comment;
  149. setParameter("Comment", comment);
  150. }