AssignPrivateIpAddressRequest.cc 3.2 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/eflo/model/AssignPrivateIpAddressRequest.h>
  17. using AlibabaCloud::Eflo::Model::AssignPrivateIpAddressRequest;
  18. AssignPrivateIpAddressRequest::AssignPrivateIpAddressRequest()
  19. : RpcServiceRequest("eflo", "2022-05-30", "AssignPrivateIpAddress") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. AssignPrivateIpAddressRequest::~AssignPrivateIpAddressRequest() {}
  23. std::string AssignPrivateIpAddressRequest::getClientToken() const {
  24. return clientToken_;
  25. }
  26. void AssignPrivateIpAddressRequest::setClientToken(const std::string &clientToken) {
  27. clientToken_ = clientToken;
  28. setBodyParameter(std::string("ClientToken"), clientToken);
  29. }
  30. std::string AssignPrivateIpAddressRequest::getDescription() const {
  31. return description_;
  32. }
  33. void AssignPrivateIpAddressRequest::setDescription(const std::string &description) {
  34. description_ = description;
  35. setBodyParameter(std::string("Description"), description);
  36. }
  37. bool AssignPrivateIpAddressRequest::getAssignMac() const {
  38. return assignMac_;
  39. }
  40. void AssignPrivateIpAddressRequest::setAssignMac(bool assignMac) {
  41. assignMac_ = assignMac;
  42. setBodyParameter(std::string("AssignMac"), assignMac ? "true" : "false");
  43. }
  44. std::string AssignPrivateIpAddressRequest::getRegionId() const {
  45. return regionId_;
  46. }
  47. void AssignPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
  48. regionId_ = regionId;
  49. setBodyParameter(std::string("RegionId"), regionId);
  50. }
  51. std::string AssignPrivateIpAddressRequest::getSubnetId() const {
  52. return subnetId_;
  53. }
  54. void AssignPrivateIpAddressRequest::setSubnetId(const std::string &subnetId) {
  55. subnetId_ = subnetId;
  56. setBodyParameter(std::string("SubnetId"), subnetId);
  57. }
  58. bool AssignPrivateIpAddressRequest::getSkipConfig() const {
  59. return skipConfig_;
  60. }
  61. void AssignPrivateIpAddressRequest::setSkipConfig(bool skipConfig) {
  62. skipConfig_ = skipConfig;
  63. setBodyParameter(std::string("SkipConfig"), skipConfig ? "true" : "false");
  64. }
  65. std::string AssignPrivateIpAddressRequest::getPrivateIpAddress() const {
  66. return privateIpAddress_;
  67. }
  68. void AssignPrivateIpAddressRequest::setPrivateIpAddress(const std::string &privateIpAddress) {
  69. privateIpAddress_ = privateIpAddress;
  70. setBodyParameter(std::string("PrivateIpAddress"), privateIpAddress);
  71. }
  72. std::string AssignPrivateIpAddressRequest::getNetworkInterfaceId() const {
  73. return networkInterfaceId_;
  74. }
  75. void AssignPrivateIpAddressRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
  76. networkInterfaceId_ = networkInterfaceId;
  77. setBodyParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
  78. }