ListDatabaseAccessPointRequest.cc 3.1 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/dg/model/ListDatabaseAccessPointRequest.h>
  17. using AlibabaCloud::Dg::Model::ListDatabaseAccessPointRequest;
  18. ListDatabaseAccessPointRequest::ListDatabaseAccessPointRequest() :
  19. RpcServiceRequest("dg", "2019-03-27", "ListDatabaseAccessPoint")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ListDatabaseAccessPointRequest::~ListDatabaseAccessPointRequest()
  24. {}
  25. std::string ListDatabaseAccessPointRequest::getSearchKey()const
  26. {
  27. return searchKey_;
  28. }
  29. void ListDatabaseAccessPointRequest::setSearchKey(const std::string& searchKey)
  30. {
  31. searchKey_ = searchKey;
  32. setBodyParameter("SearchKey", searchKey);
  33. }
  34. std::string ListDatabaseAccessPointRequest::getPageNumber()const
  35. {
  36. return pageNumber_;
  37. }
  38. void ListDatabaseAccessPointRequest::setPageNumber(const std::string& pageNumber)
  39. {
  40. pageNumber_ = pageNumber;
  41. setBodyParameter("PageNumber", pageNumber);
  42. }
  43. std::string ListDatabaseAccessPointRequest::getRegionId()const
  44. {
  45. return regionId_;
  46. }
  47. void ListDatabaseAccessPointRequest::setRegionId(const std::string& regionId)
  48. {
  49. regionId_ = regionId;
  50. setBodyParameter("RegionId", regionId);
  51. }
  52. std::string ListDatabaseAccessPointRequest::getPageSize()const
  53. {
  54. return pageSize_;
  55. }
  56. void ListDatabaseAccessPointRequest::setPageSize(const std::string& pageSize)
  57. {
  58. pageSize_ = pageSize;
  59. setBodyParameter("PageSize", pageSize);
  60. }
  61. std::string ListDatabaseAccessPointRequest::getHost()const
  62. {
  63. return host_;
  64. }
  65. void ListDatabaseAccessPointRequest::setHost(const std::string& host)
  66. {
  67. host_ = host;
  68. setBodyParameter("Host", host);
  69. }
  70. std::string ListDatabaseAccessPointRequest::getDbInstanceId()const
  71. {
  72. return dbInstanceId_;
  73. }
  74. void ListDatabaseAccessPointRequest::setDbInstanceId(const std::string& dbInstanceId)
  75. {
  76. dbInstanceId_ = dbInstanceId;
  77. setBodyParameter("DbInstanceId", dbInstanceId);
  78. }
  79. std::string ListDatabaseAccessPointRequest::getGatewayId()const
  80. {
  81. return gatewayId_;
  82. }
  83. void ListDatabaseAccessPointRequest::setGatewayId(const std::string& gatewayId)
  84. {
  85. gatewayId_ = gatewayId;
  86. setBodyParameter("GatewayId", gatewayId);
  87. }
  88. int ListDatabaseAccessPointRequest::getPort()const
  89. {
  90. return port_;
  91. }
  92. void ListDatabaseAccessPointRequest::setPort(int port)
  93. {
  94. port_ = port;
  95. setBodyParameter("Port", std::to_string(port));
  96. }
  97. std::string ListDatabaseAccessPointRequest::getVpcId()const
  98. {
  99. return vpcId_;
  100. }
  101. void ListDatabaseAccessPointRequest::setVpcId(const std::string& vpcId)
  102. {
  103. vpcId_ = vpcId;
  104. setBodyParameter("VpcId", vpcId);
  105. }