ListVpcEndpointServicesRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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/ListVpcEndpointServicesRequest.h>
  17. using AlibabaCloud::Privatelink::Model::ListVpcEndpointServicesRequest;
  18. ListVpcEndpointServicesRequest::ListVpcEndpointServicesRequest() :
  19. RpcServiceRequest("privatelink", "2020-04-15", "ListVpcEndpointServices")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListVpcEndpointServicesRequest::~ListVpcEndpointServicesRequest()
  24. {}
  25. std::string ListVpcEndpointServicesRequest::getServiceBusinessStatus()const
  26. {
  27. return serviceBusinessStatus_;
  28. }
  29. void ListVpcEndpointServicesRequest::setServiceBusinessStatus(const std::string& serviceBusinessStatus)
  30. {
  31. serviceBusinessStatus_ = serviceBusinessStatus;
  32. setParameter("ServiceBusinessStatus", serviceBusinessStatus);
  33. }
  34. bool ListVpcEndpointServicesRequest::getAutoAcceptEnabled()const
  35. {
  36. return autoAcceptEnabled_;
  37. }
  38. void ListVpcEndpointServicesRequest::setAutoAcceptEnabled(bool autoAcceptEnabled)
  39. {
  40. autoAcceptEnabled_ = autoAcceptEnabled;
  41. setParameter("AutoAcceptEnabled", autoAcceptEnabled ? "true" : "false");
  42. }
  43. std::string ListVpcEndpointServicesRequest::getServiceStatus()const
  44. {
  45. return serviceStatus_;
  46. }
  47. void ListVpcEndpointServicesRequest::setServiceStatus(const std::string& serviceStatus)
  48. {
  49. serviceStatus_ = serviceStatus;
  50. setParameter("ServiceStatus", serviceStatus);
  51. }
  52. std::string ListVpcEndpointServicesRequest::getRegionId()const
  53. {
  54. return regionId_;
  55. }
  56. void ListVpcEndpointServicesRequest::setRegionId(const std::string& regionId)
  57. {
  58. regionId_ = regionId;
  59. setParameter("RegionId", regionId);
  60. }
  61. std::string ListVpcEndpointServicesRequest::getNextToken()const
  62. {
  63. return nextToken_;
  64. }
  65. void ListVpcEndpointServicesRequest::setNextToken(const std::string& nextToken)
  66. {
  67. nextToken_ = nextToken;
  68. setParameter("NextToken", nextToken);
  69. }
  70. bool ListVpcEndpointServicesRequest::getZoneAffinityEnabled()const
  71. {
  72. return zoneAffinityEnabled_;
  73. }
  74. void ListVpcEndpointServicesRequest::setZoneAffinityEnabled(bool zoneAffinityEnabled)
  75. {
  76. zoneAffinityEnabled_ = zoneAffinityEnabled;
  77. setParameter("ZoneAffinityEnabled", zoneAffinityEnabled ? "true" : "false");
  78. }
  79. std::string ListVpcEndpointServicesRequest::getServiceName()const
  80. {
  81. return serviceName_;
  82. }
  83. void ListVpcEndpointServicesRequest::setServiceName(const std::string& serviceName)
  84. {
  85. serviceName_ = serviceName;
  86. setParameter("ServiceName", serviceName);
  87. }
  88. int ListVpcEndpointServicesRequest::getMaxResults()const
  89. {
  90. return maxResults_;
  91. }
  92. void ListVpcEndpointServicesRequest::setMaxResults(int maxResults)
  93. {
  94. maxResults_ = maxResults;
  95. setParameter("MaxResults", std::to_string(maxResults));
  96. }
  97. std::string ListVpcEndpointServicesRequest::getServiceId()const
  98. {
  99. return serviceId_;
  100. }
  101. void ListVpcEndpointServicesRequest::setServiceId(const std::string& serviceId)
  102. {
  103. serviceId_ = serviceId;
  104. setParameter("ServiceId", serviceId);
  105. }