CreateCenRouteMapRequest.cc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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. int CreateCenRouteMapRequest::getNextPriority()const
  53. {
  54. return nextPriority_;
  55. }
  56. void CreateCenRouteMapRequest::setNextPriority(int nextPriority)
  57. {
  58. nextPriority_ = nextPriority;
  59. setParameter("NextPriority", std::to_string(nextPriority));
  60. }
  61. std::vector<std::string> CreateCenRouteMapRequest::getDestinationCidrBlocks()const
  62. {
  63. return destinationCidrBlocks_;
  64. }
  65. void CreateCenRouteMapRequest::setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks)
  66. {
  67. destinationCidrBlocks_ = destinationCidrBlocks;
  68. for(int dep1 = 0; dep1!= destinationCidrBlocks.size(); dep1++) {
  69. setParameter("DestinationCidrBlocks."+ std::to_string(dep1), destinationCidrBlocks.at(dep1));
  70. }
  71. }
  72. std::vector<std::string> CreateCenRouteMapRequest::getSourceInstanceIds()const
  73. {
  74. return sourceInstanceIds_;
  75. }
  76. void CreateCenRouteMapRequest::setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds)
  77. {
  78. sourceInstanceIds_ = sourceInstanceIds;
  79. for(int dep1 = 0; dep1!= sourceInstanceIds.size(); dep1++) {
  80. setParameter("SourceInstanceIds."+ std::to_string(dep1), sourceInstanceIds.at(dep1));
  81. }
  82. }
  83. std::vector<std::string> CreateCenRouteMapRequest::getSourceRegionIds()const
  84. {
  85. return sourceRegionIds_;
  86. }
  87. void CreateCenRouteMapRequest::setSourceRegionIds(const std::vector<std::string>& sourceRegionIds)
  88. {
  89. sourceRegionIds_ = sourceRegionIds;
  90. for(int dep1 = 0; dep1!= sourceRegionIds.size(); dep1++) {
  91. setParameter("SourceRegionIds."+ std::to_string(dep1), sourceRegionIds.at(dep1));
  92. }
  93. }
  94. std::vector<long> CreateCenRouteMapRequest::getMatchAsns()const
  95. {
  96. return matchAsns_;
  97. }
  98. void CreateCenRouteMapRequest::setMatchAsns(const std::vector<long>& matchAsns)
  99. {
  100. matchAsns_ = matchAsns;
  101. for(int dep1 = 0; dep1!= matchAsns.size(); dep1++) {
  102. setParameter("MatchAsns."+ std::to_string(dep1), std::to_string(matchAsns.at(dep1)));
  103. }
  104. }
  105. int CreateCenRouteMapRequest::getPreference()const
  106. {
  107. return preference_;
  108. }
  109. void CreateCenRouteMapRequest::setPreference(int preference)
  110. {
  111. preference_ = preference;
  112. setParameter("Preference", std::to_string(preference));
  113. }
  114. long CreateCenRouteMapRequest::getOwnerId()const
  115. {
  116. return ownerId_;
  117. }
  118. void CreateCenRouteMapRequest::setOwnerId(long ownerId)
  119. {
  120. ownerId_ = ownerId;
  121. setParameter("OwnerId", std::to_string(ownerId));
  122. }
  123. int CreateCenRouteMapRequest::getPriority()const
  124. {
  125. return priority_;
  126. }
  127. void CreateCenRouteMapRequest::setPriority(int priority)
  128. {
  129. priority_ = priority;
  130. setParameter("Priority", std::to_string(priority));
  131. }
  132. std::vector<std::string> CreateCenRouteMapRequest::getDestinationChildInstanceTypes()const
  133. {
  134. return destinationChildInstanceTypes_;
  135. }
  136. void CreateCenRouteMapRequest::setDestinationChildInstanceTypes(const std::vector<std::string>& destinationChildInstanceTypes)
  137. {
  138. destinationChildInstanceTypes_ = destinationChildInstanceTypes;
  139. for(int dep1 = 0; dep1!= destinationChildInstanceTypes.size(); dep1++) {
  140. setParameter("DestinationChildInstanceTypes."+ std::to_string(dep1), destinationChildInstanceTypes.at(dep1));
  141. }
  142. }
  143. std::vector<std::string> CreateCenRouteMapRequest::getSourceRouteTableIds()const
  144. {
  145. return sourceRouteTableIds_;
  146. }
  147. void CreateCenRouteMapRequest::setSourceRouteTableIds(const std::vector<std::string>& sourceRouteTableIds)
  148. {
  149. sourceRouteTableIds_ = sourceRouteTableIds;
  150. for(int dep1 = 0; dep1!= sourceRouteTableIds.size(); dep1++) {
  151. setParameter("SourceRouteTableIds."+ std::to_string(dep1), sourceRouteTableIds.at(dep1));
  152. }
  153. }
  154. std::vector<std::string> CreateCenRouteMapRequest::getSourceChildInstanceTypes()const
  155. {
  156. return sourceChildInstanceTypes_;
  157. }
  158. void CreateCenRouteMapRequest::setSourceChildInstanceTypes(const std::vector<std::string>& sourceChildInstanceTypes)
  159. {
  160. sourceChildInstanceTypes_ = sourceChildInstanceTypes;
  161. for(int dep1 = 0; dep1!= sourceChildInstanceTypes.size(); dep1++) {
  162. setParameter("SourceChildInstanceTypes."+ std::to_string(dep1), sourceChildInstanceTypes.at(dep1));
  163. }
  164. }
  165. std::string CreateCenRouteMapRequest::getCommunityOperateMode()const
  166. {
  167. return communityOperateMode_;
  168. }
  169. void CreateCenRouteMapRequest::setCommunityOperateMode(const std::string& communityOperateMode)
  170. {
  171. communityOperateMode_ = communityOperateMode;
  172. setParameter("CommunityOperateMode", communityOperateMode);
  173. }
  174. std::vector<std::string> CreateCenRouteMapRequest::getOperateCommunitySet()const
  175. {
  176. return operateCommunitySet_;
  177. }
  178. void CreateCenRouteMapRequest::setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet)
  179. {
  180. operateCommunitySet_ = operateCommunitySet;
  181. for(int dep1 = 0; dep1!= operateCommunitySet.size(); dep1++) {
  182. setParameter("OperateCommunitySet."+ std::to_string(dep1), operateCommunitySet.at(dep1));
  183. }
  184. }
  185. std::vector<std::string> CreateCenRouteMapRequest::getRouteTypes()const
  186. {
  187. return routeTypes_;
  188. }
  189. void CreateCenRouteMapRequest::setRouteTypes(const std::vector<std::string>& routeTypes)
  190. {
  191. routeTypes_ = routeTypes;
  192. for(int dep1 = 0; dep1!= routeTypes.size(); dep1++) {
  193. setParameter("RouteTypes."+ std::to_string(dep1), routeTypes.at(dep1));
  194. }
  195. }
  196. std::string CreateCenRouteMapRequest::getCidrMatchMode()const
  197. {
  198. return cidrMatchMode_;
  199. }
  200. void CreateCenRouteMapRequest::setCidrMatchMode(const std::string& cidrMatchMode)
  201. {
  202. cidrMatchMode_ = cidrMatchMode;
  203. setParameter("CidrMatchMode", cidrMatchMode);
  204. }
  205. std::string CreateCenRouteMapRequest::getCenId()const
  206. {
  207. return cenId_;
  208. }
  209. void CreateCenRouteMapRequest::setCenId(const std::string& cenId)
  210. {
  211. cenId_ = cenId;
  212. setParameter("CenId", cenId);
  213. }
  214. std::string CreateCenRouteMapRequest::getDescription()const
  215. {
  216. return description_;
  217. }
  218. void CreateCenRouteMapRequest::setDescription(const std::string& description)
  219. {
  220. description_ = description;
  221. setParameter("Description", description);
  222. }
  223. bool CreateCenRouteMapRequest::getSourceInstanceIdsReverseMatch()const
  224. {
  225. return sourceInstanceIdsReverseMatch_;
  226. }
  227. void CreateCenRouteMapRequest::setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch)
  228. {
  229. sourceInstanceIdsReverseMatch_ = sourceInstanceIdsReverseMatch;
  230. setParameter("SourceInstanceIdsReverseMatch", sourceInstanceIdsReverseMatch ? "true" : "false");
  231. }
  232. std::vector<std::string> CreateCenRouteMapRequest::getDestinationRouteTableIds()const
  233. {
  234. return destinationRouteTableIds_;
  235. }
  236. void CreateCenRouteMapRequest::setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds)
  237. {
  238. destinationRouteTableIds_ = destinationRouteTableIds;
  239. for(int dep1 = 0; dep1!= destinationRouteTableIds.size(); dep1++) {
  240. setParameter("DestinationRouteTableIds."+ std::to_string(dep1), destinationRouteTableIds.at(dep1));
  241. }
  242. }
  243. std::string CreateCenRouteMapRequest::getTransmitDirection()const
  244. {
  245. return transmitDirection_;
  246. }
  247. void CreateCenRouteMapRequest::setTransmitDirection(const std::string& transmitDirection)
  248. {
  249. transmitDirection_ = transmitDirection;
  250. setParameter("TransmitDirection", transmitDirection);
  251. }
  252. std::vector<std::string> CreateCenRouteMapRequest::getDestinationInstanceIds()const
  253. {
  254. return destinationInstanceIds_;
  255. }
  256. void CreateCenRouteMapRequest::setDestinationInstanceIds(const std::vector<std::string>& destinationInstanceIds)
  257. {
  258. destinationInstanceIds_ = destinationInstanceIds;
  259. for(int dep1 = 0; dep1!= destinationInstanceIds.size(); dep1++) {
  260. setParameter("DestinationInstanceIds."+ std::to_string(dep1), destinationInstanceIds.at(dep1));
  261. }
  262. }
  263. std::string CreateCenRouteMapRequest::getResourceOwnerAccount()const
  264. {
  265. return resourceOwnerAccount_;
  266. }
  267. void CreateCenRouteMapRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  268. {
  269. resourceOwnerAccount_ = resourceOwnerAccount;
  270. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  271. }
  272. std::string CreateCenRouteMapRequest::getOwnerAccount()const
  273. {
  274. return ownerAccount_;
  275. }
  276. void CreateCenRouteMapRequest::setOwnerAccount(const std::string& ownerAccount)
  277. {
  278. ownerAccount_ = ownerAccount;
  279. setParameter("OwnerAccount", ownerAccount);
  280. }
  281. bool CreateCenRouteMapRequest::getDestinationInstanceIdsReverseMatch()const
  282. {
  283. return destinationInstanceIdsReverseMatch_;
  284. }
  285. void CreateCenRouteMapRequest::setDestinationInstanceIdsReverseMatch(bool destinationInstanceIdsReverseMatch)
  286. {
  287. destinationInstanceIdsReverseMatch_ = destinationInstanceIdsReverseMatch;
  288. setParameter("DestinationInstanceIdsReverseMatch", destinationInstanceIdsReverseMatch ? "true" : "false");
  289. }
  290. std::vector<long> CreateCenRouteMapRequest::getPrependAsPath()const
  291. {
  292. return prependAsPath_;
  293. }
  294. void CreateCenRouteMapRequest::setPrependAsPath(const std::vector<long>& prependAsPath)
  295. {
  296. prependAsPath_ = prependAsPath;
  297. for(int dep1 = 0; dep1!= prependAsPath.size(); dep1++) {
  298. setParameter("PrependAsPath."+ std::to_string(dep1), std::to_string(prependAsPath.at(dep1)));
  299. }
  300. }
  301. std::string CreateCenRouteMapRequest::getAsPathMatchMode()const
  302. {
  303. return asPathMatchMode_;
  304. }
  305. void CreateCenRouteMapRequest::setAsPathMatchMode(const std::string& asPathMatchMode)
  306. {
  307. asPathMatchMode_ = asPathMatchMode;
  308. setParameter("AsPathMatchMode", asPathMatchMode);
  309. }
  310. std::vector<std::string> CreateCenRouteMapRequest::getMatchCommunitySet()const
  311. {
  312. return matchCommunitySet_;
  313. }
  314. void CreateCenRouteMapRequest::setMatchCommunitySet(const std::vector<std::string>& matchCommunitySet)
  315. {
  316. matchCommunitySet_ = matchCommunitySet;
  317. for(int dep1 = 0; dep1!= matchCommunitySet.size(); dep1++) {
  318. setParameter("MatchCommunitySet."+ std::to_string(dep1), matchCommunitySet.at(dep1));
  319. }
  320. }
  321. std::string CreateCenRouteMapRequest::getCenRegionId()const
  322. {
  323. return cenRegionId_;
  324. }
  325. void CreateCenRouteMapRequest::setCenRegionId(const std::string& cenRegionId)
  326. {
  327. cenRegionId_ = cenRegionId;
  328. setParameter("CenRegionId", cenRegionId);
  329. }