DescribeInstanceAntiBruteForceRulesRequest.cc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/sas/model/DescribeInstanceAntiBruteForceRulesRequest.h>
  17. using AlibabaCloud::Sas::Model::DescribeInstanceAntiBruteForceRulesRequest;
  18. DescribeInstanceAntiBruteForceRulesRequest::DescribeInstanceAntiBruteForceRulesRequest()
  19. : RpcServiceRequest("sas", "2018-12-03", "DescribeInstanceAntiBruteForceRules") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeInstanceAntiBruteForceRulesRequest::~DescribeInstanceAntiBruteForceRulesRequest() {}
  23. long DescribeInstanceAntiBruteForceRulesRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void DescribeInstanceAntiBruteForceRulesRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. int DescribeInstanceAntiBruteForceRulesRequest::getCurrentPage() const {
  31. return currentPage_;
  32. }
  33. void DescribeInstanceAntiBruteForceRulesRequest::setCurrentPage(int currentPage) {
  34. currentPage_ = currentPage;
  35. setParameter(std::string("CurrentPage"), std::to_string(currentPage));
  36. }
  37. std::string DescribeInstanceAntiBruteForceRulesRequest::getSourceIp() const {
  38. return sourceIp_;
  39. }
  40. void DescribeInstanceAntiBruteForceRulesRequest::setSourceIp(const std::string &sourceIp) {
  41. sourceIp_ = sourceIp;
  42. setParameter(std::string("SourceIp"), sourceIp);
  43. }
  44. int DescribeInstanceAntiBruteForceRulesRequest::getPageSize() const {
  45. return pageSize_;
  46. }
  47. void DescribeInstanceAntiBruteForceRulesRequest::setPageSize(int pageSize) {
  48. pageSize_ = pageSize;
  49. setParameter(std::string("PageSize"), std::to_string(pageSize));
  50. }
  51. std::vector<std::string> DescribeInstanceAntiBruteForceRulesRequest::getUuidList() const {
  52. return uuidList_;
  53. }
  54. void DescribeInstanceAntiBruteForceRulesRequest::setUuidList(const std::vector<std::string> &uuidList) {
  55. uuidList_ = uuidList;
  56. }