UpdateAnycastEipAddressAssociationsRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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/eipanycast/model/UpdateAnycastEipAddressAssociationsRequest.h>
  17. using AlibabaCloud::Eipanycast::Model::UpdateAnycastEipAddressAssociationsRequest;
  18. UpdateAnycastEipAddressAssociationsRequest::UpdateAnycastEipAddressAssociationsRequest() :
  19. RpcServiceRequest("eipanycast", "2020-03-09", "UpdateAnycastEipAddressAssociations")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. UpdateAnycastEipAddressAssociationsRequest::~UpdateAnycastEipAddressAssociationsRequest()
  24. {}
  25. bool UpdateAnycastEipAddressAssociationsRequest::getDryRun()const
  26. {
  27. return dryRun_;
  28. }
  29. void UpdateAnycastEipAddressAssociationsRequest::setDryRun(bool dryRun)
  30. {
  31. dryRun_ = dryRun;
  32. setParameter("DryRun", dryRun ? "true" : "false");
  33. }
  34. std::string UpdateAnycastEipAddressAssociationsRequest::getAssociationMode()const
  35. {
  36. return associationMode_;
  37. }
  38. void UpdateAnycastEipAddressAssociationsRequest::setAssociationMode(const std::string& associationMode)
  39. {
  40. associationMode_ = associationMode;
  41. setParameter("AssociationMode", associationMode);
  42. }
  43. std::string UpdateAnycastEipAddressAssociationsRequest::getClientToken()const
  44. {
  45. return clientToken_;
  46. }
  47. void UpdateAnycastEipAddressAssociationsRequest::setClientToken(const std::string& clientToken)
  48. {
  49. clientToken_ = clientToken;
  50. setParameter("ClientToken", clientToken);
  51. }
  52. Array UpdateAnycastEipAddressAssociationsRequest::getPopLocationDeleteList()const
  53. {
  54. return popLocationDeleteList_;
  55. }
  56. void UpdateAnycastEipAddressAssociationsRequest::setPopLocationDeleteList(const Array& popLocationDeleteList)
  57. {
  58. popLocationDeleteList_ = popLocationDeleteList;
  59. setParameter("PopLocationDeleteList", std::to_string(popLocationDeleteList));
  60. }
  61. std::string UpdateAnycastEipAddressAssociationsRequest::getRegionId()const
  62. {
  63. return regionId_;
  64. }
  65. void UpdateAnycastEipAddressAssociationsRequest::setRegionId(const std::string& regionId)
  66. {
  67. regionId_ = regionId;
  68. setParameter("RegionId", regionId);
  69. }
  70. std::string UpdateAnycastEipAddressAssociationsRequest::getAnycastId()const
  71. {
  72. return anycastId_;
  73. }
  74. void UpdateAnycastEipAddressAssociationsRequest::setAnycastId(const std::string& anycastId)
  75. {
  76. anycastId_ = anycastId;
  77. setParameter("AnycastId", anycastId);
  78. }
  79. Array UpdateAnycastEipAddressAssociationsRequest::getPopLocationAddList()const
  80. {
  81. return popLocationAddList_;
  82. }
  83. void UpdateAnycastEipAddressAssociationsRequest::setPopLocationAddList(const Array& popLocationAddList)
  84. {
  85. popLocationAddList_ = popLocationAddList;
  86. setParameter("PopLocationAddList", std::to_string(popLocationAddList));
  87. }
  88. std::string UpdateAnycastEipAddressAssociationsRequest::getBindInstanceId()const
  89. {
  90. return bindInstanceId_;
  91. }
  92. void UpdateAnycastEipAddressAssociationsRequest::setBindInstanceId(const std::string& bindInstanceId)
  93. {
  94. bindInstanceId_ = bindInstanceId;
  95. setParameter("BindInstanceId", bindInstanceId);
  96. }