ListPrivateAccessApplicationsRequest.cc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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/csas/model/ListPrivateAccessApplicationsRequest.h>
  17. using AlibabaCloud::Csas::Model::ListPrivateAccessApplicationsRequest;
  18. ListPrivateAccessApplicationsRequest::ListPrivateAccessApplicationsRequest()
  19. : RpcServiceRequest("csas", "2023-01-20", "ListPrivateAccessApplications") {
  20. setMethod(HttpRequest::Method::Get);
  21. }
  22. ListPrivateAccessApplicationsRequest::~ListPrivateAccessApplicationsRequest() {}
  23. std::string ListPrivateAccessApplicationsRequest::getSourceIp() const {
  24. return sourceIp_;
  25. }
  26. void ListPrivateAccessApplicationsRequest::setSourceIp(const std::string &sourceIp) {
  27. sourceIp_ = sourceIp;
  28. setParameter(std::string("SourceIp"), sourceIp);
  29. }
  30. std::string ListPrivateAccessApplicationsRequest::getPolicyId() const {
  31. return policyId_;
  32. }
  33. void ListPrivateAccessApplicationsRequest::setPolicyId(const std::string &policyId) {
  34. policyId_ = policyId;
  35. setParameter(std::string("PolicyId"), policyId);
  36. }
  37. int ListPrivateAccessApplicationsRequest::getPageSize() const {
  38. return pageSize_;
  39. }
  40. void ListPrivateAccessApplicationsRequest::setPageSize(int pageSize) {
  41. pageSize_ = pageSize;
  42. setParameter(std::string("PageSize"), std::to_string(pageSize));
  43. }
  44. std::string ListPrivateAccessApplicationsRequest::getAddress() const {
  45. return address_;
  46. }
  47. void ListPrivateAccessApplicationsRequest::setAddress(const std::string &address) {
  48. address_ = address;
  49. setParameter(std::string("Address"), address);
  50. }
  51. std::string ListPrivateAccessApplicationsRequest::getTagId() const {
  52. return tagId_;
  53. }
  54. void ListPrivateAccessApplicationsRequest::setTagId(const std::string &tagId) {
  55. tagId_ = tagId;
  56. setParameter(std::string("TagId"), tagId);
  57. }
  58. std::string ListPrivateAccessApplicationsRequest::getConnectorId() const {
  59. return connectorId_;
  60. }
  61. void ListPrivateAccessApplicationsRequest::setConnectorId(const std::string &connectorId) {
  62. connectorId_ = connectorId;
  63. setParameter(std::string("ConnectorId"), connectorId);
  64. }
  65. int ListPrivateAccessApplicationsRequest::getCurrentPage() const {
  66. return currentPage_;
  67. }
  68. void ListPrivateAccessApplicationsRequest::setCurrentPage(int currentPage) {
  69. currentPage_ = currentPage;
  70. setParameter(std::string("CurrentPage"), std::to_string(currentPage));
  71. }
  72. std::vector<ListPrivateAccessApplicationsRequest::std::string> ListPrivateAccessApplicationsRequest::getApplicationIds() const {
  73. return applicationIds_;
  74. }
  75. void ListPrivateAccessApplicationsRequest::setApplicationIds(const std::vector<ListPrivateAccessApplicationsRequest::std::string> &applicationIds) {
  76. applicationIds_ = applicationIds;
  77. for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
  78. setParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
  79. }
  80. }
  81. std::string ListPrivateAccessApplicationsRequest::getName() const {
  82. return name_;
  83. }
  84. void ListPrivateAccessApplicationsRequest::setName(const std::string &name) {
  85. name_ = name;
  86. setParameter(std::string("Name"), name);
  87. }
  88. std::string ListPrivateAccessApplicationsRequest::getStatus() const {
  89. return status_;
  90. }
  91. void ListPrivateAccessApplicationsRequest::setStatus(const std::string &status) {
  92. status_ = status;
  93. setParameter(std::string("Status"), status);
  94. }