OpenAITaskRequest.cc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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/OpenAITaskRequest.h>
  17. using AlibabaCloud::Polardb::Model::OpenAITaskRequest;
  18. OpenAITaskRequest::OpenAITaskRequest()
  19. : RpcServiceRequest("polardb", "2017-08-01", "OpenAITask") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. OpenAITaskRequest::~OpenAITaskRequest() {}
  23. long OpenAITaskRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void OpenAITaskRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string OpenAITaskRequest::getNodeType() const {
  31. return nodeType_;
  32. }
  33. void OpenAITaskRequest::setNodeType(const std::string &nodeType) {
  34. nodeType_ = nodeType;
  35. setParameter(std::string("NodeType"), nodeType);
  36. }
  37. std::string OpenAITaskRequest::getDescribeType() const {
  38. return describeType_;
  39. }
  40. void OpenAITaskRequest::setDescribeType(const std::string &describeType) {
  41. describeType_ = describeType;
  42. setParameter(std::string("DescribeType"), describeType);
  43. }
  44. std::string OpenAITaskRequest::getAccessKeyId() const {
  45. return accessKeyId_;
  46. }
  47. void OpenAITaskRequest::setAccessKeyId(const std::string &accessKeyId) {
  48. accessKeyId_ = accessKeyId;
  49. setParameter(std::string("AccessKeyId"), accessKeyId);
  50. }
  51. std::string OpenAITaskRequest::getResourceGroupId() const {
  52. return resourceGroupId_;
  53. }
  54. void OpenAITaskRequest::setResourceGroupId(const std::string &resourceGroupId) {
  55. resourceGroupId_ = resourceGroupId;
  56. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  57. }
  58. std::string OpenAITaskRequest::getPassword() const {
  59. return password_;
  60. }
  61. void OpenAITaskRequest::setPassword(const std::string &password) {
  62. password_ = password;
  63. setParameter(std::string("Password"), password);
  64. }
  65. std::string OpenAITaskRequest::getRegionId() const {
  66. return regionId_;
  67. }
  68. void OpenAITaskRequest::setRegionId(const std::string &regionId) {
  69. regionId_ = regionId;
  70. setParameter(std::string("RegionId"), regionId);
  71. }
  72. std::string OpenAITaskRequest::getResourceOwnerAccount() const {
  73. return resourceOwnerAccount_;
  74. }
  75. void OpenAITaskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  76. resourceOwnerAccount_ = resourceOwnerAccount;
  77. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  78. }
  79. std::string OpenAITaskRequest::getDBClusterId() const {
  80. return dBClusterId_;
  81. }
  82. void OpenAITaskRequest::setDBClusterId(const std::string &dBClusterId) {
  83. dBClusterId_ = dBClusterId;
  84. setParameter(std::string("DBClusterId"), dBClusterId);
  85. }
  86. std::string OpenAITaskRequest::getOwnerAccount() const {
  87. return ownerAccount_;
  88. }
  89. void OpenAITaskRequest::setOwnerAccount(const std::string &ownerAccount) {
  90. ownerAccount_ = ownerAccount;
  91. setParameter(std::string("OwnerAccount"), ownerAccount);
  92. }
  93. long OpenAITaskRequest::getOwnerId() const {
  94. return ownerId_;
  95. }
  96. void OpenAITaskRequest::setOwnerId(long ownerId) {
  97. ownerId_ = ownerId;
  98. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  99. }
  100. std::string OpenAITaskRequest::getUsername() const {
  101. return username_;
  102. }
  103. void OpenAITaskRequest::setUsername(const std::string &username) {
  104. username_ = username;
  105. setParameter(std::string("Username"), username);
  106. }