QueryDomainListRequest.cc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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/domain/model/QueryDomainListRequest.h>
  17. using AlibabaCloud::Domain::Model::QueryDomainListRequest;
  18. QueryDomainListRequest::QueryDomainListRequest()
  19. : RpcServiceRequest("domain", "2018-01-29", "QueryDomainList") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. QueryDomainListRequest::~QueryDomainListRequest() {}
  23. std::string QueryDomainListRequest::getProductDomainType() const {
  24. return productDomainType_;
  25. }
  26. void QueryDomainListRequest::setProductDomainType(const std::string &productDomainType) {
  27. productDomainType_ = productDomainType;
  28. setParameter(std::string("ProductDomainType"), productDomainType);
  29. }
  30. std::string QueryDomainListRequest::getCcompany() const {
  31. return ccompany_;
  32. }
  33. void QueryDomainListRequest::setCcompany(const std::string &ccompany) {
  34. ccompany_ = ccompany;
  35. setParameter(std::string("Ccompany"), ccompany);
  36. }
  37. std::string QueryDomainListRequest::getOrderKeyType() const {
  38. return orderKeyType_;
  39. }
  40. void QueryDomainListRequest::setOrderKeyType(const std::string &orderKeyType) {
  41. orderKeyType_ = orderKeyType;
  42. setParameter(std::string("OrderKeyType"), orderKeyType);
  43. }
  44. int QueryDomainListRequest::getPageNum() const {
  45. return pageNum_;
  46. }
  47. void QueryDomainListRequest::setPageNum(int pageNum) {
  48. pageNum_ = pageNum;
  49. setParameter(std::string("PageNum"), std::to_string(pageNum));
  50. }
  51. std::string QueryDomainListRequest::getOrderByType() const {
  52. return orderByType_;
  53. }
  54. void QueryDomainListRequest::setOrderByType(const std::string &orderByType) {
  55. orderByType_ = orderByType;
  56. setParameter(std::string("OrderByType"), orderByType);
  57. }
  58. std::string QueryDomainListRequest::getResourceGroupId() const {
  59. return resourceGroupId_;
  60. }
  61. void QueryDomainListRequest::setResourceGroupId(const std::string &resourceGroupId) {
  62. resourceGroupId_ = resourceGroupId;
  63. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  64. }
  65. int QueryDomainListRequest::getPageSize() const {
  66. return pageSize_;
  67. }
  68. void QueryDomainListRequest::setPageSize(int pageSize) {
  69. pageSize_ = pageSize;
  70. setParameter(std::string("PageSize"), std::to_string(pageSize));
  71. }
  72. std::vector<QueryDomainListRequest::Tag> QueryDomainListRequest::getTag() const {
  73. return tag_;
  74. }
  75. void QueryDomainListRequest::setTag(const std::vector<QueryDomainListRequest::Tag> &tag) {
  76. tag_ = tag;
  77. for(int dep1 = 0; dep1 != tag.size(); dep1++) {
  78. auto tagObj = tag.at(dep1);
  79. std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
  80. setParameter(tagObjStr + ".Value", tagObj.value);
  81. setParameter(tagObjStr + ".Key", tagObj.key);
  82. }
  83. }
  84. std::string QueryDomainListRequest::getLang() const {
  85. return lang_;
  86. }
  87. void QueryDomainListRequest::setLang(const std::string &lang) {
  88. lang_ = lang;
  89. setParameter(std::string("Lang"), lang);
  90. }
  91. std::string QueryDomainListRequest::getQueryType() const {
  92. return queryType_;
  93. }
  94. void QueryDomainListRequest::setQueryType(const std::string &queryType) {
  95. queryType_ = queryType;
  96. setParameter(std::string("QueryType"), queryType);
  97. }
  98. long QueryDomainListRequest::getEndExpirationDate() const {
  99. return endExpirationDate_;
  100. }
  101. void QueryDomainListRequest::setEndExpirationDate(long endExpirationDate) {
  102. endExpirationDate_ = endExpirationDate;
  103. setParameter(std::string("EndExpirationDate"), std::to_string(endExpirationDate));
  104. }
  105. std::string QueryDomainListRequest::getDomainName() const {
  106. return domainName_;
  107. }
  108. void QueryDomainListRequest::setDomainName(const std::string &domainName) {
  109. domainName_ = domainName;
  110. setParameter(std::string("DomainName"), domainName);
  111. }
  112. long QueryDomainListRequest::getStartExpirationDate() const {
  113. return startExpirationDate_;
  114. }
  115. void QueryDomainListRequest::setStartExpirationDate(long startExpirationDate) {
  116. startExpirationDate_ = startExpirationDate;
  117. setParameter(std::string("StartExpirationDate"), std::to_string(startExpirationDate));
  118. }
  119. std::string QueryDomainListRequest::getDomainGroupId() const {
  120. return domainGroupId_;
  121. }
  122. void QueryDomainListRequest::setDomainGroupId(const std::string &domainGroupId) {
  123. domainGroupId_ = domainGroupId;
  124. setParameter(std::string("DomainGroupId"), domainGroupId);
  125. }
  126. long QueryDomainListRequest::getEndRegistrationDate() const {
  127. return endRegistrationDate_;
  128. }
  129. void QueryDomainListRequest::setEndRegistrationDate(long endRegistrationDate) {
  130. endRegistrationDate_ = endRegistrationDate;
  131. setParameter(std::string("EndRegistrationDate"), std::to_string(endRegistrationDate));
  132. }
  133. std::string QueryDomainListRequest::getUserClientIp() const {
  134. return userClientIp_;
  135. }
  136. void QueryDomainListRequest::setUserClientIp(const std::string &userClientIp) {
  137. userClientIp_ = userClientIp;
  138. setParameter(std::string("UserClientIp"), userClientIp);
  139. }
  140. long QueryDomainListRequest::getStartRegistrationDate() const {
  141. return startRegistrationDate_;
  142. }
  143. void QueryDomainListRequest::setStartRegistrationDate(long startRegistrationDate) {
  144. startRegistrationDate_ = startRegistrationDate;
  145. setParameter(std::string("StartRegistrationDate"), std::to_string(startRegistrationDate));
  146. }