CreateTenantRequest.cc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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/oceanbasepro/model/CreateTenantRequest.h>
  17. using AlibabaCloud::OceanBasePro::Model::CreateTenantRequest;
  18. CreateTenantRequest::CreateTenantRequest()
  19. : RpcServiceRequest("oceanbasepro", "2019-09-01", "CreateTenant") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateTenantRequest::~CreateTenantRequest() {}
  23. std::string CreateTenantRequest::getCharset() const {
  24. return charset_;
  25. }
  26. void CreateTenantRequest::setCharset(const std::string &charset) {
  27. charset_ = charset;
  28. setBodyParameter(std::string("Charset"), charset);
  29. }
  30. std::string CreateTenantRequest::getTenantMode() const {
  31. return tenantMode_;
  32. }
  33. void CreateTenantRequest::setTenantMode(const std::string &tenantMode) {
  34. tenantMode_ = tenantMode;
  35. setBodyParameter(std::string("TenantMode"), tenantMode);
  36. }
  37. int CreateTenantRequest::getMemory() const {
  38. return memory_;
  39. }
  40. void CreateTenantRequest::setMemory(int memory) {
  41. memory_ = memory;
  42. setBodyParameter(std::string("Memory"), std::to_string(memory));
  43. }
  44. long CreateTenantRequest::getLogDisk() const {
  45. return logDisk_;
  46. }
  47. void CreateTenantRequest::setLogDisk(long logDisk) {
  48. logDisk_ = logDisk;
  49. setBodyParameter(std::string("LogDisk"), std::to_string(logDisk));
  50. }
  51. std::string CreateTenantRequest::getTimeZone() const {
  52. return timeZone_;
  53. }
  54. void CreateTenantRequest::setTimeZone(const std::string &timeZone) {
  55. timeZone_ = timeZone;
  56. setBodyParameter(std::string("TimeZone"), timeZone);
  57. }
  58. std::string CreateTenantRequest::getDescription() const {
  59. return description_;
  60. }
  61. void CreateTenantRequest::setDescription(const std::string &description) {
  62. description_ = description;
  63. setBodyParameter(std::string("Description"), description);
  64. }
  65. std::string CreateTenantRequest::getUserVSwitchId() const {
  66. return userVSwitchId_;
  67. }
  68. void CreateTenantRequest::setUserVSwitchId(const std::string &userVSwitchId) {
  69. userVSwitchId_ = userVSwitchId;
  70. setBodyParameter(std::string("UserVSwitchId"), userVSwitchId);
  71. }
  72. std::string CreateTenantRequest::getUserVpcId() const {
  73. return userVpcId_;
  74. }
  75. void CreateTenantRequest::setUserVpcId(const std::string &userVpcId) {
  76. userVpcId_ = userVpcId;
  77. setBodyParameter(std::string("UserVpcId"), userVpcId);
  78. }
  79. int CreateTenantRequest::getCpu() const {
  80. return cpu_;
  81. }
  82. void CreateTenantRequest::setCpu(int cpu) {
  83. cpu_ = cpu;
  84. setBodyParameter(std::string("Cpu"), std::to_string(cpu));
  85. }
  86. int CreateTenantRequest::getUnitNum() const {
  87. return unitNum_;
  88. }
  89. void CreateTenantRequest::setUnitNum(int unitNum) {
  90. unitNum_ = unitNum;
  91. setBodyParameter(std::string("UnitNum"), std::to_string(unitNum));
  92. }
  93. std::string CreateTenantRequest::getInstanceId() const {
  94. return instanceId_;
  95. }
  96. void CreateTenantRequest::setInstanceId(const std::string &instanceId) {
  97. instanceId_ = instanceId;
  98. setBodyParameter(std::string("InstanceId"), instanceId);
  99. }
  100. std::string CreateTenantRequest::getPrimaryZone() const {
  101. return primaryZone_;
  102. }
  103. void CreateTenantRequest::setPrimaryZone(const std::string &primaryZone) {
  104. primaryZone_ = primaryZone;
  105. setBodyParameter(std::string("PrimaryZone"), primaryZone);
  106. }
  107. std::string CreateTenantRequest::getTenantName() const {
  108. return tenantName_;
  109. }
  110. void CreateTenantRequest::setTenantName(const std::string &tenantName) {
  111. tenantName_ = tenantName;
  112. setBodyParameter(std::string("TenantName"), tenantName);
  113. }
  114. std::string CreateTenantRequest::getReadOnlyZoneList() const {
  115. return readOnlyZoneList_;
  116. }
  117. void CreateTenantRequest::setReadOnlyZoneList(const std::string &readOnlyZoneList) {
  118. readOnlyZoneList_ = readOnlyZoneList;
  119. setBodyParameter(std::string("ReadOnlyZoneList"), readOnlyZoneList);
  120. }