UpdateIngressRequest.cc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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/sae/model/UpdateIngressRequest.h>
  17. using AlibabaCloud::Sae::Model::UpdateIngressRequest;
  18. UpdateIngressRequest::UpdateIngressRequest()
  19. : RoaServiceRequest("sae", "2019-05-06") {
  20. setResourcePath("/pop/v1/sam/ingress/Ingress"};
  21. setMethod(HttpRequest::Method::Put);
  22. }
  23. UpdateIngressRequest::~UpdateIngressRequest() {}
  24. long UpdateIngressRequest::getIngressId() const {
  25. return ingressId_;
  26. }
  27. void UpdateIngressRequest::setIngressId(long ingressId) {
  28. ingressId_ = ingressId;
  29. setParameter(std::string("IngressId"), std::to_string(ingressId));
  30. }
  31. std::string UpdateIngressRequest::getListenerPort() const {
  32. return listenerPort_;
  33. }
  34. void UpdateIngressRequest::setListenerPort(const std::string &listenerPort) {
  35. listenerPort_ = listenerPort;
  36. setParameter(std::string("ListenerPort"), listenerPort);
  37. }
  38. std::string UpdateIngressRequest::getDescription() const {
  39. return description_;
  40. }
  41. void UpdateIngressRequest::setDescription(const std::string &description) {
  42. description_ = description;
  43. setParameter(std::string("Description"), description);
  44. }
  45. std::string UpdateIngressRequest::getLoadBalanceType() const {
  46. return loadBalanceType_;
  47. }
  48. void UpdateIngressRequest::setLoadBalanceType(const std::string &loadBalanceType) {
  49. loadBalanceType_ = loadBalanceType;
  50. setParameter(std::string("LoadBalanceType"), loadBalanceType);
  51. }
  52. std::string UpdateIngressRequest::getRules() const {
  53. return rules_;
  54. }
  55. void UpdateIngressRequest::setRules(const std::string &rules) {
  56. rules_ = rules;
  57. setBodyParameter(std::string("Rules"), rules);
  58. }
  59. std::string UpdateIngressRequest::getCertId() const {
  60. return certId_;
  61. }
  62. void UpdateIngressRequest::setCertId(const std::string &certId) {
  63. certId_ = certId;
  64. setParameter(std::string("CertId"), certId);
  65. }
  66. std::string UpdateIngressRequest::getCertIds() const {
  67. return certIds_;
  68. }
  69. void UpdateIngressRequest::setCertIds(const std::string &certIds) {
  70. certIds_ = certIds;
  71. setParameter(std::string("CertIds"), certIds);
  72. }
  73. std::string UpdateIngressRequest::getListenerProtocol() const {
  74. return listenerProtocol_;
  75. }
  76. void UpdateIngressRequest::setListenerProtocol(const std::string &listenerProtocol) {
  77. listenerProtocol_ = listenerProtocol;
  78. setParameter(std::string("ListenerProtocol"), listenerProtocol);
  79. }
  80. std::string UpdateIngressRequest::getDefaultRule() const {
  81. return defaultRule_;
  82. }
  83. void UpdateIngressRequest::setDefaultRule(const std::string &defaultRule) {
  84. defaultRule_ = defaultRule;
  85. setParameter(std::string("DefaultRule"), defaultRule);
  86. }