UntagResourcesRequest.cc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/cloudapi/model/UntagResourcesRequest.h>
  17. using AlibabaCloud::CloudAPI::Model::UntagResourcesRequest;
  18. UntagResourcesRequest::UntagResourcesRequest() :
  19. RpcServiceRequest("cloudapi", "2016-07-14", "UntagResources")
  20. {}
  21. UntagResourcesRequest::~UntagResourcesRequest()
  22. {}
  23. bool UntagResourcesRequest::getAll()const
  24. {
  25. return all_;
  26. }
  27. void UntagResourcesRequest::setAll(bool all)
  28. {
  29. all_ = all;
  30. setCoreParameter("All", all ? "true" : "false");
  31. }
  32. std::vector<std::string> UntagResourcesRequest::getResourceId()const
  33. {
  34. return resourceId_;
  35. }
  36. void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
  37. {
  38. resourceId_ = resourceId;
  39. for(int i = 0; i!= resourceId.size(); i++)
  40. setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
  41. }
  42. std::string UntagResourcesRequest::getResourceType()const
  43. {
  44. return resourceType_;
  45. }
  46. void UntagResourcesRequest::setResourceType(const std::string& resourceType)
  47. {
  48. resourceType_ = resourceType;
  49. setCoreParameter("ResourceType", resourceType);
  50. }
  51. std::string UntagResourcesRequest::getAccessKeyId()const
  52. {
  53. return accessKeyId_;
  54. }
  55. void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
  56. {
  57. accessKeyId_ = accessKeyId;
  58. setCoreParameter("AccessKeyId", accessKeyId);
  59. }
  60. std::string UntagResourcesRequest::getSecurityToken()const
  61. {
  62. return securityToken_;
  63. }
  64. void UntagResourcesRequest::setSecurityToken(const std::string& securityToken)
  65. {
  66. securityToken_ = securityToken;
  67. setCoreParameter("SecurityToken", securityToken);
  68. }
  69. std::vector<std::string> UntagResourcesRequest::getTagKey()const
  70. {
  71. return tagKey_;
  72. }
  73. void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
  74. {
  75. tagKey_ = tagKey;
  76. for(int i = 0; i!= tagKey.size(); i++)
  77. setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i));
  78. }