CreateAppInfoRequest.cc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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/vod/model/CreateAppInfoRequest.h>
  17. using AlibabaCloud::Vod::Model::CreateAppInfoRequest;
  18. CreateAppInfoRequest::CreateAppInfoRequest()
  19. : RpcServiceRequest("vod", "2017-03-21", "CreateAppInfo") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateAppInfoRequest::~CreateAppInfoRequest() {}
  23. std::string CreateAppInfoRequest::getDescription() const {
  24. return description_;
  25. }
  26. void CreateAppInfoRequest::setDescription(const std::string &description) {
  27. description_ = description;
  28. setParameter(std::string("Description"), description);
  29. }
  30. long CreateAppInfoRequest::getResourceRealOwnerId() const {
  31. return resourceRealOwnerId_;
  32. }
  33. void CreateAppInfoRequest::setResourceRealOwnerId(long resourceRealOwnerId) {
  34. resourceRealOwnerId_ = resourceRealOwnerId;
  35. setParameter(std::string("ResourceRealOwnerId"), std::to_string(resourceRealOwnerId));
  36. }
  37. std::string CreateAppInfoRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void CreateAppInfoRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::string CreateAppInfoRequest::getResourceGroupId() const {
  45. return resourceGroupId_;
  46. }
  47. void CreateAppInfoRequest::setResourceGroupId(const std::string &resourceGroupId) {
  48. resourceGroupId_ = resourceGroupId;
  49. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  50. }
  51. std::string CreateAppInfoRequest::getAppName() const {
  52. return appName_;
  53. }
  54. void CreateAppInfoRequest::setAppName(const std::string &appName) {
  55. appName_ = appName;
  56. setParameter(std::string("AppName"), appName);
  57. }
  58. CreateAppInfoRequest::Tag CreateAppInfoRequest::getTag() const {
  59. return tag_;
  60. }
  61. void CreateAppInfoRequest::setTag(const CreateAppInfoRequest::Tag &tag) {
  62. tag_ = tag;
  63. setParameter(std::string("Tag") + ".Value", tag.value);
  64. setParameter(std::string("Tag") + ".Key", tag.key);
  65. }