UpdateVpcEndpointServiceAttributeRequest.cc 4.3 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/privatelink/model/UpdateVpcEndpointServiceAttributeRequest.h>
  17. using AlibabaCloud::Privatelink::Model::UpdateVpcEndpointServiceAttributeRequest;
  18. UpdateVpcEndpointServiceAttributeRequest::UpdateVpcEndpointServiceAttributeRequest()
  19. : RpcServiceRequest("privatelink", "2020-04-15", "UpdateVpcEndpointServiceAttribute") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UpdateVpcEndpointServiceAttributeRequest::~UpdateVpcEndpointServiceAttributeRequest() {}
  23. bool UpdateVpcEndpointServiceAttributeRequest::getPrivateServiceDomainEnabled() const {
  24. return privateServiceDomainEnabled_;
  25. }
  26. void UpdateVpcEndpointServiceAttributeRequest::setPrivateServiceDomainEnabled(bool privateServiceDomainEnabled) {
  27. privateServiceDomainEnabled_ = privateServiceDomainEnabled;
  28. setParameter(std::string("PrivateServiceDomainEnabled"), privateServiceDomainEnabled ? "true" : "false");
  29. }
  30. std::string UpdateVpcEndpointServiceAttributeRequest::getPrivateServiceDomain() const {
  31. return privateServiceDomain_;
  32. }
  33. void UpdateVpcEndpointServiceAttributeRequest::setPrivateServiceDomain(const std::string &privateServiceDomain) {
  34. privateServiceDomain_ = privateServiceDomain;
  35. setParameter(std::string("PrivateServiceDomain"), privateServiceDomain);
  36. }
  37. bool UpdateVpcEndpointServiceAttributeRequest::getAutoAcceptEnabled() const {
  38. return autoAcceptEnabled_;
  39. }
  40. void UpdateVpcEndpointServiceAttributeRequest::setAutoAcceptEnabled(bool autoAcceptEnabled) {
  41. autoAcceptEnabled_ = autoAcceptEnabled;
  42. setParameter(std::string("AutoAcceptEnabled"), autoAcceptEnabled ? "true" : "false");
  43. }
  44. std::string UpdateVpcEndpointServiceAttributeRequest::getClientToken() const {
  45. return clientToken_;
  46. }
  47. void UpdateVpcEndpointServiceAttributeRequest::setClientToken(const std::string &clientToken) {
  48. clientToken_ = clientToken;
  49. setParameter(std::string("ClientToken"), clientToken);
  50. }
  51. int UpdateVpcEndpointServiceAttributeRequest::getConnectBandwidth() const {
  52. return connectBandwidth_;
  53. }
  54. void UpdateVpcEndpointServiceAttributeRequest::setConnectBandwidth(int connectBandwidth) {
  55. connectBandwidth_ = connectBandwidth;
  56. setParameter(std::string("ConnectBandwidth"), std::to_string(connectBandwidth));
  57. }
  58. std::string UpdateVpcEndpointServiceAttributeRequest::getRegionId() const {
  59. return regionId_;
  60. }
  61. void UpdateVpcEndpointServiceAttributeRequest::setRegionId(const std::string &regionId) {
  62. regionId_ = regionId;
  63. setParameter(std::string("RegionId"), regionId);
  64. }
  65. bool UpdateVpcEndpointServiceAttributeRequest::getZoneAffinityEnabled() const {
  66. return zoneAffinityEnabled_;
  67. }
  68. void UpdateVpcEndpointServiceAttributeRequest::setZoneAffinityEnabled(bool zoneAffinityEnabled) {
  69. zoneAffinityEnabled_ = zoneAffinityEnabled;
  70. setParameter(std::string("ZoneAffinityEnabled"), zoneAffinityEnabled ? "true" : "false");
  71. }
  72. bool UpdateVpcEndpointServiceAttributeRequest::getDryRun() const {
  73. return dryRun_;
  74. }
  75. void UpdateVpcEndpointServiceAttributeRequest::setDryRun(bool dryRun) {
  76. dryRun_ = dryRun;
  77. setParameter(std::string("DryRun"), dryRun ? "true" : "false");
  78. }
  79. std::string UpdateVpcEndpointServiceAttributeRequest::getServiceDescription() const {
  80. return serviceDescription_;
  81. }
  82. void UpdateVpcEndpointServiceAttributeRequest::setServiceDescription(const std::string &serviceDescription) {
  83. serviceDescription_ = serviceDescription;
  84. setParameter(std::string("ServiceDescription"), serviceDescription);
  85. }
  86. std::string UpdateVpcEndpointServiceAttributeRequest::getServiceId() const {
  87. return serviceId_;
  88. }
  89. void UpdateVpcEndpointServiceAttributeRequest::setServiceId(const std::string &serviceId) {
  90. serviceId_ = serviceId;
  91. setParameter(std::string("ServiceId"), serviceId);
  92. }