UntagResourcesRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/alidns/model/UntagResourcesRequest.h>
  17. using AlibabaCloud::Alidns::Model::UntagResourcesRequest;
  18. UntagResourcesRequest::UntagResourcesRequest() :
  19. RpcServiceRequest("alidns", "2015-01-09", "UntagResources")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. UntagResourcesRequest::~UntagResourcesRequest()
  24. {}
  25. bool UntagResourcesRequest::getAll()const
  26. {
  27. return all_;
  28. }
  29. void UntagResourcesRequest::setAll(bool all)
  30. {
  31. all_ = all;
  32. setParameter("All", all ? "true" : "false");
  33. }
  34. std::vector<std::string> UntagResourcesRequest::getResourceId()const
  35. {
  36. return resourceId_;
  37. }
  38. void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
  39. {
  40. resourceId_ = resourceId;
  41. for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
  42. setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
  43. }
  44. }
  45. std::string UntagResourcesRequest::getResourceType()const
  46. {
  47. return resourceType_;
  48. }
  49. void UntagResourcesRequest::setResourceType(const std::string& resourceType)
  50. {
  51. resourceType_ = resourceType;
  52. setParameter("ResourceType", resourceType);
  53. }
  54. std::string UntagResourcesRequest::getUserClientIp()const
  55. {
  56. return userClientIp_;
  57. }
  58. void UntagResourcesRequest::setUserClientIp(const std::string& userClientIp)
  59. {
  60. userClientIp_ = userClientIp;
  61. setParameter("UserClientIp", userClientIp);
  62. }
  63. std::string UntagResourcesRequest::getLang()const
  64. {
  65. return lang_;
  66. }
  67. void UntagResourcesRequest::setLang(const std::string& lang)
  68. {
  69. lang_ = lang;
  70. setParameter("Lang", lang);
  71. }
  72. std::vector<std::string> UntagResourcesRequest::getTagKey()const
  73. {
  74. return tagKey_;
  75. }
  76. void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
  77. {
  78. tagKey_ = tagKey;
  79. for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
  80. setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
  81. }
  82. }