AssignIpv6AddressesRequest.cc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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/ecs/model/AssignIpv6AddressesRequest.h>
  17. using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest;
  18. AssignIpv6AddressesRequest::AssignIpv6AddressesRequest()
  19. : RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest() {}
  23. long AssignIpv6AddressesRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string AssignIpv6AddressesRequest::getClientToken() const {
  31. return clientToken_;
  32. }
  33. void AssignIpv6AddressesRequest::setClientToken(const std::string &clientToken) {
  34. clientToken_ = clientToken;
  35. setParameter(std::string("ClientToken"), clientToken);
  36. }
  37. std::vector<std::string> AssignIpv6AddressesRequest::getIpv6Prefix() const {
  38. return ipv6Prefix_;
  39. }
  40. void AssignIpv6AddressesRequest::setIpv6Prefix(const std::vector<std::string> &ipv6Prefix) {
  41. ipv6Prefix_ = ipv6Prefix;
  42. }
  43. int AssignIpv6AddressesRequest::getIpv6PrefixCount() const {
  44. return ipv6PrefixCount_;
  45. }
  46. void AssignIpv6AddressesRequest::setIpv6PrefixCount(int ipv6PrefixCount) {
  47. ipv6PrefixCount_ = ipv6PrefixCount;
  48. setParameter(std::string("Ipv6PrefixCount"), std::to_string(ipv6PrefixCount));
  49. }
  50. std::string AssignIpv6AddressesRequest::getRegionId() const {
  51. return regionId_;
  52. }
  53. void AssignIpv6AddressesRequest::setRegionId(const std::string &regionId) {
  54. regionId_ = regionId;
  55. setParameter(std::string("RegionId"), regionId);
  56. }
  57. std::string AssignIpv6AddressesRequest::getResourceOwnerAccount() const {
  58. return resourceOwnerAccount_;
  59. }
  60. void AssignIpv6AddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  61. resourceOwnerAccount_ = resourceOwnerAccount;
  62. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  63. }
  64. int AssignIpv6AddressesRequest::getIpv6AddressCount() const {
  65. return ipv6AddressCount_;
  66. }
  67. void AssignIpv6AddressesRequest::setIpv6AddressCount(int ipv6AddressCount) {
  68. ipv6AddressCount_ = ipv6AddressCount;
  69. setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount));
  70. }
  71. std::string AssignIpv6AddressesRequest::getOwnerAccount() const {
  72. return ownerAccount_;
  73. }
  74. void AssignIpv6AddressesRequest::setOwnerAccount(const std::string &ownerAccount) {
  75. ownerAccount_ = ownerAccount;
  76. setParameter(std::string("OwnerAccount"), ownerAccount);
  77. }
  78. long AssignIpv6AddressesRequest::getOwnerId() const {
  79. return ownerId_;
  80. }
  81. void AssignIpv6AddressesRequest::setOwnerId(long ownerId) {
  82. ownerId_ = ownerId;
  83. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  84. }
  85. std::string AssignIpv6AddressesRequest::getNetworkInterfaceId() const {
  86. return networkInterfaceId_;
  87. }
  88. void AssignIpv6AddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
  89. networkInterfaceId_ = networkInterfaceId;
  90. setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
  91. }
  92. std::vector<std::string> AssignIpv6AddressesRequest::getIpv6Address() const {
  93. return ipv6Address_;
  94. }
  95. void AssignIpv6AddressesRequest::setIpv6Address(const std::vector<std::string> &ipv6Address) {
  96. ipv6Address_ = ipv6Address;
  97. }