CreateDBClusterEndpointRequest.cc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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/polardb/model/CreateDBClusterEndpointRequest.h>
  17. using AlibabaCloud::Polardb::Model::CreateDBClusterEndpointRequest;
  18. CreateDBClusterEndpointRequest::CreateDBClusterEndpointRequest() :
  19. RpcServiceRequest("polardb", "2017-08-01", "CreateDBClusterEndpoint")
  20. {}
  21. CreateDBClusterEndpointRequest::~CreateDBClusterEndpointRequest()
  22. {}
  23. std::string CreateDBClusterEndpointRequest::getAutoAddNewNodes()const
  24. {
  25. return autoAddNewNodes_;
  26. }
  27. void CreateDBClusterEndpointRequest::setAutoAddNewNodes(const std::string& autoAddNewNodes)
  28. {
  29. autoAddNewNodes_ = autoAddNewNodes;
  30. setCoreParameter("AutoAddNewNodes", autoAddNewNodes);
  31. }
  32. long CreateDBClusterEndpointRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void CreateDBClusterEndpointRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. std::string CreateDBClusterEndpointRequest::getClientToken()const
  42. {
  43. return clientToken_;
  44. }
  45. void CreateDBClusterEndpointRequest::setClientToken(const std::string& clientToken)
  46. {
  47. clientToken_ = clientToken;
  48. setCoreParameter("ClientToken", clientToken);
  49. }
  50. std::string CreateDBClusterEndpointRequest::getAccessKeyId()const
  51. {
  52. return accessKeyId_;
  53. }
  54. void CreateDBClusterEndpointRequest::setAccessKeyId(const std::string& accessKeyId)
  55. {
  56. accessKeyId_ = accessKeyId;
  57. setCoreParameter("AccessKeyId", accessKeyId);
  58. }
  59. std::string CreateDBClusterEndpointRequest::getReadWriteMode()const
  60. {
  61. return readWriteMode_;
  62. }
  63. void CreateDBClusterEndpointRequest::setReadWriteMode(const std::string& readWriteMode)
  64. {
  65. readWriteMode_ = readWriteMode;
  66. setCoreParameter("ReadWriteMode", readWriteMode);
  67. }
  68. std::string CreateDBClusterEndpointRequest::getEndpointType()const
  69. {
  70. return endpointType_;
  71. }
  72. void CreateDBClusterEndpointRequest::setEndpointType(const std::string& endpointType)
  73. {
  74. endpointType_ = endpointType;
  75. setCoreParameter("EndpointType", endpointType);
  76. }
  77. std::string CreateDBClusterEndpointRequest::getResourceOwnerAccount()const
  78. {
  79. return resourceOwnerAccount_;
  80. }
  81. void CreateDBClusterEndpointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  82. {
  83. resourceOwnerAccount_ = resourceOwnerAccount;
  84. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  85. }
  86. std::string CreateDBClusterEndpointRequest::getDBClusterId()const
  87. {
  88. return dBClusterId_;
  89. }
  90. void CreateDBClusterEndpointRequest::setDBClusterId(const std::string& dBClusterId)
  91. {
  92. dBClusterId_ = dBClusterId;
  93. setCoreParameter("DBClusterId", dBClusterId);
  94. }
  95. std::string CreateDBClusterEndpointRequest::getOwnerAccount()const
  96. {
  97. return ownerAccount_;
  98. }
  99. void CreateDBClusterEndpointRequest::setOwnerAccount(const std::string& ownerAccount)
  100. {
  101. ownerAccount_ = ownerAccount;
  102. setCoreParameter("OwnerAccount", ownerAccount);
  103. }
  104. std::string CreateDBClusterEndpointRequest::getEndpointConfig()const
  105. {
  106. return endpointConfig_;
  107. }
  108. void CreateDBClusterEndpointRequest::setEndpointConfig(const std::string& endpointConfig)
  109. {
  110. endpointConfig_ = endpointConfig;
  111. setCoreParameter("EndpointConfig", endpointConfig);
  112. }
  113. long CreateDBClusterEndpointRequest::getOwnerId()const
  114. {
  115. return ownerId_;
  116. }
  117. void CreateDBClusterEndpointRequest::setOwnerId(long ownerId)
  118. {
  119. ownerId_ = ownerId;
  120. setCoreParameter("OwnerId", std::to_string(ownerId));
  121. }
  122. std::string CreateDBClusterEndpointRequest::getNodes()const
  123. {
  124. return nodes_;
  125. }
  126. void CreateDBClusterEndpointRequest::setNodes(const std::string& nodes)
  127. {
  128. nodes_ = nodes;
  129. setCoreParameter("Nodes", nodes);
  130. }