CreateDynamicRouteRequest.cc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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/csas/model/CreateDynamicRouteRequest.h>
  17. using AlibabaCloud::Csas::Model::CreateDynamicRouteRequest;
  18. CreateDynamicRouteRequest::CreateDynamicRouteRequest()
  19. : RpcServiceRequest("csas", "2023-01-20", "CreateDynamicRoute") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateDynamicRouteRequest::~CreateDynamicRouteRequest() {}
  23. std::string CreateDynamicRouteRequest::getDescription() const {
  24. return description_;
  25. }
  26. void CreateDynamicRouteRequest::setDescription(const std::string &description) {
  27. description_ = description;
  28. setBodyParameter(std::string("Description"), description);
  29. }
  30. std::string CreateDynamicRouteRequest::getSourceIp() const {
  31. return sourceIp_;
  32. }
  33. void CreateDynamicRouteRequest::setSourceIp(const std::string &sourceIp) {
  34. sourceIp_ = sourceIp;
  35. setParameter(std::string("SourceIp"), sourceIp);
  36. }
  37. std::string CreateDynamicRouteRequest::getDynamicRouteType() const {
  38. return dynamicRouteType_;
  39. }
  40. void CreateDynamicRouteRequest::setDynamicRouteType(const std::string &dynamicRouteType) {
  41. dynamicRouteType_ = dynamicRouteType;
  42. setBodyParameter(std::string("DynamicRouteType"), dynamicRouteType);
  43. }
  44. std::vector<CreateDynamicRouteRequest::std::string> CreateDynamicRouteRequest::getTagIds() const {
  45. return tagIds_;
  46. }
  47. void CreateDynamicRouteRequest::setTagIds(const std::vector<CreateDynamicRouteRequest::std::string> &tagIds) {
  48. tagIds_ = tagIds;
  49. for(int dep1 = 0; dep1 != tagIds.size(); dep1++) {
  50. setBodyParameter(std::string("TagIds") + "." + std::to_string(dep1 + 1), tagIds[dep1]);
  51. }
  52. }
  53. std::vector<CreateDynamicRouteRequest::std::string> CreateDynamicRouteRequest::getRegionIds() const {
  54. return regionIds_;
  55. }
  56. void CreateDynamicRouteRequest::setRegionIds(const std::vector<CreateDynamicRouteRequest::std::string> &regionIds) {
  57. regionIds_ = regionIds;
  58. for(int dep1 = 0; dep1 != regionIds.size(); dep1++) {
  59. setBodyParameter(std::string("RegionIds") + "." + std::to_string(dep1 + 1), regionIds[dep1]);
  60. }
  61. }
  62. int CreateDynamicRouteRequest::getPriority() const {
  63. return priority_;
  64. }
  65. void CreateDynamicRouteRequest::setPriority(int priority) {
  66. priority_ = priority;
  67. setBodyParameter(std::string("Priority"), std::to_string(priority));
  68. }
  69. std::string CreateDynamicRouteRequest::getNextHop() const {
  70. return nextHop_;
  71. }
  72. void CreateDynamicRouteRequest::setNextHop(const std::string &nextHop) {
  73. nextHop_ = nextHop;
  74. setBodyParameter(std::string("NextHop"), nextHop);
  75. }
  76. std::vector<CreateDynamicRouteRequest::std::string> CreateDynamicRouteRequest::getApplicationIds() const {
  77. return applicationIds_;
  78. }
  79. void CreateDynamicRouteRequest::setApplicationIds(const std::vector<CreateDynamicRouteRequest::std::string> &applicationIds) {
  80. applicationIds_ = applicationIds;
  81. for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
  82. setBodyParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
  83. }
  84. }
  85. std::string CreateDynamicRouteRequest::getName() const {
  86. return name_;
  87. }
  88. void CreateDynamicRouteRequest::setName(const std::string &name) {
  89. name_ = name;
  90. setBodyParameter(std::string("Name"), name);
  91. }
  92. std::string CreateDynamicRouteRequest::getApplicationType() const {
  93. return applicationType_;
  94. }
  95. void CreateDynamicRouteRequest::setApplicationType(const std::string &applicationType) {
  96. applicationType_ = applicationType;
  97. setBodyParameter(std::string("ApplicationType"), applicationType);
  98. }
  99. std::string CreateDynamicRouteRequest::getStatus() const {
  100. return status_;
  101. }
  102. void CreateDynamicRouteRequest::setStatus(const std::string &status) {
  103. status_ = status;
  104. setBodyParameter(std::string("Status"), status);
  105. }