CreateDomainRequest.cc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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/waf-openapi/model/CreateDomainRequest.h>
  17. using AlibabaCloud::Waf_openapi::Model::CreateDomainRequest;
  18. CreateDomainRequest::CreateDomainRequest() :
  19. RpcServiceRequest("waf-openapi", "2019-09-10", "CreateDomain")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateDomainRequest::~CreateDomainRequest()
  24. {}
  25. int CreateDomainRequest::getIpFollowStatus()const
  26. {
  27. return ipFollowStatus_;
  28. }
  29. void CreateDomainRequest::setIpFollowStatus(int ipFollowStatus)
  30. {
  31. ipFollowStatus_ = ipFollowStatus;
  32. setParameter("IpFollowStatus", std::to_string(ipFollowStatus));
  33. }
  34. std::string CreateDomainRequest::getResourceGroupId()const
  35. {
  36. return resourceGroupId_;
  37. }
  38. void CreateDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
  39. {
  40. resourceGroupId_ = resourceGroupId;
  41. setParameter("ResourceGroupId", resourceGroupId);
  42. }
  43. std::string CreateDomainRequest::getSourceIp()const
  44. {
  45. return sourceIp_;
  46. }
  47. void CreateDomainRequest::setSourceIp(const std::string& sourceIp)
  48. {
  49. sourceIp_ = sourceIp;
  50. setParameter("SourceIp", sourceIp);
  51. }
  52. std::string CreateDomainRequest::getHttpPort()const
  53. {
  54. return httpPort_;
  55. }
  56. void CreateDomainRequest::setHttpPort(const std::string& httpPort)
  57. {
  58. httpPort_ = httpPort;
  59. setParameter("HttpPort", httpPort);
  60. }
  61. std::string CreateDomainRequest::getHttp2Port()const
  62. {
  63. return http2Port_;
  64. }
  65. void CreateDomainRequest::setHttp2Port(const std::string& http2Port)
  66. {
  67. http2Port_ = http2Port;
  68. setParameter("Http2Port", http2Port);
  69. }
  70. int CreateDomainRequest::getWriteTime()const
  71. {
  72. return writeTime_;
  73. }
  74. void CreateDomainRequest::setWriteTime(int writeTime)
  75. {
  76. writeTime_ = writeTime;
  77. setParameter("WriteTime", std::to_string(writeTime));
  78. }
  79. std::string CreateDomainRequest::getLang()const
  80. {
  81. return lang_;
  82. }
  83. void CreateDomainRequest::setLang(const std::string& lang)
  84. {
  85. lang_ = lang;
  86. setParameter("Lang", lang);
  87. }
  88. std::string CreateDomainRequest::getAccessType()const
  89. {
  90. return accessType_;
  91. }
  92. void CreateDomainRequest::setAccessType(const std::string& accessType)
  93. {
  94. accessType_ = accessType;
  95. setParameter("AccessType", accessType);
  96. }
  97. std::string CreateDomainRequest::getLogHeaders()const
  98. {
  99. return logHeaders_;
  100. }
  101. void CreateDomainRequest::setLogHeaders(const std::string& logHeaders)
  102. {
  103. logHeaders_ = logHeaders;
  104. setParameter("LogHeaders", logHeaders);
  105. }
  106. int CreateDomainRequest::getConnectionTime()const
  107. {
  108. return connectionTime_;
  109. }
  110. void CreateDomainRequest::setConnectionTime(int connectionTime)
  111. {
  112. connectionTime_ = connectionTime;
  113. setParameter("ConnectionTime", std::to_string(connectionTime));
  114. }
  115. int CreateDomainRequest::getClusterType()const
  116. {
  117. return clusterType_;
  118. }
  119. void CreateDomainRequest::setClusterType(int clusterType)
  120. {
  121. clusterType_ = clusterType;
  122. setParameter("ClusterType", std::to_string(clusterType));
  123. }
  124. std::string CreateDomainRequest::getCloudNativeInstances()const
  125. {
  126. return cloudNativeInstances_;
  127. }
  128. void CreateDomainRequest::setCloudNativeInstances(const std::string& cloudNativeInstances)
  129. {
  130. cloudNativeInstances_ = cloudNativeInstances;
  131. setParameter("CloudNativeInstances", cloudNativeInstances);
  132. }
  133. int CreateDomainRequest::getHttpsRedirect()const
  134. {
  135. return httpsRedirect_;
  136. }
  137. void CreateDomainRequest::setHttpsRedirect(int httpsRedirect)
  138. {
  139. httpsRedirect_ = httpsRedirect;
  140. setParameter("HttpsRedirect", std::to_string(httpsRedirect));
  141. }
  142. std::string CreateDomainRequest::getInstanceId()const
  143. {
  144. return instanceId_;
  145. }
  146. void CreateDomainRequest::setInstanceId(const std::string& instanceId)
  147. {
  148. instanceId_ = instanceId;
  149. setParameter("InstanceId", instanceId);
  150. }
  151. std::string CreateDomainRequest::getSourceIps()const
  152. {
  153. return sourceIps_;
  154. }
  155. void CreateDomainRequest::setSourceIps(const std::string& sourceIps)
  156. {
  157. sourceIps_ = sourceIps;
  158. setParameter("SourceIps", sourceIps);
  159. }
  160. std::string CreateDomainRequest::getDomain()const
  161. {
  162. return domain_;
  163. }
  164. void CreateDomainRequest::setDomain(const std::string& domain)
  165. {
  166. domain_ = domain;
  167. setParameter("Domain", domain);
  168. }
  169. int CreateDomainRequest::getIsAccessProduct()const
  170. {
  171. return isAccessProduct_;
  172. }
  173. void CreateDomainRequest::setIsAccessProduct(int isAccessProduct)
  174. {
  175. isAccessProduct_ = isAccessProduct;
  176. setParameter("IsAccessProduct", std::to_string(isAccessProduct));
  177. }
  178. int CreateDomainRequest::getReadTime()const
  179. {
  180. return readTime_;
  181. }
  182. void CreateDomainRequest::setReadTime(int readTime)
  183. {
  184. readTime_ = readTime;
  185. setParameter("ReadTime", std::to_string(readTime));
  186. }
  187. std::string CreateDomainRequest::getHttpsPort()const
  188. {
  189. return httpsPort_;
  190. }
  191. void CreateDomainRequest::setHttpsPort(const std::string& httpsPort)
  192. {
  193. httpsPort_ = httpsPort;
  194. setParameter("HttpsPort", httpsPort);
  195. }
  196. int CreateDomainRequest::getLoadBalancing()const
  197. {
  198. return loadBalancing_;
  199. }
  200. void CreateDomainRequest::setLoadBalancing(int loadBalancing)
  201. {
  202. loadBalancing_ = loadBalancing;
  203. setParameter("LoadBalancing", std::to_string(loadBalancing));
  204. }
  205. int CreateDomainRequest::getHttpToUserIp()const
  206. {
  207. return httpToUserIp_;
  208. }
  209. void CreateDomainRequest::setHttpToUserIp(int httpToUserIp)
  210. {
  211. httpToUserIp_ = httpToUserIp;
  212. setParameter("HttpToUserIp", std::to_string(httpToUserIp));
  213. }