RevokeSecurityGroupRequest.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. #ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_
  17. #define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_
  18. #include <alibabacloud/ecs/EcsExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Ecs {
  25. namespace Model {
  26. class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupRequest : public RpcServiceRequest {
  27. public:
  28. struct Permissions {
  29. std::string policy;
  30. std::string priority;
  31. std::string ipProtocol;
  32. std::string sourceCidrIp;
  33. std::string ipv6SourceCidrIp;
  34. std::string sourceGroupId;
  35. std::string sourcePrefixListId;
  36. std::string portRange;
  37. std::string destCidrIp;
  38. std::string ipv6DestCidrIp;
  39. std::string sourcePortRange;
  40. std::string sourceGroupOwnerAccount;
  41. long sourceGroupOwnerId;
  42. std::string nicType;
  43. std::string description;
  44. };
  45. RevokeSecurityGroupRequest();
  46. ~RevokeSecurityGroupRequest();
  47. std::string getNicType() const;
  48. void setNicType(const std::string &nicType);
  49. long getResourceOwnerId() const;
  50. void setResourceOwnerId(long resourceOwnerId);
  51. std::string getSourcePrefixListId() const;
  52. void setSourcePrefixListId(const std::string &sourcePrefixListId);
  53. std::string getSourcePortRange() const;
  54. void setSourcePortRange(const std::string &sourcePortRange);
  55. std::string getClientToken() const;
  56. void setClientToken(const std::string &clientToken);
  57. std::string getSecurityGroupId() const;
  58. void setSecurityGroupId(const std::string &securityGroupId);
  59. std::string getDescription() const;
  60. void setDescription(const std::string &description);
  61. long getSourceGroupOwnerId() const;
  62. void setSourceGroupOwnerId(long sourceGroupOwnerId);
  63. std::string getSourceGroupOwnerAccount() const;
  64. void setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount);
  65. std::string getRegionId() const;
  66. void setRegionId(const std::string &regionId);
  67. std::vector<Permissions> getPermissions() const;
  68. void setPermissions(const std::vector<Permissions> &permissions);
  69. std::string getPolicy() const;
  70. void setPolicy(const std::string &policy);
  71. std::string getIpv6SourceCidrIp() const;
  72. void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
  73. std::string getIpv6DestCidrIp() const;
  74. void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
  75. std::string getPortRange() const;
  76. void setPortRange(const std::string &portRange);
  77. std::string getResourceOwnerAccount() const;
  78. void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
  79. std::string getIpProtocol() const;
  80. void setIpProtocol(const std::string &ipProtocol);
  81. std::string getOwnerAccount() const;
  82. void setOwnerAccount(const std::string &ownerAccount);
  83. std::string getSourceCidrIp() const;
  84. void setSourceCidrIp(const std::string &sourceCidrIp);
  85. long getOwnerId() const;
  86. void setOwnerId(long ownerId);
  87. std::string getPriority() const;
  88. void setPriority(const std::string &priority);
  89. std::string getDestCidrIp() const;
  90. void setDestCidrIp(const std::string &destCidrIp);
  91. std::string getSourceGroupId() const;
  92. void setSourceGroupId(const std::string &sourceGroupId);
  93. private:
  94. std::string nicType_;
  95. long resourceOwnerId_;
  96. std::string sourcePrefixListId_;
  97. std::string sourcePortRange_;
  98. std::string clientToken_;
  99. std::string securityGroupId_;
  100. std::string description_;
  101. long sourceGroupOwnerId_;
  102. std::string sourceGroupOwnerAccount_;
  103. std::string regionId_;
  104. std::vector<Permissions> permissions_;
  105. std::string policy_;
  106. std::string ipv6SourceCidrIp_;
  107. std::string ipv6DestCidrIp_;
  108. std::string portRange_;
  109. std::string resourceOwnerAccount_;
  110. std::string ipProtocol_;
  111. std::string ownerAccount_;
  112. std::string sourceCidrIp_;
  113. long ownerId_;
  114. std::string priority_;
  115. std::string destCidrIp_;
  116. std::string sourceGroupId_;
  117. };
  118. } // namespace Model
  119. } // namespace Ecs
  120. } // namespace AlibabaCloud
  121. #endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_