DescribeAuditLogsRequest.cc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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/sddp/model/DescribeAuditLogsRequest.h>
  17. using AlibabaCloud::Sddp::Model::DescribeAuditLogsRequest;
  18. DescribeAuditLogsRequest::DescribeAuditLogsRequest() :
  19. RpcServiceRequest("sddp", "2019-01-03", "DescribeAuditLogs")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. DescribeAuditLogsRequest::~DescribeAuditLogsRequest()
  24. {}
  25. int DescribeAuditLogsRequest::getProductCode()const
  26. {
  27. return productCode_;
  28. }
  29. void DescribeAuditLogsRequest::setProductCode(int productCode)
  30. {
  31. productCode_ = productCode;
  32. setParameter("ProductCode", std::to_string(productCode));
  33. }
  34. long DescribeAuditLogsRequest::getProductId()const
  35. {
  36. return productId_;
  37. }
  38. void DescribeAuditLogsRequest::setProductId(long productId)
  39. {
  40. productId_ = productId;
  41. setParameter("ProductId", std::to_string(productId));
  42. }
  43. long DescribeAuditLogsRequest::getStartTime()const
  44. {
  45. return startTime_;
  46. }
  47. void DescribeAuditLogsRequest::setStartTime(long startTime)
  48. {
  49. startTime_ = startTime;
  50. setParameter("StartTime", std::to_string(startTime));
  51. }
  52. std::string DescribeAuditLogsRequest::getSourceIp()const
  53. {
  54. return sourceIp_;
  55. }
  56. void DescribeAuditLogsRequest::setSourceIp(const std::string& sourceIp)
  57. {
  58. sourceIp_ = sourceIp;
  59. setParameter("SourceIp", sourceIp);
  60. }
  61. std::string DescribeAuditLogsRequest::getClientIp()const
  62. {
  63. return clientIp_;
  64. }
  65. void DescribeAuditLogsRequest::setClientIp(const std::string& clientIp)
  66. {
  67. clientIp_ = clientIp;
  68. setParameter("ClientIp", clientIp);
  69. }
  70. int DescribeAuditLogsRequest::getPageSize()const
  71. {
  72. return pageSize_;
  73. }
  74. void DescribeAuditLogsRequest::setPageSize(int pageSize)
  75. {
  76. pageSize_ = pageSize;
  77. setParameter("PageSize", std::to_string(pageSize));
  78. }
  79. std::string DescribeAuditLogsRequest::getLang()const
  80. {
  81. return lang_;
  82. }
  83. void DescribeAuditLogsRequest::setLang(const std::string& lang)
  84. {
  85. lang_ = lang;
  86. setParameter("Lang", lang);
  87. }
  88. int DescribeAuditLogsRequest::getFeatureType()const
  89. {
  90. return featureType_;
  91. }
  92. void DescribeAuditLogsRequest::setFeatureType(int featureType)
  93. {
  94. featureType_ = featureType;
  95. setParameter("FeatureType", std::to_string(featureType));
  96. }
  97. long DescribeAuditLogsRequest::getEndTime()const
  98. {
  99. return endTime_;
  100. }
  101. void DescribeAuditLogsRequest::setEndTime(long endTime)
  102. {
  103. endTime_ = endTime;
  104. setParameter("EndTime", std::to_string(endTime));
  105. }
  106. int DescribeAuditLogsRequest::getCurrentPage()const
  107. {
  108. return currentPage_;
  109. }
  110. void DescribeAuditLogsRequest::setCurrentPage(int currentPage)
  111. {
  112. currentPage_ = currentPage;
  113. setParameter("CurrentPage", std::to_string(currentPage));
  114. }
  115. std::string DescribeAuditLogsRequest::getClientUa()const
  116. {
  117. return clientUa_;
  118. }
  119. void DescribeAuditLogsRequest::setClientUa(const std::string& clientUa)
  120. {
  121. clientUa_ = clientUa;
  122. setParameter("ClientUa", clientUa);
  123. }
  124. std::string DescribeAuditLogsRequest::getInstanceName()const
  125. {
  126. return instanceName_;
  127. }
  128. void DescribeAuditLogsRequest::setInstanceName(const std::string& instanceName)
  129. {
  130. instanceName_ = instanceName;
  131. setParameter("InstanceName", instanceName);
  132. }
  133. std::string DescribeAuditLogsRequest::getUserName()const
  134. {
  135. return userName_;
  136. }
  137. void DescribeAuditLogsRequest::setUserName(const std::string& userName)
  138. {
  139. userName_ = userName;
  140. setParameter("UserName", userName);
  141. }