UntagResourcesRequest.cc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/eflo-controller/model/UntagResourcesRequest.h>
  17. using AlibabaCloud::Eflo_controller::Model::UntagResourcesRequest;
  18. UntagResourcesRequest::UntagResourcesRequest()
  19. : RpcServiceRequest("eflo-controller", "2022-12-15", "UntagResources") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UntagResourcesRequest::~UntagResourcesRequest() {}
  23. std::string UntagResourcesRequest::getRegionId() const {
  24. return regionId_;
  25. }
  26. void UntagResourcesRequest::setRegionId(const std::string &regionId) {
  27. regionId_ = regionId;
  28. setParameter(std::string("RegionId"), regionId);
  29. }
  30. bool UntagResourcesRequest::getAll() const {
  31. return all_;
  32. }
  33. void UntagResourcesRequest::setAll(bool all) {
  34. all_ = all;
  35. setParameter(std::string("All"), all ? "true" : "false");
  36. }
  37. std::vector<std::string> UntagResourcesRequest::getResourceId() const {
  38. return resourceId_;
  39. }
  40. void UntagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
  41. resourceId_ = resourceId;
  42. }
  43. std::string UntagResourcesRequest::getResourceType() const {
  44. return resourceType_;
  45. }
  46. void UntagResourcesRequest::setResourceType(const std::string &resourceType) {
  47. resourceType_ = resourceType;
  48. setParameter(std::string("ResourceType"), resourceType);
  49. }
  50. std::string UntagResourcesRequest::getService() const {
  51. return service_;
  52. }
  53. void UntagResourcesRequest::setService(const std::string &service) {
  54. service_ = service;
  55. setParameter(std::string("Service"), service);
  56. }
  57. std::vector<std::string> UntagResourcesRequest::getTagKey() const {
  58. return tagKey_;
  59. }
  60. void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
  61. tagKey_ = tagKey;
  62. }