DescribeFlowlogsRequest.cc 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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/cbn/model/DescribeFlowlogsRequest.h>
  17. using AlibabaCloud::Cbn::Model::DescribeFlowlogsRequest;
  18. DescribeFlowlogsRequest::DescribeFlowlogsRequest()
  19. : RpcServiceRequest("cbn", "2017-09-12", "DescribeFlowlogs") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeFlowlogsRequest::~DescribeFlowlogsRequest() {}
  23. long DescribeFlowlogsRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void DescribeFlowlogsRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string DescribeFlowlogsRequest::getClientToken() const {
  31. return clientToken_;
  32. }
  33. void DescribeFlowlogsRequest::setClientToken(const std::string &clientToken) {
  34. clientToken_ = clientToken;
  35. setParameter(std::string("ClientToken"), clientToken);
  36. }
  37. std::string DescribeFlowlogsRequest::getCenId() const {
  38. return cenId_;
  39. }
  40. void DescribeFlowlogsRequest::setCenId(const std::string &cenId) {
  41. cenId_ = cenId;
  42. setParameter(std::string("CenId"), cenId);
  43. }
  44. std::string DescribeFlowlogsRequest::getDescription() const {
  45. return description_;
  46. }
  47. void DescribeFlowlogsRequest::setDescription(const std::string &description) {
  48. description_ = description;
  49. setParameter(std::string("Description"), description);
  50. }
  51. int DescribeFlowlogsRequest::getPageNumber() const {
  52. return pageNumber_;
  53. }
  54. void DescribeFlowlogsRequest::setPageNumber(int pageNumber) {
  55. pageNumber_ = pageNumber;
  56. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  57. }
  58. std::string DescribeFlowlogsRequest::getRegionId() const {
  59. return regionId_;
  60. }
  61. void DescribeFlowlogsRequest::setRegionId(const std::string &regionId) {
  62. regionId_ = regionId;
  63. setParameter(std::string("RegionId"), regionId);
  64. }
  65. int DescribeFlowlogsRequest::getPageSize() const {
  66. return pageSize_;
  67. }
  68. void DescribeFlowlogsRequest::setPageSize(int pageSize) {
  69. pageSize_ = pageSize;
  70. setParameter(std::string("PageSize"), std::to_string(pageSize));
  71. }
  72. std::vector<DescribeFlowlogsRequest::Tag> DescribeFlowlogsRequest::getTag() const {
  73. return tag_;
  74. }
  75. void DescribeFlowlogsRequest::setTag(const std::vector<DescribeFlowlogsRequest::Tag> &tag) {
  76. tag_ = tag;
  77. for(int dep1 = 0; dep1 != tag.size(); dep1++) {
  78. auto tagObj = tag.at(dep1);
  79. std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
  80. setParameter(tagObjStr + ".Value", tagObj.value);
  81. setParameter(tagObjStr + ".Key", tagObj.key);
  82. }
  83. }
  84. std::string DescribeFlowlogsRequest::getProjectName() const {
  85. return projectName_;
  86. }
  87. void DescribeFlowlogsRequest::setProjectName(const std::string &projectName) {
  88. projectName_ = projectName;
  89. setParameter(std::string("ProjectName"), projectName);
  90. }
  91. std::string DescribeFlowlogsRequest::getLogStoreName() const {
  92. return logStoreName_;
  93. }
  94. void DescribeFlowlogsRequest::setLogStoreName(const std::string &logStoreName) {
  95. logStoreName_ = logStoreName;
  96. setParameter(std::string("LogStoreName"), logStoreName);
  97. }
  98. std::string DescribeFlowlogsRequest::getResourceOwnerAccount() const {
  99. return resourceOwnerAccount_;
  100. }
  101. void DescribeFlowlogsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  102. resourceOwnerAccount_ = resourceOwnerAccount;
  103. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  104. }
  105. std::string DescribeFlowlogsRequest::getOwnerAccount() const {
  106. return ownerAccount_;
  107. }
  108. void DescribeFlowlogsRequest::setOwnerAccount(const std::string &ownerAccount) {
  109. ownerAccount_ = ownerAccount;
  110. setParameter(std::string("OwnerAccount"), ownerAccount);
  111. }
  112. long DescribeFlowlogsRequest::getOwnerId() const {
  113. return ownerId_;
  114. }
  115. void DescribeFlowlogsRequest::setOwnerId(long ownerId) {
  116. ownerId_ = ownerId;
  117. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  118. }
  119. std::string DescribeFlowlogsRequest::getTransitRouterAttachmentId() const {
  120. return transitRouterAttachmentId_;
  121. }
  122. void DescribeFlowlogsRequest::setTransitRouterAttachmentId(const std::string &transitRouterAttachmentId) {
  123. transitRouterAttachmentId_ = transitRouterAttachmentId;
  124. setParameter(std::string("TransitRouterAttachmentId"), transitRouterAttachmentId);
  125. }
  126. std::string DescribeFlowlogsRequest::getFlowLogId() const {
  127. return flowLogId_;
  128. }
  129. void DescribeFlowlogsRequest::setFlowLogId(const std::string &flowLogId) {
  130. flowLogId_ = flowLogId;
  131. setParameter(std::string("FlowLogId"), flowLogId);
  132. }
  133. std::string DescribeFlowlogsRequest::getFlowLogName() const {
  134. return flowLogName_;
  135. }
  136. void DescribeFlowlogsRequest::setFlowLogName(const std::string &flowLogName) {
  137. flowLogName_ = flowLogName;
  138. setParameter(std::string("FlowLogName"), flowLogName);
  139. }
  140. std::string DescribeFlowlogsRequest::getStatus() const {
  141. return status_;
  142. }
  143. void DescribeFlowlogsRequest::setStatus(const std::string &status) {
  144. status_ = status;
  145. setParameter(std::string("Status"), status);
  146. }