CreateRouterInterfaceRequest.cc 7.9 KB

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