AuthorizeSecurityGroupEgressRequest.cc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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/ens/model/AuthorizeSecurityGroupEgressRequest.h>
  17. using AlibabaCloud::Ens::Model::AuthorizeSecurityGroupEgressRequest;
  18. AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest()
  19. : RpcServiceRequest("ens", "2017-11-10", "AuthorizeSecurityGroupEgress") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() {}
  23. std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange() const {
  24. return sourcePortRange_;
  25. }
  26. void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string &sourcePortRange) {
  27. sourcePortRange_ = sourcePortRange;
  28. setParameter(std::string("SourcePortRange"), sourcePortRange);
  29. }
  30. std::string AuthorizeSecurityGroupEgressRequest::getPortRange() const {
  31. return portRange_;
  32. }
  33. void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string &portRange) {
  34. portRange_ = portRange;
  35. setParameter(std::string("PortRange"), portRange);
  36. }
  37. std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol() const {
  38. return ipProtocol_;
  39. }
  40. void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string &ipProtocol) {
  41. ipProtocol_ = ipProtocol;
  42. setParameter(std::string("IpProtocol"), ipProtocol);
  43. }
  44. int AuthorizeSecurityGroupEgressRequest::getPriority() const {
  45. return priority_;
  46. }
  47. void AuthorizeSecurityGroupEgressRequest::setPriority(int priority) {
  48. priority_ = priority;
  49. setParameter(std::string("Priority"), std::to_string(priority));
  50. }
  51. std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp() const {
  52. return destCidrIp_;
  53. }
  54. void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string &destCidrIp) {
  55. destCidrIp_ = destCidrIp;
  56. setParameter(std::string("DestCidrIp"), destCidrIp);
  57. }
  58. std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId() const {
  59. return securityGroupId_;
  60. }
  61. void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string &securityGroupId) {
  62. securityGroupId_ = securityGroupId;
  63. setParameter(std::string("SecurityGroupId"), securityGroupId);
  64. }
  65. std::string AuthorizeSecurityGroupEgressRequest::getPolicy() const {
  66. return policy_;
  67. }
  68. void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string &policy) {
  69. policy_ = policy;
  70. setParameter(std::string("Policy"), policy);
  71. }