EnrollAccountRequest.cc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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/governance/model/EnrollAccountRequest.h>
  17. using AlibabaCloud::Governance::Model::EnrollAccountRequest;
  18. EnrollAccountRequest::EnrollAccountRequest()
  19. : RpcServiceRequest("governance", "2021-01-20", "EnrollAccount") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. EnrollAccountRequest::~EnrollAccountRequest() {}
  23. std::string EnrollAccountRequest::getFolderId() const {
  24. return folderId_;
  25. }
  26. void EnrollAccountRequest::setFolderId(const std::string &folderId) {
  27. folderId_ = folderId;
  28. setParameter(std::string("FolderId"), folderId);
  29. }
  30. std::string EnrollAccountRequest::getRegionId() const {
  31. return regionId_;
  32. }
  33. void EnrollAccountRequest::setRegionId(const std::string &regionId) {
  34. regionId_ = regionId;
  35. setParameter(std::string("RegionId"), regionId);
  36. }
  37. long EnrollAccountRequest::getPayerAccountUid() const {
  38. return payerAccountUid_;
  39. }
  40. void EnrollAccountRequest::setPayerAccountUid(long payerAccountUid) {
  41. payerAccountUid_ = payerAccountUid;
  42. setParameter(std::string("PayerAccountUid"), std::to_string(payerAccountUid));
  43. }
  44. long EnrollAccountRequest::getAccountUid() const {
  45. return accountUid_;
  46. }
  47. void EnrollAccountRequest::setAccountUid(long accountUid) {
  48. accountUid_ = accountUid;
  49. setParameter(std::string("AccountUid"), std::to_string(accountUid));
  50. }
  51. std::string EnrollAccountRequest::getAccountNamePrefix() const {
  52. return accountNamePrefix_;
  53. }
  54. void EnrollAccountRequest::setAccountNamePrefix(const std::string &accountNamePrefix) {
  55. accountNamePrefix_ = accountNamePrefix;
  56. setParameter(std::string("AccountNamePrefix"), accountNamePrefix);
  57. }
  58. std::string EnrollAccountRequest::getResellAccountType() const {
  59. return resellAccountType_;
  60. }
  61. void EnrollAccountRequest::setResellAccountType(const std::string &resellAccountType) {
  62. resellAccountType_ = resellAccountType;
  63. setParameter(std::string("ResellAccountType"), resellAccountType);
  64. }
  65. std::string EnrollAccountRequest::getBaselineId() const {
  66. return baselineId_;
  67. }
  68. void EnrollAccountRequest::setBaselineId(const std::string &baselineId) {
  69. baselineId_ = baselineId;
  70. setParameter(std::string("BaselineId"), baselineId);
  71. }
  72. std::vector<EnrollAccountRequest::BaselineItems> EnrollAccountRequest::getBaselineItems() const {
  73. return baselineItems_;
  74. }
  75. void EnrollAccountRequest::setBaselineItems(const std::vector<EnrollAccountRequest::BaselineItems> &baselineItems) {
  76. baselineItems_ = baselineItems;
  77. for(int dep1 = 0; dep1 != baselineItems.size(); dep1++) {
  78. setParameter(std::string("BaselineItems") + "." + std::to_string(dep1 + 1) + ".Name", baselineItems[dep1].name);
  79. setParameter(std::string("BaselineItems") + "." + std::to_string(dep1 + 1) + ".Skip", baselineItems[dep1].skip ? "true" : "false");
  80. setParameter(std::string("BaselineItems") + "." + std::to_string(dep1 + 1) + ".Config", baselineItems[dep1].config);
  81. setParameter(std::string("BaselineItems") + "." + std::to_string(dep1 + 1) + ".Version", baselineItems[dep1].version);
  82. }
  83. }
  84. std::string EnrollAccountRequest::getDisplayName() const {
  85. return displayName_;
  86. }
  87. void EnrollAccountRequest::setDisplayName(const std::string &displayName) {
  88. displayName_ = displayName;
  89. setParameter(std::string("DisplayName"), displayName);
  90. }