DescribeDBInstancePromoteActivityRequest.cc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/rds/model/DescribeDBInstancePromoteActivityRequest.h>
  17. using AlibabaCloud::Rds::Model::DescribeDBInstancePromoteActivityRequest;
  18. DescribeDBInstancePromoteActivityRequest::DescribeDBInstancePromoteActivityRequest()
  19. : RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancePromoteActivity") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeDBInstancePromoteActivityRequest::~DescribeDBInstancePromoteActivityRequest() {}
  23. std::string DescribeDBInstancePromoteActivityRequest::getDbInstanceName() const {
  24. return dbInstanceName_;
  25. }
  26. void DescribeDBInstancePromoteActivityRequest::setDbInstanceName(const std::string &dbInstanceName) {
  27. dbInstanceName_ = dbInstanceName;
  28. setParameter(std::string("DbInstanceName"), dbInstanceName);
  29. }
  30. long DescribeDBInstancePromoteActivityRequest::getResourceOwnerId() const {
  31. return resourceOwnerId_;
  32. }
  33. void DescribeDBInstancePromoteActivityRequest::setResourceOwnerId(long resourceOwnerId) {
  34. resourceOwnerId_ = resourceOwnerId;
  35. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  36. }
  37. std::string DescribeDBInstancePromoteActivityRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void DescribeDBInstancePromoteActivityRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::string DescribeDBInstancePromoteActivityRequest::getResourceGroupId() const {
  45. return resourceGroupId_;
  46. }
  47. void DescribeDBInstancePromoteActivityRequest::setResourceGroupId(const std::string &resourceGroupId) {
  48. resourceGroupId_ = resourceGroupId;
  49. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  50. }
  51. std::string DescribeDBInstancePromoteActivityRequest::getAliUid() const {
  52. return aliUid_;
  53. }
  54. void DescribeDBInstancePromoteActivityRequest::setAliUid(const std::string &aliUid) {
  55. aliUid_ = aliUid;
  56. setParameter(std::string("AliUid"), aliUid);
  57. }
  58. std::string DescribeDBInstancePromoteActivityRequest::getResourceOwnerAccount() const {
  59. return resourceOwnerAccount_;
  60. }
  61. void DescribeDBInstancePromoteActivityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  62. resourceOwnerAccount_ = resourceOwnerAccount;
  63. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  64. }
  65. long DescribeDBInstancePromoteActivityRequest::getOwnerId() const {
  66. return ownerId_;
  67. }
  68. void DescribeDBInstancePromoteActivityRequest::setOwnerId(long ownerId) {
  69. ownerId_ = ownerId;
  70. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  71. }