UntagResourcesRequest.cc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. UntagResourcesRequest::~UntagResourcesRequest()
  24. {}
  25. long UntagResourcesRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string UntagResourcesRequest::getAccessKeyId()const
  35. {
  36. return accessKeyId_;
  37. }
  38. void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
  39. {
  40. accessKeyId_ = accessKeyId;
  41. setParameter("AccessKeyId", accessKeyId);
  42. }
  43. std::string UntagResourcesRequest::getResourceGroupId()const
  44. {
  45. return resourceGroupId_;
  46. }
  47. void UntagResourcesRequest::setResourceGroupId(const std::string& resourceGroupId)
  48. {
  49. resourceGroupId_ = resourceGroupId;
  50. setParameter("ResourceGroupId", resourceGroupId);
  51. }
  52. std::string UntagResourcesRequest::getRegionId()const
  53. {
  54. return regionId_;
  55. }
  56. void UntagResourcesRequest::setRegionId(const std::string& regionId)
  57. {
  58. regionId_ = regionId;
  59. setParameter("RegionId", regionId);
  60. }
  61. bool UntagResourcesRequest::getAll()const
  62. {
  63. return all_;
  64. }
  65. void UntagResourcesRequest::setAll(bool all)
  66. {
  67. all_ = all;
  68. setParameter("All", all ? "true" : "false");
  69. }
  70. std::vector<std::string> UntagResourcesRequest::getResourceId()const
  71. {
  72. return resourceId_;
  73. }
  74. void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
  75. {
  76. resourceId_ = resourceId;
  77. for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
  78. setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
  79. }
  80. }
  81. std::string UntagResourcesRequest::getResourceOwnerAccount()const
  82. {
  83. return resourceOwnerAccount_;
  84. }
  85. void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  86. {
  87. resourceOwnerAccount_ = resourceOwnerAccount;
  88. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  89. }
  90. std::string UntagResourcesRequest::getOwnerAccount()const
  91. {
  92. return ownerAccount_;
  93. }
  94. void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
  95. {
  96. ownerAccount_ = ownerAccount;
  97. setParameter("OwnerAccount", ownerAccount);
  98. }
  99. long UntagResourcesRequest::getOwnerId()const
  100. {
  101. return ownerId_;
  102. }
  103. void UntagResourcesRequest::setOwnerId(long ownerId)
  104. {
  105. ownerId_ = ownerId;
  106. setParameter("OwnerId", std::to_string(ownerId));
  107. }
  108. std::string UntagResourcesRequest::getResourceType()const
  109. {
  110. return resourceType_;
  111. }
  112. void UntagResourcesRequest::setResourceType(const std::string& resourceType)
  113. {
  114. resourceType_ = resourceType;
  115. setParameter("ResourceType", resourceType);
  116. }
  117. std::vector<std::string> UntagResourcesRequest::getTagKey()const
  118. {
  119. return tagKey_;
  120. }
  121. void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
  122. {
  123. tagKey_ = tagKey;
  124. for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
  125. setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
  126. }
  127. }