CreateCenRouteMapRequest.cc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  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/cbn/model/CreateCenRouteMapRequest.h>
  17. using AlibabaCloud::Cbn::Model::CreateCenRouteMapRequest;
  18. CreateCenRouteMapRequest::CreateCenRouteMapRequest() :
  19. RpcServiceRequest("cbn", "2017-09-12", "CreateCenRouteMap")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateCenRouteMapRequest::~CreateCenRouteMapRequest()
  24. {}
  25. long CreateCenRouteMapRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void CreateCenRouteMapRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string CreateCenRouteMapRequest::getCommunityMatchMode()const
  35. {
  36. return communityMatchMode_;
  37. }
  38. void CreateCenRouteMapRequest::setCommunityMatchMode(const std::string& communityMatchMode)
  39. {
  40. communityMatchMode_ = communityMatchMode;
  41. setParameter("CommunityMatchMode", communityMatchMode);
  42. }
  43. std::string CreateCenRouteMapRequest::getMapResult()const
  44. {
  45. return mapResult_;
  46. }
  47. void CreateCenRouteMapRequest::setMapResult(const std::string& mapResult)
  48. {
  49. mapResult_ = mapResult;
  50. setParameter("MapResult", mapResult);
  51. }
  52. std::vector<std::string> CreateCenRouteMapRequest::getDestinationRegionIds()const
  53. {
  54. return destinationRegionIds_;
  55. }
  56. void CreateCenRouteMapRequest::setDestinationRegionIds(const std::vector<std::string>& destinationRegionIds)
  57. {
  58. destinationRegionIds_ = destinationRegionIds;
  59. for(int dep1 = 0; dep1!= destinationRegionIds.size(); dep1++) {
  60. setParameter("DestinationRegionIds."+ std::to_string(dep1), destinationRegionIds.at(dep1));
  61. }
  62. }
  63. int CreateCenRouteMapRequest::getNextPriority()const
  64. {
  65. return nextPriority_;
  66. }
  67. void CreateCenRouteMapRequest::setNextPriority(int nextPriority)
  68. {
  69. nextPriority_ = nextPriority;
  70. setParameter("NextPriority", std::to_string(nextPriority));
  71. }
  72. std::vector<std::string> CreateCenRouteMapRequest::getDestinationCidrBlocks()const
  73. {
  74. return destinationCidrBlocks_;
  75. }
  76. void CreateCenRouteMapRequest::setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks)
  77. {
  78. destinationCidrBlocks_ = destinationCidrBlocks;
  79. for(int dep1 = 0; dep1!= destinationCidrBlocks.size(); dep1++) {
  80. setParameter("DestinationCidrBlocks."+ std::to_string(dep1), destinationCidrBlocks.at(dep1));
  81. }
  82. }
  83. bool CreateCenRouteMapRequest::getSystemPolicy()const
  84. {
  85. return systemPolicy_;
  86. }
  87. void CreateCenRouteMapRequest::setSystemPolicy(bool systemPolicy)
  88. {
  89. systemPolicy_ = systemPolicy;
  90. setParameter("SystemPolicy", systemPolicy ? "true" : "false");
  91. }
  92. std::vector<std::string> CreateCenRouteMapRequest::getOriginalRouteTableIds()const
  93. {
  94. return originalRouteTableIds_;
  95. }
  96. void CreateCenRouteMapRequest::setOriginalRouteTableIds(const std::vector<std::string>& originalRouteTableIds)
  97. {
  98. originalRouteTableIds_ = originalRouteTableIds;
  99. for(int dep1 = 0; dep1!= originalRouteTableIds.size(); dep1++) {
  100. setParameter("OriginalRouteTableIds."+ std::to_string(dep1), originalRouteTableIds.at(dep1));
  101. }
  102. }
  103. std::string CreateCenRouteMapRequest::getTransitRouterRouteTableId()const
  104. {
  105. return transitRouterRouteTableId_;
  106. }
  107. void CreateCenRouteMapRequest::setTransitRouterRouteTableId(const std::string& transitRouterRouteTableId)
  108. {
  109. transitRouterRouteTableId_ = transitRouterRouteTableId;
  110. setParameter("TransitRouterRouteTableId", transitRouterRouteTableId);
  111. }
  112. std::vector<std::string> CreateCenRouteMapRequest::getSourceInstanceIds()const
  113. {
  114. return sourceInstanceIds_;
  115. }
  116. void CreateCenRouteMapRequest::setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds)
  117. {
  118. sourceInstanceIds_ = sourceInstanceIds;
  119. for(int dep1 = 0; dep1!= sourceInstanceIds.size(); dep1++) {
  120. setParameter("SourceInstanceIds."+ std::to_string(dep1), sourceInstanceIds.at(dep1));
  121. }
  122. }
  123. std::vector<std::string> CreateCenRouteMapRequest::getSourceRegionIds()const
  124. {
  125. return sourceRegionIds_;
  126. }
  127. void CreateCenRouteMapRequest::setSourceRegionIds(const std::vector<std::string>& sourceRegionIds)
  128. {
  129. sourceRegionIds_ = sourceRegionIds;
  130. for(int dep1 = 0; dep1!= sourceRegionIds.size(); dep1++) {
  131. setParameter("SourceRegionIds."+ std::to_string(dep1), sourceRegionIds.at(dep1));
  132. }
  133. }
  134. std::string CreateCenRouteMapRequest::getGatewayZoneId()const
  135. {
  136. return gatewayZoneId_;
  137. }
  138. void CreateCenRouteMapRequest::setGatewayZoneId(const std::string& gatewayZoneId)
  139. {
  140. gatewayZoneId_ = gatewayZoneId;
  141. setParameter("GatewayZoneId", gatewayZoneId);
  142. }
  143. std::vector<long> CreateCenRouteMapRequest::getMatchAsns()const
  144. {
  145. return matchAsns_;
  146. }
  147. void CreateCenRouteMapRequest::setMatchAsns(const std::vector<long>& matchAsns)
  148. {
  149. matchAsns_ = matchAsns;
  150. for(int dep1 = 0; dep1!= matchAsns.size(); dep1++) {
  151. setParameter("MatchAsns."+ std::to_string(dep1), std::to_string(matchAsns.at(dep1)));
  152. }
  153. }
  154. int CreateCenRouteMapRequest::getPreference()const
  155. {
  156. return preference_;
  157. }
  158. void CreateCenRouteMapRequest::setPreference(int preference)
  159. {
  160. preference_ = preference;
  161. setParameter("Preference", std::to_string(preference));
  162. }
  163. long CreateCenRouteMapRequest::getOwnerId()const
  164. {
  165. return ownerId_;
  166. }
  167. void CreateCenRouteMapRequest::setOwnerId(long ownerId)
  168. {
  169. ownerId_ = ownerId;
  170. setParameter("OwnerId", std::to_string(ownerId));
  171. }
  172. int CreateCenRouteMapRequest::getPriority()const
  173. {
  174. return priority_;
  175. }
  176. void CreateCenRouteMapRequest::setPriority(int priority)
  177. {
  178. priority_ = priority;
  179. setParameter("Priority", std::to_string(priority));
  180. }
  181. std::vector<std::string> CreateCenRouteMapRequest::getDestinationChildInstanceTypes()const
  182. {
  183. return destinationChildInstanceTypes_;
  184. }
  185. void CreateCenRouteMapRequest::setDestinationChildInstanceTypes(const std::vector<std::string>& destinationChildInstanceTypes)
  186. {
  187. destinationChildInstanceTypes_ = destinationChildInstanceTypes;
  188. for(int dep1 = 0; dep1!= destinationChildInstanceTypes.size(); dep1++) {
  189. setParameter("DestinationChildInstanceTypes."+ std::to_string(dep1), destinationChildInstanceTypes.at(dep1));
  190. }
  191. }
  192. std::vector<std::string> CreateCenRouteMapRequest::getSourceRouteTableIds()const
  193. {
  194. return sourceRouteTableIds_;
  195. }
  196. void CreateCenRouteMapRequest::setSourceRouteTableIds(const std::vector<std::string>& sourceRouteTableIds)
  197. {
  198. sourceRouteTableIds_ = sourceRouteTableIds;
  199. for(int dep1 = 0; dep1!= sourceRouteTableIds.size(); dep1++) {
  200. setParameter("SourceRouteTableIds."+ std::to_string(dep1), sourceRouteTableIds.at(dep1));
  201. }
  202. }
  203. std::vector<std::string> CreateCenRouteMapRequest::getSourceChildInstanceTypes()const
  204. {
  205. return sourceChildInstanceTypes_;
  206. }
  207. void CreateCenRouteMapRequest::setSourceChildInstanceTypes(const std::vector<std::string>& sourceChildInstanceTypes)
  208. {
  209. sourceChildInstanceTypes_ = sourceChildInstanceTypes;
  210. for(int dep1 = 0; dep1!= sourceChildInstanceTypes.size(); dep1++) {
  211. setParameter("SourceChildInstanceTypes."+ std::to_string(dep1), sourceChildInstanceTypes.at(dep1));
  212. }
  213. }
  214. std::string CreateCenRouteMapRequest::getCommunityOperateMode()const
  215. {
  216. return communityOperateMode_;
  217. }
  218. void CreateCenRouteMapRequest::setCommunityOperateMode(const std::string& communityOperateMode)
  219. {
  220. communityOperateMode_ = communityOperateMode;
  221. setParameter("CommunityOperateMode", communityOperateMode);
  222. }
  223. std::vector<std::string> CreateCenRouteMapRequest::getOperateCommunitySet()const
  224. {
  225. return operateCommunitySet_;
  226. }
  227. void CreateCenRouteMapRequest::setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet)
  228. {
  229. operateCommunitySet_ = operateCommunitySet;
  230. for(int dep1 = 0; dep1!= operateCommunitySet.size(); dep1++) {
  231. setParameter("OperateCommunitySet."+ std::to_string(dep1), operateCommunitySet.at(dep1));
  232. }
  233. }
  234. std::vector<std::string> CreateCenRouteMapRequest::getRouteTypes()const
  235. {
  236. return routeTypes_;
  237. }
  238. void CreateCenRouteMapRequest::setRouteTypes(const std::vector<std::string>& routeTypes)
  239. {
  240. routeTypes_ = routeTypes;
  241. for(int dep1 = 0; dep1!= routeTypes.size(); dep1++) {
  242. setParameter("RouteTypes."+ std::to_string(dep1), routeTypes.at(dep1));
  243. }
  244. }
  245. std::string CreateCenRouteMapRequest::getMatchAddressType()const
  246. {
  247. return matchAddressType_;
  248. }
  249. void CreateCenRouteMapRequest::setMatchAddressType(const std::string& matchAddressType)
  250. {
  251. matchAddressType_ = matchAddressType;
  252. setParameter("MatchAddressType", matchAddressType);
  253. }
  254. std::string CreateCenRouteMapRequest::getCidrMatchMode()const
  255. {
  256. return cidrMatchMode_;
  257. }
  258. void CreateCenRouteMapRequest::setCidrMatchMode(const std::string& cidrMatchMode)
  259. {
  260. cidrMatchMode_ = cidrMatchMode;
  261. setParameter("CidrMatchMode", cidrMatchMode);
  262. }
  263. std::string CreateCenRouteMapRequest::getCenId()const
  264. {
  265. return cenId_;
  266. }
  267. void CreateCenRouteMapRequest::setCenId(const std::string& cenId)
  268. {
  269. cenId_ = cenId;
  270. setParameter("CenId", cenId);
  271. }
  272. std::string CreateCenRouteMapRequest::getDescription()const
  273. {
  274. return description_;
  275. }
  276. void CreateCenRouteMapRequest::setDescription(const std::string& description)
  277. {
  278. description_ = description;
  279. setParameter("Description", description);
  280. }
  281. bool CreateCenRouteMapRequest::getSourceInstanceIdsReverseMatch()const
  282. {
  283. return sourceInstanceIdsReverseMatch_;
  284. }
  285. void CreateCenRouteMapRequest::setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch)
  286. {
  287. sourceInstanceIdsReverseMatch_ = sourceInstanceIdsReverseMatch;
  288. setParameter("SourceInstanceIdsReverseMatch", sourceInstanceIdsReverseMatch ? "true" : "false");
  289. }
  290. std::vector<std::string> CreateCenRouteMapRequest::getDestinationRouteTableIds()const
  291. {
  292. return destinationRouteTableIds_;
  293. }
  294. void CreateCenRouteMapRequest::setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds)
  295. {
  296. destinationRouteTableIds_ = destinationRouteTableIds;
  297. for(int dep1 = 0; dep1!= destinationRouteTableIds.size(); dep1++) {
  298. setParameter("DestinationRouteTableIds."+ std::to_string(dep1), destinationRouteTableIds.at(dep1));
  299. }
  300. }
  301. std::vector<std::string> CreateCenRouteMapRequest::getSourceZoneIds()const
  302. {
  303. return sourceZoneIds_;
  304. }
  305. void CreateCenRouteMapRequest::setSourceZoneIds(const std::vector<std::string>& sourceZoneIds)
  306. {
  307. sourceZoneIds_ = sourceZoneIds;
  308. for(int dep1 = 0; dep1!= sourceZoneIds.size(); dep1++) {
  309. setParameter("SourceZoneIds."+ std::to_string(dep1), sourceZoneIds.at(dep1));
  310. }
  311. }
  312. std::string CreateCenRouteMapRequest::getTransmitDirection()const
  313. {
  314. return transmitDirection_;
  315. }
  316. void CreateCenRouteMapRequest::setTransmitDirection(const std::string& transmitDirection)
  317. {
  318. transmitDirection_ = transmitDirection;
  319. setParameter("TransmitDirection", transmitDirection);
  320. }
  321. std::vector<std::string> CreateCenRouteMapRequest::getDestinationInstanceIds()const
  322. {
  323. return destinationInstanceIds_;
  324. }
  325. void CreateCenRouteMapRequest::setDestinationInstanceIds(const std::vector<std::string>& destinationInstanceIds)
  326. {
  327. destinationInstanceIds_ = destinationInstanceIds;
  328. for(int dep1 = 0; dep1!= destinationInstanceIds.size(); dep1++) {
  329. setParameter("DestinationInstanceIds."+ std::to_string(dep1), destinationInstanceIds.at(dep1));
  330. }
  331. }
  332. std::string CreateCenRouteMapRequest::getResourceOwnerAccount()const
  333. {
  334. return resourceOwnerAccount_;
  335. }
  336. void CreateCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  337. {
  338. resourceOwnerAccount_ = resourceOwnerAccount;
  339. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  340. }
  341. std::string CreateCenRouteMapRequest::getOwnerAccount()const
  342. {
  343. return ownerAccount_;
  344. }
  345. void CreateCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount)
  346. {
  347. ownerAccount_ = ownerAccount;
  348. setParameter("OwnerAccount", ownerAccount);
  349. }
  350. bool CreateCenRouteMapRequest::getDestinationInstanceIdsReverseMatch()const
  351. {
  352. return destinationInstanceIdsReverseMatch_;
  353. }
  354. void CreateCenRouteMapRequest::setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch)
  355. {
  356. destinationInstanceIdsReverseMatch_ = destinationInstanceIdsReverseMatch;
  357. setParameter("DestinationInstanceIdsReverseMatch", destinationInstanceIdsReverseMatch ? "true" : "false");
  358. }
  359. std::vector<long> CreateCenRouteMapRequest::getPrependAsPath()const
  360. {
  361. return prependAsPath_;
  362. }
  363. void CreateCenRouteMapRequest::setPrependAsPath(const std::vector<long>& prependAsPath)
  364. {
  365. prependAsPath_ = prependAsPath;
  366. for(int dep1 = 0; dep1!= prependAsPath.size(); dep1++) {
  367. setParameter("PrependAsPath."+ std::to_string(dep1), std::to_string(prependAsPath.at(dep1)));
  368. }
  369. }
  370. std::string CreateCenRouteMapRequest::getAsPathMatchMode()const
  371. {
  372. return asPathMatchMode_;
  373. }
  374. void CreateCenRouteMapRequest::setAsPathMatchMode(const std::string& asPathMatchMode)
  375. {
  376. asPathMatchMode_ = asPathMatchMode;
  377. setParameter("AsPathMatchMode", asPathMatchMode);
  378. }
  379. std::vector<std::string> CreateCenRouteMapRequest::getMatchCommunitySet()const
  380. {
  381. return matchCommunitySet_;
  382. }
  383. void CreateCenRouteMapRequest::setMatchCommunitySet(const std::vector<std::string>& matchCommunitySet)
  384. {
  385. matchCommunitySet_ = matchCommunitySet;
  386. for(int dep1 = 0; dep1!= matchCommunitySet.size(); dep1++) {
  387. setParameter("MatchCommunitySet."+ std::to_string(dep1), matchCommunitySet.at(dep1));
  388. }
  389. }
  390. std::string CreateCenRouteMapRequest::getCenRegionId()const
  391. {
  392. return cenRegionId_;
  393. }
  394. void CreateCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId)
  395. {
  396. cenRegionId_ = cenRegionId;
  397. setParameter("CenRegionId", cenRegionId);
  398. }