UntagResourcesRequest.cc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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/dds/model/UntagResourcesRequest.h>
  17. using AlibabaCloud::Dds::Model::UntagResourcesRequest;
  18. UntagResourcesRequest::UntagResourcesRequest()
  19. : RpcServiceRequest("dds", "2015-12-01", "UntagResources") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UntagResourcesRequest::~UntagResourcesRequest() {}
  23. long UntagResourcesRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string UntagResourcesRequest::getAccessKeyId() const {
  31. return accessKeyId_;
  32. }
  33. void UntagResourcesRequest::setAccessKeyId(const std::string &accessKeyId) {
  34. accessKeyId_ = accessKeyId;
  35. setParameter(std::string("AccessKeyId"), accessKeyId);
  36. }
  37. std::string UntagResourcesRequest::getResourceGroupId() const {
  38. return resourceGroupId_;
  39. }
  40. void UntagResourcesRequest::setResourceGroupId(const std::string &resourceGroupId) {
  41. resourceGroupId_ = resourceGroupId;
  42. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  43. }
  44. std::string UntagResourcesRequest::getRegionId() const {
  45. return regionId_;
  46. }
  47. void UntagResourcesRequest::setRegionId(const std::string &regionId) {
  48. regionId_ = regionId;
  49. setParameter(std::string("RegionId"), regionId);
  50. }
  51. bool UntagResourcesRequest::getAll() const {
  52. return all_;
  53. }
  54. void UntagResourcesRequest::setAll(bool all) {
  55. all_ = all;
  56. setParameter(std::string("All"), all ? "true" : "false");
  57. }
  58. std::vector<std::string> UntagResourcesRequest::getResourceId() const {
  59. return resourceId_;
  60. }
  61. void UntagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
  62. resourceId_ = resourceId;
  63. }
  64. std::string UntagResourcesRequest::getResourceOwnerAccount() const {
  65. return resourceOwnerAccount_;
  66. }
  67. void UntagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  68. resourceOwnerAccount_ = resourceOwnerAccount;
  69. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  70. }
  71. std::string UntagResourcesRequest::getOwnerAccount() const {
  72. return ownerAccount_;
  73. }
  74. void UntagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) {
  75. ownerAccount_ = ownerAccount;
  76. setParameter(std::string("OwnerAccount"), ownerAccount);
  77. }
  78. long UntagResourcesRequest::getOwnerId() const {
  79. return ownerId_;
  80. }
  81. void UntagResourcesRequest::setOwnerId(long ownerId) {
  82. ownerId_ = ownerId;
  83. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  84. }
  85. std::string UntagResourcesRequest::getResourceType() const {
  86. return resourceType_;
  87. }
  88. void UntagResourcesRequest::setResourceType(const std::string &resourceType) {
  89. resourceType_ = resourceType;
  90. setParameter(std::string("ResourceType"), resourceType);
  91. }
  92. std::vector<std::string> UntagResourcesRequest::getTagKey() const {
  93. return tagKey_;
  94. }
  95. void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
  96. tagKey_ = tagKey;
  97. }