UntagResourcesRequest.cc 3.0 KB

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