AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RevokeSecurityGroupEgressRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpPermission.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API RevokeSecurityGroupEgressRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "RevokeSecurityGroupEgress"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::Vector<Aws::String>& GetSecurityGroupRuleIds() const { return m_securityGroupRuleIds; }
42 inline bool SecurityGroupRuleIdsHasBeenSet() const { return m_securityGroupRuleIdsHasBeenSet; }
43 template <typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
44 void SetSecurityGroupRuleIds(SecurityGroupRuleIdsT&& value) {
45 m_securityGroupRuleIdsHasBeenSet = true;
46 m_securityGroupRuleIds = std::forward<SecurityGroupRuleIdsT>(value);
47 }
48 template <typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
50 SetSecurityGroupRuleIds(std::forward<SecurityGroupRuleIdsT>(value));
51 return *this;
52 }
53 template <typename SecurityGroupRuleIdsT = Aws::String>
55 m_securityGroupRuleIdsHasBeenSet = true;
56 m_securityGroupRuleIds.emplace_back(std::forward<SecurityGroupRuleIdsT>(value));
57 return *this;
58 }
60
62
68 inline bool GetDryRun() const { return m_dryRun; }
69 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
70 inline void SetDryRun(bool value) {
71 m_dryRunHasBeenSet = true;
72 m_dryRun = value;
73 }
75 SetDryRun(value);
76 return *this;
77 }
79
81
84 inline const Aws::String& GetGroupId() const { return m_groupId; }
85 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
86 template <typename GroupIdT = Aws::String>
87 void SetGroupId(GroupIdT&& value) {
88 m_groupIdHasBeenSet = true;
89 m_groupId = std::forward<GroupIdT>(value);
90 }
91 template <typename GroupIdT = Aws::String>
93 SetGroupId(std::forward<GroupIdT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetSourceSecurityGroupName() const { return m_sourceSecurityGroupName; }
104 inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
105 template <typename SourceSecurityGroupNameT = Aws::String>
106 void SetSourceSecurityGroupName(SourceSecurityGroupNameT&& value) {
107 m_sourceSecurityGroupNameHasBeenSet = true;
108 m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value);
109 }
110 template <typename SourceSecurityGroupNameT = Aws::String>
112 SetSourceSecurityGroupName(std::forward<SourceSecurityGroupNameT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetSourceSecurityGroupOwnerId() const { return m_sourceSecurityGroupOwnerId; }
123 inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
124 template <typename SourceSecurityGroupOwnerIdT = Aws::String>
125 void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT&& value) {
126 m_sourceSecurityGroupOwnerIdHasBeenSet = true;
127 m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value);
128 }
129 template <typename SourceSecurityGroupOwnerIdT = Aws::String>
131 SetSourceSecurityGroupOwnerId(std::forward<SourceSecurityGroupOwnerIdT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetIpProtocol() const { return m_ipProtocol; }
142 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
143 template <typename IpProtocolT = Aws::String>
144 void SetIpProtocol(IpProtocolT&& value) {
145 m_ipProtocolHasBeenSet = true;
146 m_ipProtocol = std::forward<IpProtocolT>(value);
147 }
148 template <typename IpProtocolT = Aws::String>
150 SetIpProtocol(std::forward<IpProtocolT>(value));
151 return *this;
152 }
154
156
159 inline int GetFromPort() const { return m_fromPort; }
160 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
161 inline void SetFromPort(int value) {
162 m_fromPortHasBeenSet = true;
163 m_fromPort = value;
164 }
166 SetFromPort(value);
167 return *this;
168 }
170
172
175 inline int GetToPort() const { return m_toPort; }
176 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
177 inline void SetToPort(int value) {
178 m_toPortHasBeenSet = true;
179 m_toPort = value;
180 }
182 SetToPort(value);
183 return *this;
184 }
186
188
191 inline const Aws::String& GetCidrIp() const { return m_cidrIp; }
192 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
193 template <typename CidrIpT = Aws::String>
194 void SetCidrIp(CidrIpT&& value) {
195 m_cidrIpHasBeenSet = true;
196 m_cidrIp = std::forward<CidrIpT>(value);
197 }
198 template <typename CidrIpT = Aws::String>
200 SetCidrIp(std::forward<CidrIpT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::Vector<IpPermission>& GetIpPermissions() const { return m_ipPermissions; }
211 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
212 template <typename IpPermissionsT = Aws::Vector<IpPermission>>
213 void SetIpPermissions(IpPermissionsT&& value) {
214 m_ipPermissionsHasBeenSet = true;
215 m_ipPermissions = std::forward<IpPermissionsT>(value);
216 }
217 template <typename IpPermissionsT = Aws::Vector<IpPermission>>
219 SetIpPermissions(std::forward<IpPermissionsT>(value));
220 return *this;
221 }
222 template <typename IpPermissionsT = IpPermission>
224 m_ipPermissionsHasBeenSet = true;
225 m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value));
226 return *this;
227 }
229 private:
230 Aws::Vector<Aws::String> m_securityGroupRuleIds;
231
232 bool m_dryRun{false};
233
234 Aws::String m_groupId;
235
236 Aws::String m_sourceSecurityGroupName;
237
238 Aws::String m_sourceSecurityGroupOwnerId;
239
240 Aws::String m_ipProtocol;
241
242 int m_fromPort{0};
243
244 int m_toPort{0};
245
246 Aws::String m_cidrIp;
247
248 Aws::Vector<IpPermission> m_ipPermissions;
249 bool m_securityGroupRuleIdsHasBeenSet = false;
250 bool m_dryRunHasBeenSet = false;
251 bool m_groupIdHasBeenSet = false;
252 bool m_sourceSecurityGroupNameHasBeenSet = false;
253 bool m_sourceSecurityGroupOwnerIdHasBeenSet = false;
254 bool m_ipProtocolHasBeenSet = false;
255 bool m_fromPortHasBeenSet = false;
256 bool m_toPortHasBeenSet = false;
257 bool m_cidrIpHasBeenSet = false;
258 bool m_ipPermissionsHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace EC2
263} // namespace Aws
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
RevokeSecurityGroupEgressRequest & WithIpPermissions(IpPermissionsT &&value)
RevokeSecurityGroupEgressRequest & WithToPort(int value)
const Aws::Vector< IpPermission > & GetIpPermissions() const
RevokeSecurityGroupEgressRequest & WithIpProtocol(IpProtocolT &&value)
RevokeSecurityGroupEgressRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
RevokeSecurityGroupEgressRequest & WithFromPort(int value)
const Aws::Vector< Aws::String > & GetSecurityGroupRuleIds() const
RevokeSecurityGroupEgressRequest & AddIpPermissions(IpPermissionsT &&value)
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
RevokeSecurityGroupEgressRequest & AddSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
RevokeSecurityGroupEgressRequest & WithCidrIp(CidrIpT &&value)
RevokeSecurityGroupEgressRequest & WithGroupId(GroupIdT &&value)
RevokeSecurityGroupEgressRequest & WithSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector