ModifyAccountRelationRequest.cc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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/bssopenapi/model/ModifyAccountRelationRequest.h>
  17. using AlibabaCloud::BssOpenApi::Model::ModifyAccountRelationRequest;
  18. ModifyAccountRelationRequest::ModifyAccountRelationRequest()
  19. : RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyAccountRelation") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ModifyAccountRelationRequest::~ModifyAccountRelationRequest() {}
  23. std::string ModifyAccountRelationRequest::getChildNick() const {
  24. return childNick_;
  25. }
  26. void ModifyAccountRelationRequest::setChildNick(const std::string &childNick) {
  27. childNick_ = childNick;
  28. setParameter(std::string("ChildNick"), childNick);
  29. }
  30. long ModifyAccountRelationRequest::getParentUserId() const {
  31. return parentUserId_;
  32. }
  33. void ModifyAccountRelationRequest::setParentUserId(long parentUserId) {
  34. parentUserId_ = parentUserId;
  35. setParameter(std::string("ParentUserId"), std::to_string(parentUserId));
  36. }
  37. long ModifyAccountRelationRequest::getRelationId() const {
  38. return relationId_;
  39. }
  40. void ModifyAccountRelationRequest::setRelationId(long relationId) {
  41. relationId_ = relationId;
  42. setParameter(std::string("RelationId"), std::to_string(relationId));
  43. }
  44. std::vector<std::string> ModifyAccountRelationRequest::getRoleCodes() const {
  45. return roleCodes_;
  46. }
  47. void ModifyAccountRelationRequest::setRoleCodes(const std::vector<std::string> &roleCodes) {
  48. roleCodes_ = roleCodes;
  49. }
  50. std::string ModifyAccountRelationRequest::getRelationOperation() const {
  51. return relationOperation_;
  52. }
  53. void ModifyAccountRelationRequest::setRelationOperation(const std::string &relationOperation) {
  54. relationOperation_ = relationOperation;
  55. setParameter(std::string("RelationOperation"), relationOperation);
  56. }
  57. std::string ModifyAccountRelationRequest::getRelationType() const {
  58. return relationType_;
  59. }
  60. void ModifyAccountRelationRequest::setRelationType(const std::string &relationType) {
  61. relationType_ = relationType;
  62. setParameter(std::string("RelationType"), relationType);
  63. }
  64. long ModifyAccountRelationRequest::getChildUserId() const {
  65. return childUserId_;
  66. }
  67. void ModifyAccountRelationRequest::setChildUserId(long childUserId) {
  68. childUserId_ = childUserId;
  69. setParameter(std::string("ChildUserId"), std::to_string(childUserId));
  70. }
  71. std::string ModifyAccountRelationRequest::getRequestId() const {
  72. return requestId_;
  73. }
  74. void ModifyAccountRelationRequest::setRequestId(const std::string &requestId) {
  75. requestId_ = requestId;
  76. setParameter(std::string("RequestId"), requestId);
  77. }
  78. std::vector<std::string> ModifyAccountRelationRequest::getPermissionCodes() const {
  79. return permissionCodes_;
  80. }
  81. void ModifyAccountRelationRequest::setPermissionCodes(const std::vector<std::string> &permissionCodes) {
  82. permissionCodes_ = permissionCodes;
  83. }