DescribeEnsEipAddressesRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/ens/model/DescribeEnsEipAddressesRequest.h>
  17. using AlibabaCloud::Ens::Model::DescribeEnsEipAddressesRequest;
  18. DescribeEnsEipAddressesRequest::DescribeEnsEipAddressesRequest()
  19. : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsEipAddresses") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeEnsEipAddressesRequest::~DescribeEnsEipAddressesRequest() {}
  23. std::string DescribeEnsEipAddressesRequest::getEipAddress() const {
  24. return eipAddress_;
  25. }
  26. void DescribeEnsEipAddressesRequest::setEipAddress(const std::string &eipAddress) {
  27. eipAddress_ = eipAddress;
  28. setParameter(std::string("EipAddress"), eipAddress);
  29. }
  30. std::string DescribeEnsEipAddressesRequest::getEnsRegionId() const {
  31. return ensRegionId_;
  32. }
  33. void DescribeEnsEipAddressesRequest::setEnsRegionId(const std::string &ensRegionId) {
  34. ensRegionId_ = ensRegionId;
  35. setParameter(std::string("EnsRegionId"), ensRegionId);
  36. }
  37. std::string DescribeEnsEipAddressesRequest::getStatus() const {
  38. return status_;
  39. }
  40. void DescribeEnsEipAddressesRequest::setStatus(const std::string &status) {
  41. status_ = status;
  42. setParameter(std::string("Status"), status);
  43. }
  44. std::string DescribeEnsEipAddressesRequest::getAllocationId() const {
  45. return allocationId_;
  46. }
  47. void DescribeEnsEipAddressesRequest::setAllocationId(const std::string &allocationId) {
  48. allocationId_ = allocationId;
  49. setParameter(std::string("AllocationId"), allocationId);
  50. }
  51. int DescribeEnsEipAddressesRequest::getPageNumber() const {
  52. return pageNumber_;
  53. }
  54. void DescribeEnsEipAddressesRequest::setPageNumber(int pageNumber) {
  55. pageNumber_ = pageNumber;
  56. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  57. }
  58. std::string DescribeEnsEipAddressesRequest::getAssociatedInstanceType() const {
  59. return associatedInstanceType_;
  60. }
  61. void DescribeEnsEipAddressesRequest::setAssociatedInstanceType(const std::string &associatedInstanceType) {
  62. associatedInstanceType_ = associatedInstanceType;
  63. setParameter(std::string("AssociatedInstanceType"), associatedInstanceType);
  64. }
  65. int DescribeEnsEipAddressesRequest::getPageSize() const {
  66. return pageSize_;
  67. }
  68. void DescribeEnsEipAddressesRequest::setPageSize(int pageSize) {
  69. pageSize_ = pageSize;
  70. setParameter(std::string("PageSize"), std::to_string(pageSize));
  71. }
  72. std::string DescribeEnsEipAddressesRequest::getAssociatedInstanceId() const {
  73. return associatedInstanceId_;
  74. }
  75. void DescribeEnsEipAddressesRequest::setAssociatedInstanceId(const std::string &associatedInstanceId) {
  76. associatedInstanceId_ = associatedInstanceId;
  77. setParameter(std::string("AssociatedInstanceId"), associatedInstanceId);
  78. }