TagResourcesRequest.cc 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/tag/model/TagResourcesRequest.h>
  17. using AlibabaCloud::Tag::Model::TagResourcesRequest;
  18. TagResourcesRequest::TagResourcesRequest()
  19. : RpcServiceRequest("tag", "2018-08-28", "TagResources") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. TagResourcesRequest::~TagResourcesRequest() {}
  23. std::string TagResourcesRequest::getRegionId() const {
  24. return regionId_;
  25. }
  26. void TagResourcesRequest::setRegionId(const std::string &regionId) {
  27. regionId_ = regionId;
  28. setParameter(std::string("RegionId"), regionId);
  29. }
  30. std::vector<std::string> TagResourcesRequest::getResourceARN() const {
  31. return resourceARN_;
  32. }
  33. void TagResourcesRequest::setResourceARN(const std::vector<std::string> &resourceARN) {
  34. resourceARN_ = resourceARN;
  35. }
  36. std::string TagResourcesRequest::getResourceOwnerAccount() const {
  37. return resourceOwnerAccount_;
  38. }
  39. void TagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  40. resourceOwnerAccount_ = resourceOwnerAccount;
  41. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  42. }
  43. std::string TagResourcesRequest::getOwnerAccount() const {
  44. return ownerAccount_;
  45. }
  46. void TagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) {
  47. ownerAccount_ = ownerAccount;
  48. setParameter(std::string("OwnerAccount"), ownerAccount);
  49. }
  50. long TagResourcesRequest::getOwnerId() const {
  51. return ownerId_;
  52. }
  53. void TagResourcesRequest::setOwnerId(long ownerId) {
  54. ownerId_ = ownerId;
  55. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  56. }
  57. std::string TagResourcesRequest::getTags() const {
  58. return tags_;
  59. }
  60. void TagResourcesRequest::setTags(const std::string &tags) {
  61. tags_ = tags;
  62. setParameter(std::string("Tags"), tags);
  63. }