CreateRouterInterfaceRequest.cc 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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/ecs/model/CreateRouterInterfaceRequest.h>
  17. using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest;
  18. CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
  19. RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
  24. {}
  25. std::string CreateRouterInterfaceRequest::getAccessPointId()const
  26. {
  27. return accessPointId_;
  28. }
  29. void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId)
  30. {
  31. accessPointId_ = accessPointId;
  32. setCoreParameter("AccessPointId", accessPointId);
  33. }
  34. std::string CreateRouterInterfaceRequest::getOppositeRouterId()const
  35. {
  36. return oppositeRouterId_;
  37. }
  38. void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId)
  39. {
  40. oppositeRouterId_ = oppositeRouterId;
  41. setCoreParameter("OppositeRouterId", oppositeRouterId);
  42. }
  43. std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const
  44. {
  45. return oppositeAccessPointId_;
  46. }
  47. void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId)
  48. {
  49. oppositeAccessPointId_ = oppositeAccessPointId;
  50. setCoreParameter("OppositeAccessPointId", oppositeAccessPointId);
  51. }
  52. long CreateRouterInterfaceRequest::getResourceOwnerId()const
  53. {
  54. return resourceOwnerId_;
  55. }
  56. void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId)
  57. {
  58. resourceOwnerId_ = resourceOwnerId;
  59. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  60. }
  61. std::string CreateRouterInterfaceRequest::getRole()const
  62. {
  63. return role_;
  64. }
  65. void CreateRouterInterfaceRequest::setRole(const std::string& role)
  66. {
  67. role_ = role;
  68. setCoreParameter("Role", role);
  69. }
  70. std::string CreateRouterInterfaceRequest::getClientToken()const
  71. {
  72. return clientToken_;
  73. }
  74. void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken)
  75. {
  76. clientToken_ = clientToken;
  77. setCoreParameter("ClientToken", clientToken);
  78. }
  79. std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const
  80. {
  81. return healthCheckTargetIp_;
  82. }
  83. void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp)
  84. {
  85. healthCheckTargetIp_ = healthCheckTargetIp;
  86. setCoreParameter("HealthCheckTargetIp", healthCheckTargetIp);
  87. }
  88. std::string CreateRouterInterfaceRequest::getDescription()const
  89. {
  90. return description_;
  91. }
  92. void CreateRouterInterfaceRequest::setDescription(const std::string& description)
  93. {
  94. description_ = description;
  95. setCoreParameter("Description", description);
  96. }
  97. std::string CreateRouterInterfaceRequest::getSpec()const
  98. {
  99. return spec_;
  100. }
  101. void CreateRouterInterfaceRequest::setSpec(const std::string& spec)
  102. {
  103. spec_ = spec;
  104. setCoreParameter("Spec", spec);
  105. }
  106. std::string CreateRouterInterfaceRequest::getRegionId()const
  107. {
  108. return regionId_;
  109. }
  110. void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId)
  111. {
  112. regionId_ = regionId;
  113. setCoreParameter("RegionId", regionId);
  114. }
  115. std::string CreateRouterInterfaceRequest::getUserCidr()const
  116. {
  117. return userCidr_;
  118. }
  119. void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr)
  120. {
  121. userCidr_ = userCidr;
  122. setCoreParameter("UserCidr", userCidr);
  123. }
  124. std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const
  125. {
  126. return oppositeInterfaceId_;
  127. }
  128. void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId)
  129. {
  130. oppositeInterfaceId_ = oppositeInterfaceId;
  131. setCoreParameter("OppositeInterfaceId", oppositeInterfaceId);
  132. }
  133. std::string CreateRouterInterfaceRequest::getInstanceChargeType()const
  134. {
  135. return instanceChargeType_;
  136. }
  137. void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType)
  138. {
  139. instanceChargeType_ = instanceChargeType;
  140. setCoreParameter("InstanceChargeType", instanceChargeType);
  141. }
  142. int CreateRouterInterfaceRequest::getPeriod()const
  143. {
  144. return period_;
  145. }
  146. void CreateRouterInterfaceRequest::setPeriod(int period)
  147. {
  148. period_ = period;
  149. setCoreParameter("Period", std::to_string(period));
  150. }
  151. bool CreateRouterInterfaceRequest::getAutoPay()const
  152. {
  153. return autoPay_;
  154. }
  155. void CreateRouterInterfaceRequest::setAutoPay(bool autoPay)
  156. {
  157. autoPay_ = autoPay;
  158. setCoreParameter("AutoPay", autoPay ? "true" : "false");
  159. }
  160. std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const
  161. {
  162. return resourceOwnerAccount_;
  163. }
  164. void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  165. {
  166. resourceOwnerAccount_ = resourceOwnerAccount;
  167. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  168. }
  169. std::string CreateRouterInterfaceRequest::getOppositeRegionId()const
  170. {
  171. return oppositeRegionId_;
  172. }
  173. void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId)
  174. {
  175. oppositeRegionId_ = oppositeRegionId;
  176. setCoreParameter("OppositeRegionId", oppositeRegionId);
  177. }
  178. std::string CreateRouterInterfaceRequest::getOwnerAccount()const
  179. {
  180. return ownerAccount_;
  181. }
  182. void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount)
  183. {
  184. ownerAccount_ = ownerAccount;
  185. setCoreParameter("OwnerAccount", ownerAccount);
  186. }
  187. long CreateRouterInterfaceRequest::getOwnerId()const
  188. {
  189. return ownerId_;
  190. }
  191. void CreateRouterInterfaceRequest::setOwnerId(long ownerId)
  192. {
  193. ownerId_ = ownerId;
  194. setCoreParameter("OwnerId", std::to_string(ownerId));
  195. }
  196. std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const
  197. {
  198. return oppositeInterfaceOwnerId_;
  199. }
  200. void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId)
  201. {
  202. oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId;
  203. setCoreParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId);
  204. }
  205. std::string CreateRouterInterfaceRequest::getRouterType()const
  206. {
  207. return routerType_;
  208. }
  209. void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType)
  210. {
  211. routerType_ = routerType;
  212. setCoreParameter("RouterType", routerType);
  213. }
  214. std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const
  215. {
  216. return healthCheckSourceIp_;
  217. }
  218. void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp)
  219. {
  220. healthCheckSourceIp_ = healthCheckSourceIp;
  221. setCoreParameter("HealthCheckSourceIp", healthCheckSourceIp);
  222. }
  223. std::string CreateRouterInterfaceRequest::getRouterId()const
  224. {
  225. return routerId_;
  226. }
  227. void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId)
  228. {
  229. routerId_ = routerId;
  230. setCoreParameter("RouterId", routerId);
  231. }
  232. std::string CreateRouterInterfaceRequest::getOppositeRouterType()const
  233. {
  234. return oppositeRouterType_;
  235. }
  236. void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType)
  237. {
  238. oppositeRouterType_ = oppositeRouterType;
  239. setCoreParameter("OppositeRouterType", oppositeRouterType);
  240. }
  241. std::string CreateRouterInterfaceRequest::getName()const
  242. {
  243. return name_;
  244. }
  245. void CreateRouterInterfaceRequest::setName(const std::string& name)
  246. {
  247. name_ = name;
  248. setCoreParameter("Name", name);
  249. }
  250. std::string CreateRouterInterfaceRequest::getPricingCycle()const
  251. {
  252. return pricingCycle_;
  253. }
  254. void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle)
  255. {
  256. pricingCycle_ = pricingCycle;
  257. setCoreParameter("PricingCycle", pricingCycle);
  258. }