DescribeDeployedApisRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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/DescribeDeployedApisRequest.h>
  17. using AlibabaCloud::CloudAPI::Model::DescribeDeployedApisRequest;
  18. DescribeDeployedApisRequest::DescribeDeployedApisRequest() :
  19. RpcServiceRequest("cloudapi", "2016-07-14", "DescribeDeployedApis")
  20. {}
  21. DescribeDeployedApisRequest::~DescribeDeployedApisRequest()
  22. {}
  23. std::string DescribeDeployedApisRequest::getStageName()const
  24. {
  25. return stageName_;
  26. }
  27. void DescribeDeployedApisRequest::setStageName(const std::string& stageName)
  28. {
  29. stageName_ = stageName;
  30. setCoreParameter("StageName", stageName);
  31. }
  32. std::string DescribeDeployedApisRequest::getGroupId()const
  33. {
  34. return groupId_;
  35. }
  36. void DescribeDeployedApisRequest::setGroupId(const std::string& groupId)
  37. {
  38. groupId_ = groupId;
  39. setCoreParameter("GroupId", groupId);
  40. }
  41. bool DescribeDeployedApisRequest::getEnableTagAuth()const
  42. {
  43. return enableTagAuth_;
  44. }
  45. void DescribeDeployedApisRequest::setEnableTagAuth(bool enableTagAuth)
  46. {
  47. enableTagAuth_ = enableTagAuth;
  48. setCoreParameter("EnableTagAuth", enableTagAuth ? "true" : "false");
  49. }
  50. int DescribeDeployedApisRequest::getPageNumber()const
  51. {
  52. return pageNumber_;
  53. }
  54. void DescribeDeployedApisRequest::setPageNumber(int pageNumber)
  55. {
  56. pageNumber_ = pageNumber;
  57. setCoreParameter("PageNumber", std::to_string(pageNumber));
  58. }
  59. std::string DescribeDeployedApisRequest::getAccessKeyId()const
  60. {
  61. return accessKeyId_;
  62. }
  63. void DescribeDeployedApisRequest::setAccessKeyId(const std::string& accessKeyId)
  64. {
  65. accessKeyId_ = accessKeyId;
  66. setCoreParameter("AccessKeyId", accessKeyId);
  67. }
  68. std::string DescribeDeployedApisRequest::getApiName()const
  69. {
  70. return apiName_;
  71. }
  72. void DescribeDeployedApisRequest::setApiName(const std::string& apiName)
  73. {
  74. apiName_ = apiName;
  75. setCoreParameter("ApiName", apiName);
  76. }
  77. std::string DescribeDeployedApisRequest::getSecurityToken()const
  78. {
  79. return securityToken_;
  80. }
  81. void DescribeDeployedApisRequest::setSecurityToken(const std::string& securityToken)
  82. {
  83. securityToken_ = securityToken;
  84. setCoreParameter("SecurityToken", securityToken);
  85. }
  86. int DescribeDeployedApisRequest::getPageSize()const
  87. {
  88. return pageSize_;
  89. }
  90. void DescribeDeployedApisRequest::setPageSize(int pageSize)
  91. {
  92. pageSize_ = pageSize;
  93. setCoreParameter("PageSize", std::to_string(pageSize));
  94. }
  95. std::vector<DescribeDeployedApisRequest::Tag> DescribeDeployedApisRequest::getTag()const
  96. {
  97. return tag_;
  98. }
  99. void DescribeDeployedApisRequest::setTag(const std::vector<Tag>& tag)
  100. {
  101. tag_ = tag;
  102. int i = 0;
  103. for(int i = 0; i!= tag.size(); i++) {
  104. auto obj = tag.at(i);
  105. std::string str ="Tag."+ std::to_string(i);
  106. setCoreParameter(str + ".Value", obj.value);
  107. setCoreParameter(str + ".Key", obj.key);
  108. }
  109. }
  110. std::string DescribeDeployedApisRequest::getApiId()const
  111. {
  112. return apiId_;
  113. }
  114. void DescribeDeployedApisRequest::setApiId(const std::string& apiId)
  115. {
  116. apiId_ = apiId;
  117. setCoreParameter("ApiId", apiId);
  118. }