QueryAdvancedDomainListRequest.cc 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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/QueryAdvancedDomainListRequest.h>
  17. using AlibabaCloud::Domain::Model::QueryAdvancedDomainListRequest;
  18. QueryAdvancedDomainListRequest::QueryAdvancedDomainListRequest()
  19. : RpcServiceRequest("domain", "2018-01-29", "QueryAdvancedDomainList") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. QueryAdvancedDomainListRequest::~QueryAdvancedDomainListRequest() {}
  23. std::string QueryAdvancedDomainListRequest::getProductDomainType() const {
  24. return productDomainType_;
  25. }
  26. void QueryAdvancedDomainListRequest::setProductDomainType(const std::string &productDomainType) {
  27. productDomainType_ = productDomainType;
  28. setParameter(std::string("ProductDomainType"), productDomainType);
  29. }
  30. int QueryAdvancedDomainListRequest::getPageNum() const {
  31. return pageNum_;
  32. }
  33. void QueryAdvancedDomainListRequest::setPageNum(int pageNum) {
  34. pageNum_ = pageNum;
  35. setParameter(std::string("PageNum"), std::to_string(pageNum));
  36. }
  37. std::string QueryAdvancedDomainListRequest::getExcluded() const {
  38. return excluded_;
  39. }
  40. void QueryAdvancedDomainListRequest::setExcluded(const std::string &excluded) {
  41. excluded_ = excluded;
  42. setParameter(std::string("Excluded"), excluded);
  43. }
  44. int QueryAdvancedDomainListRequest::getStartLength() const {
  45. return startLength_;
  46. }
  47. void QueryAdvancedDomainListRequest::setStartLength(int startLength) {
  48. startLength_ = startLength;
  49. setParameter(std::string("StartLength"), std::to_string(startLength));
  50. }
  51. std::string QueryAdvancedDomainListRequest::getResourceGroupId() const {
  52. return resourceGroupId_;
  53. }
  54. void QueryAdvancedDomainListRequest::setResourceGroupId(const std::string &resourceGroupId) {
  55. resourceGroupId_ = resourceGroupId;
  56. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  57. }
  58. bool QueryAdvancedDomainListRequest::getExcludedSuffix() const {
  59. return excludedSuffix_;
  60. }
  61. void QueryAdvancedDomainListRequest::setExcludedSuffix(bool excludedSuffix) {
  62. excludedSuffix_ = excludedSuffix;
  63. setParameter(std::string("ExcludedSuffix"), excludedSuffix ? "true" : "false");
  64. }
  65. int QueryAdvancedDomainListRequest::getPageSize() const {
  66. return pageSize_;
  67. }
  68. void QueryAdvancedDomainListRequest::setPageSize(int pageSize) {
  69. pageSize_ = pageSize;
  70. setParameter(std::string("PageSize"), std::to_string(pageSize));
  71. }
  72. std::vector<QueryAdvancedDomainListRequest::Tag> QueryAdvancedDomainListRequest::getTag() const {
  73. return tag_;
  74. }
  75. void QueryAdvancedDomainListRequest::setTag(const std::vector<QueryAdvancedDomainListRequest::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 QueryAdvancedDomainListRequest::getLang() const {
  85. return lang_;
  86. }
  87. void QueryAdvancedDomainListRequest::setLang(const std::string &lang) {
  88. lang_ = lang;
  89. setParameter(std::string("Lang"), lang);
  90. }
  91. bool QueryAdvancedDomainListRequest::getExcludedPrefix() const {
  92. return excludedPrefix_;
  93. }
  94. void QueryAdvancedDomainListRequest::setExcludedPrefix(bool excludedPrefix) {
  95. excludedPrefix_ = excludedPrefix;
  96. setParameter(std::string("ExcludedPrefix"), excludedPrefix ? "true" : "false");
  97. }
  98. std::string QueryAdvancedDomainListRequest::getKeyWord() const {
  99. return keyWord_;
  100. }
  101. void QueryAdvancedDomainListRequest::setKeyWord(const std::string &keyWord) {
  102. keyWord_ = keyWord;
  103. setParameter(std::string("KeyWord"), keyWord);
  104. }
  105. bool QueryAdvancedDomainListRequest::getProductDomainTypeSort() const {
  106. return productDomainTypeSort_;
  107. }
  108. void QueryAdvancedDomainListRequest::setProductDomainTypeSort(bool productDomainTypeSort) {
  109. productDomainTypeSort_ = productDomainTypeSort;
  110. setParameter(std::string("ProductDomainTypeSort"), productDomainTypeSort ? "true" : "false");
  111. }
  112. long QueryAdvancedDomainListRequest::getEndExpirationDate() const {
  113. return endExpirationDate_;
  114. }
  115. void QueryAdvancedDomainListRequest::setEndExpirationDate(long endExpirationDate) {
  116. endExpirationDate_ = endExpirationDate;
  117. setParameter(std::string("EndExpirationDate"), std::to_string(endExpirationDate));
  118. }
  119. std::string QueryAdvancedDomainListRequest::getSuffixs() const {
  120. return suffixs_;
  121. }
  122. void QueryAdvancedDomainListRequest::setSuffixs(const std::string &suffixs) {
  123. suffixs_ = suffixs;
  124. setParameter(std::string("Suffixs"), suffixs);
  125. }
  126. bool QueryAdvancedDomainListRequest::getDomainNameSort() const {
  127. return domainNameSort_;
  128. }
  129. void QueryAdvancedDomainListRequest::setDomainNameSort(bool domainNameSort) {
  130. domainNameSort_ = domainNameSort;
  131. setParameter(std::string("DomainNameSort"), domainNameSort ? "true" : "false");
  132. }
  133. bool QueryAdvancedDomainListRequest::getExpirationDateSort() const {
  134. return expirationDateSort_;
  135. }
  136. void QueryAdvancedDomainListRequest::setExpirationDateSort(bool expirationDateSort) {
  137. expirationDateSort_ = expirationDateSort;
  138. setParameter(std::string("ExpirationDateSort"), expirationDateSort ? "true" : "false");
  139. }
  140. long QueryAdvancedDomainListRequest::getStartExpirationDate() const {
  141. return startExpirationDate_;
  142. }
  143. void QueryAdvancedDomainListRequest::setStartExpirationDate(long startExpirationDate) {
  144. startExpirationDate_ = startExpirationDate;
  145. setParameter(std::string("StartExpirationDate"), std::to_string(startExpirationDate));
  146. }
  147. int QueryAdvancedDomainListRequest::getDomainStatus() const {
  148. return domainStatus_;
  149. }
  150. void QueryAdvancedDomainListRequest::setDomainStatus(int domainStatus) {
  151. domainStatus_ = domainStatus;
  152. setParameter(std::string("DomainStatus"), std::to_string(domainStatus));
  153. }
  154. long QueryAdvancedDomainListRequest::getDomainGroupId() const {
  155. return domainGroupId_;
  156. }
  157. void QueryAdvancedDomainListRequest::setDomainGroupId(long domainGroupId) {
  158. domainGroupId_ = domainGroupId;
  159. setParameter(std::string("DomainGroupId"), std::to_string(domainGroupId));
  160. }
  161. bool QueryAdvancedDomainListRequest::getKeyWordSuffix() const {
  162. return keyWordSuffix_;
  163. }
  164. void QueryAdvancedDomainListRequest::setKeyWordSuffix(bool keyWordSuffix) {
  165. keyWordSuffix_ = keyWordSuffix;
  166. setParameter(std::string("KeyWordSuffix"), keyWordSuffix ? "true" : "false");
  167. }
  168. bool QueryAdvancedDomainListRequest::getKeyWordPrefix() const {
  169. return keyWordPrefix_;
  170. }
  171. void QueryAdvancedDomainListRequest::setKeyWordPrefix(bool keyWordPrefix) {
  172. keyWordPrefix_ = keyWordPrefix;
  173. setParameter(std::string("KeyWordPrefix"), keyWordPrefix ? "true" : "false");
  174. }
  175. int QueryAdvancedDomainListRequest::getTradeType() const {
  176. return tradeType_;
  177. }
  178. void QueryAdvancedDomainListRequest::setTradeType(int tradeType) {
  179. tradeType_ = tradeType;
  180. setParameter(std::string("TradeType"), std::to_string(tradeType));
  181. }
  182. long QueryAdvancedDomainListRequest::getEndRegistrationDate() const {
  183. return endRegistrationDate_;
  184. }
  185. void QueryAdvancedDomainListRequest::setEndRegistrationDate(long endRegistrationDate) {
  186. endRegistrationDate_ = endRegistrationDate;
  187. setParameter(std::string("EndRegistrationDate"), std::to_string(endRegistrationDate));
  188. }
  189. int QueryAdvancedDomainListRequest::getForm() const {
  190. return form_;
  191. }
  192. void QueryAdvancedDomainListRequest::setForm(int form) {
  193. form_ = form;
  194. setParameter(std::string("Form"), std::to_string(form));
  195. }
  196. bool QueryAdvancedDomainListRequest::getIsPremiumDomain() const {
  197. return isPremiumDomain_;
  198. }
  199. void QueryAdvancedDomainListRequest::setIsPremiumDomain(bool isPremiumDomain) {
  200. isPremiumDomain_ = isPremiumDomain;
  201. setParameter(std::string("IsPremiumDomain"), isPremiumDomain ? "true" : "false");
  202. }
  203. std::string QueryAdvancedDomainListRequest::getUserClientIp() const {
  204. return userClientIp_;
  205. }
  206. void QueryAdvancedDomainListRequest::setUserClientIp(const std::string &userClientIp) {
  207. userClientIp_ = userClientIp;
  208. setParameter(std::string("UserClientIp"), userClientIp);
  209. }
  210. bool QueryAdvancedDomainListRequest::getRegistrationDateSort() const {
  211. return registrationDateSort_;
  212. }
  213. void QueryAdvancedDomainListRequest::setRegistrationDateSort(bool registrationDateSort) {
  214. registrationDateSort_ = registrationDateSort;
  215. setParameter(std::string("RegistrationDateSort"), registrationDateSort ? "true" : "false");
  216. }
  217. long QueryAdvancedDomainListRequest::getStartRegistrationDate() const {
  218. return startRegistrationDate_;
  219. }
  220. void QueryAdvancedDomainListRequest::setStartRegistrationDate(long startRegistrationDate) {
  221. startRegistrationDate_ = startRegistrationDate;
  222. setParameter(std::string("StartRegistrationDate"), std::to_string(startRegistrationDate));
  223. }
  224. int QueryAdvancedDomainListRequest::getEndLength() const {
  225. return endLength_;
  226. }
  227. void QueryAdvancedDomainListRequest::setEndLength(int endLength) {
  228. endLength_ = endLength;
  229. setParameter(std::string("EndLength"), std::to_string(endLength));
  230. }