UnTagResourcesRequest.cc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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/ehpc/model/UnTagResourcesRequest.h>
  17. using AlibabaCloud::EHPC::Model::UnTagResourcesRequest;
  18. UnTagResourcesRequest::UnTagResourcesRequest()
  19. : RpcServiceRequest("ehpc", "2018-04-12", "UnTagResources") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UnTagResourcesRequest::~UnTagResourcesRequest() {}
  23. bool UnTagResourcesRequest::getAll() const {
  24. return all_;
  25. }
  26. void UnTagResourcesRequest::setAll(bool all) {
  27. all_ = all;
  28. setParameter(std::string("All"), all ? "true" : "false");
  29. }
  30. std::vector<std::string> UnTagResourcesRequest::getResourceId() const {
  31. return resourceId_;
  32. }
  33. void UnTagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
  34. resourceId_ = resourceId;
  35. }
  36. std::string UnTagResourcesRequest::getResourceType() const {
  37. return resourceType_;
  38. }
  39. void UnTagResourcesRequest::setResourceType(const std::string &resourceType) {
  40. resourceType_ = resourceType;
  41. setParameter(std::string("ResourceType"), resourceType);
  42. }
  43. std::string UnTagResourcesRequest::getRegionId() const {
  44. return regionId_;
  45. }
  46. void UnTagResourcesRequest::setRegionId(const std::string &regionId) {
  47. regionId_ = regionId;
  48. setParameter(std::string("RegionId"), regionId);
  49. }
  50. std::vector<std::string> UnTagResourcesRequest::getTagKey() const {
  51. return tagKey_;
  52. }
  53. void UnTagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
  54. tagKey_ = tagKey;
  55. }