DescribeSourceServersRequest.cc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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/smc/model/DescribeSourceServersRequest.h>
  17. using AlibabaCloud::Smc::Model::DescribeSourceServersRequest;
  18. DescribeSourceServersRequest::DescribeSourceServersRequest() :
  19. RpcServiceRequest("smc", "2019-06-01", "DescribeSourceServers")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. DescribeSourceServersRequest::~DescribeSourceServersRequest()
  24. {}
  25. int DescribeSourceServersRequest::getPageNumber()const
  26. {
  27. return pageNumber_;
  28. }
  29. void DescribeSourceServersRequest::setPageNumber(int pageNumber)
  30. {
  31. pageNumber_ = pageNumber;
  32. setParameter("PageNumber", std::to_string(pageNumber));
  33. }
  34. std::string DescribeSourceServersRequest::getAccessKeyId()const
  35. {
  36. return accessKeyId_;
  37. }
  38. void DescribeSourceServersRequest::setAccessKeyId(const std::string& accessKeyId)
  39. {
  40. accessKeyId_ = accessKeyId;
  41. setParameter("AccessKeyId", accessKeyId);
  42. }
  43. std::string DescribeSourceServersRequest::getJobId()const
  44. {
  45. return jobId_;
  46. }
  47. void DescribeSourceServersRequest::setJobId(const std::string& jobId)
  48. {
  49. jobId_ = jobId;
  50. setParameter("JobId", jobId);
  51. }
  52. int DescribeSourceServersRequest::getPageSize()const
  53. {
  54. return pageSize_;
  55. }
  56. void DescribeSourceServersRequest::setPageSize(int pageSize)
  57. {
  58. pageSize_ = pageSize;
  59. setParameter("PageSize", std::to_string(pageSize));
  60. }
  61. std::string DescribeSourceServersRequest::getState()const
  62. {
  63. return state_;
  64. }
  65. void DescribeSourceServersRequest::setState(const std::string& state)
  66. {
  67. state_ = state;
  68. setParameter("State", state);
  69. }
  70. std::vector<std::string> DescribeSourceServersRequest::getSourceId()const
  71. {
  72. return sourceId_;
  73. }
  74. void DescribeSourceServersRequest::setSourceId(const std::vector<std::string>& sourceId)
  75. {
  76. sourceId_ = sourceId;
  77. for(int dep1 = 0; dep1!= sourceId.size(); dep1++) {
  78. setParameter("SourceId."+ std::to_string(dep1), sourceId.at(dep1));
  79. }
  80. }
  81. std::string DescribeSourceServersRequest::getResourceOwnerAccount()const
  82. {
  83. return resourceOwnerAccount_;
  84. }
  85. void DescribeSourceServersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  86. {
  87. resourceOwnerAccount_ = resourceOwnerAccount;
  88. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  89. }
  90. long DescribeSourceServersRequest::getOwnerId()const
  91. {
  92. return ownerId_;
  93. }
  94. void DescribeSourceServersRequest::setOwnerId(long ownerId)
  95. {
  96. ownerId_ = ownerId;
  97. setParameter("OwnerId", std::to_string(ownerId));
  98. }
  99. std::string DescribeSourceServersRequest::getName()const
  100. {
  101. return name_;
  102. }
  103. void DescribeSourceServersRequest::setName(const std::string& name)
  104. {
  105. name_ = name;
  106. setParameter("Name", name);
  107. }