AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RevokeSecurityGroupIngressRequest.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 RevokeSecurityGroupIngressRequest() = 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 "RevokeSecurityGroupIngress"; }
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
42 inline const Aws::String& GetCidrIp() const { return m_cidrIp; }
43 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
44 template <typename CidrIpT = Aws::String>
45 void SetCidrIp(CidrIpT&& value) {
46 m_cidrIpHasBeenSet = true;
47 m_cidrIp = std::forward<CidrIpT>(value);
48 }
49 template <typename CidrIpT = Aws::String>
51 SetCidrIp(std::forward<CidrIpT>(value));
52 return *this;
53 }
55
57
61 inline int GetFromPort() const { return m_fromPort; }
62 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
63 inline void SetFromPort(int value) {
64 m_fromPortHasBeenSet = true;
65 m_fromPort = value;
66 }
68 SetFromPort(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetGroupId() const { return m_groupId; }
78 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
79 template <typename GroupIdT = Aws::String>
80 void SetGroupId(GroupIdT&& value) {
81 m_groupIdHasBeenSet = true;
82 m_groupId = std::forward<GroupIdT>(value);
83 }
84 template <typename GroupIdT = Aws::String>
86 SetGroupId(std::forward<GroupIdT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetGroupName() const { return m_groupName; }
98 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
99 template <typename GroupNameT = Aws::String>
100 void SetGroupName(GroupNameT&& value) {
101 m_groupNameHasBeenSet = true;
102 m_groupName = std::forward<GroupNameT>(value);
103 }
104 template <typename GroupNameT = Aws::String>
106 SetGroupName(std::forward<GroupNameT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Vector<IpPermission>& GetIpPermissions() const { return m_ipPermissions; }
117 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
118 template <typename IpPermissionsT = Aws::Vector<IpPermission>>
119 void SetIpPermissions(IpPermissionsT&& value) {
120 m_ipPermissionsHasBeenSet = true;
121 m_ipPermissions = std::forward<IpPermissionsT>(value);
122 }
123 template <typename IpPermissionsT = Aws::Vector<IpPermission>>
125 SetIpPermissions(std::forward<IpPermissionsT>(value));
126 return *this;
127 }
128 template <typename IpPermissionsT = IpPermission>
130 m_ipPermissionsHasBeenSet = true;
131 m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value));
132 return *this;
133 }
135
137
143 inline const Aws::String& GetIpProtocol() const { return m_ipProtocol; }
144 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
145 template <typename IpProtocolT = Aws::String>
146 void SetIpProtocol(IpProtocolT&& value) {
147 m_ipProtocolHasBeenSet = true;
148 m_ipProtocol = std::forward<IpProtocolT>(value);
149 }
150 template <typename IpProtocolT = Aws::String>
152 SetIpProtocol(std::forward<IpProtocolT>(value));
153 return *this;
154 }
156
158
165 inline const Aws::String& GetSourceSecurityGroupName() const { return m_sourceSecurityGroupName; }
166 inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
167 template <typename SourceSecurityGroupNameT = Aws::String>
168 void SetSourceSecurityGroupName(SourceSecurityGroupNameT&& value) {
169 m_sourceSecurityGroupNameHasBeenSet = true;
170 m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value);
171 }
172 template <typename SourceSecurityGroupNameT = Aws::String>
174 SetSourceSecurityGroupName(std::forward<SourceSecurityGroupNameT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetSourceSecurityGroupOwnerId() const { return m_sourceSecurityGroupOwnerId; }
184 inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
185 template <typename SourceSecurityGroupOwnerIdT = Aws::String>
186 void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT&& value) {
187 m_sourceSecurityGroupOwnerIdHasBeenSet = true;
188 m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value);
189 }
190 template <typename SourceSecurityGroupOwnerIdT = Aws::String>
192 SetSourceSecurityGroupOwnerId(std::forward<SourceSecurityGroupOwnerIdT>(value));
193 return *this;
194 }
196
198
202 inline int GetToPort() const { return m_toPort; }
203 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
204 inline void SetToPort(int value) {
205 m_toPortHasBeenSet = true;
206 m_toPort = value;
207 }
209 SetToPort(value);
210 return *this;
211 }
213
215
218 inline const Aws::Vector<Aws::String>& GetSecurityGroupRuleIds() const { return m_securityGroupRuleIds; }
219 inline bool SecurityGroupRuleIdsHasBeenSet() const { return m_securityGroupRuleIdsHasBeenSet; }
220 template <typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
221 void SetSecurityGroupRuleIds(SecurityGroupRuleIdsT&& value) {
222 m_securityGroupRuleIdsHasBeenSet = true;
223 m_securityGroupRuleIds = std::forward<SecurityGroupRuleIdsT>(value);
224 }
225 template <typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
227 SetSecurityGroupRuleIds(std::forward<SecurityGroupRuleIdsT>(value));
228 return *this;
229 }
230 template <typename SecurityGroupRuleIdsT = Aws::String>
232 m_securityGroupRuleIdsHasBeenSet = true;
233 m_securityGroupRuleIds.emplace_back(std::forward<SecurityGroupRuleIdsT>(value));
234 return *this;
235 }
237
239
245 inline bool GetDryRun() const { return m_dryRun; }
246 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
247 inline void SetDryRun(bool value) {
248 m_dryRunHasBeenSet = true;
249 m_dryRun = value;
250 }
252 SetDryRun(value);
253 return *this;
254 }
256 private:
257 Aws::String m_cidrIp;
258
259 int m_fromPort{0};
260
261 Aws::String m_groupId;
262
263 Aws::String m_groupName;
264
265 Aws::Vector<IpPermission> m_ipPermissions;
266
267 Aws::String m_ipProtocol;
268
269 Aws::String m_sourceSecurityGroupName;
270
271 Aws::String m_sourceSecurityGroupOwnerId;
272
273 int m_toPort{0};
274
275 Aws::Vector<Aws::String> m_securityGroupRuleIds;
276
277 bool m_dryRun{false};
278 bool m_cidrIpHasBeenSet = false;
279 bool m_fromPortHasBeenSet = false;
280 bool m_groupIdHasBeenSet = false;
281 bool m_groupNameHasBeenSet = false;
282 bool m_ipPermissionsHasBeenSet = false;
283 bool m_ipProtocolHasBeenSet = false;
284 bool m_sourceSecurityGroupNameHasBeenSet = false;
285 bool m_sourceSecurityGroupOwnerIdHasBeenSet = false;
286 bool m_toPortHasBeenSet = false;
287 bool m_securityGroupRuleIdsHasBeenSet = false;
288 bool m_dryRunHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace EC2
293} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
RevokeSecurityGroupIngressRequest & WithGroupId(GroupIdT &&value)
RevokeSecurityGroupIngressRequest & WithDryRun(bool value)
RevokeSecurityGroupIngressRequest & AddSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
RevokeSecurityGroupIngressRequest & WithSecurityGroupRuleIds(SecurityGroupRuleIdsT &&value)
RevokeSecurityGroupIngressRequest & WithGroupName(GroupNameT &&value)
void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT &&value)
RevokeSecurityGroupIngressRequest & AddIpPermissions(IpPermissionsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupRuleIds() const
RevokeSecurityGroupIngressRequest & WithToPort(int value)
RevokeSecurityGroupIngressRequest & WithIpPermissions(IpPermissionsT &&value)
RevokeSecurityGroupIngressRequest & WithCidrIp(CidrIpT &&value)
RevokeSecurityGroupIngressRequest & WithIpProtocol(IpProtocolT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RevokeSecurityGroupIngressRequest & WithFromPort(int value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector