AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RevokeSecurityGroupIngressRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/IpPermission.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API RevokeSecurityGroupIngressRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RevokeSecurityGroupIngress"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::String& GetCidrIp() const { return m_cidrIp; }
47 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
48 template<typename CidrIpT = Aws::String>
49 void SetCidrIp(CidrIpT&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::forward<CidrIpT>(value); }
50 template<typename CidrIpT = Aws::String>
51 RevokeSecurityGroupIngressRequest& WithCidrIp(CidrIpT&& value) { SetCidrIp(std::forward<CidrIpT>(value)); return *this;}
53
55
59 inline int GetFromPort() const { return m_fromPort; }
60 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
61 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
62 inline RevokeSecurityGroupIngressRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
64
66
69 inline const Aws::String& GetGroupId() const { return m_groupId; }
70 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
71 template<typename GroupIdT = Aws::String>
72 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
73 template<typename GroupIdT = Aws::String>
74 RevokeSecurityGroupIngressRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
76
78
83 inline const Aws::String& GetGroupName() const { return m_groupName; }
84 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
85 template<typename GroupNameT = Aws::String>
86 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
87 template<typename GroupNameT = Aws::String>
88 RevokeSecurityGroupIngressRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
90
92
96 inline const Aws::Vector<IpPermission>& GetIpPermissions() const { return m_ipPermissions; }
97 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
98 template<typename IpPermissionsT = Aws::Vector<IpPermission>>
99 void SetIpPermissions(IpPermissionsT&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::forward<IpPermissionsT>(value); }
100 template<typename IpPermissionsT = Aws::Vector<IpPermission>>
101 RevokeSecurityGroupIngressRequest& WithIpPermissions(IpPermissionsT&& value) { SetIpPermissions(std::forward<IpPermissionsT>(value)); return *this;}
102 template<typename IpPermissionsT = IpPermission>
103 RevokeSecurityGroupIngressRequest& AddIpPermissions(IpPermissionsT&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value)); return *this; }
105
107
113 inline const Aws::String& GetIpProtocol() const { return m_ipProtocol; }
114 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
115 template<typename IpProtocolT = Aws::String>
116 void SetIpProtocol(IpProtocolT&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::forward<IpProtocolT>(value); }
117 template<typename IpProtocolT = Aws::String>
118 RevokeSecurityGroupIngressRequest& WithIpProtocol(IpProtocolT&& value) { SetIpProtocol(std::forward<IpProtocolT>(value)); return *this;}
120
122
129 inline const Aws::String& GetSourceSecurityGroupName() const { return m_sourceSecurityGroupName; }
130 inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
131 template<typename SourceSecurityGroupNameT = Aws::String>
132 void SetSourceSecurityGroupName(SourceSecurityGroupNameT&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::forward<SourceSecurityGroupNameT>(value); }
133 template<typename SourceSecurityGroupNameT = Aws::String>
134 RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupName(SourceSecurityGroupNameT&& value) { SetSourceSecurityGroupName(std::forward<SourceSecurityGroupNameT>(value)); return *this;}
136
138
141 inline const Aws::String& GetSourceSecurityGroupOwnerId() const { return m_sourceSecurityGroupOwnerId; }
142 inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
143 template<typename SourceSecurityGroupOwnerIdT = Aws::String>
144 void SetSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::forward<SourceSecurityGroupOwnerIdT>(value); }
145 template<typename SourceSecurityGroupOwnerIdT = Aws::String>
146 RevokeSecurityGroupIngressRequest& WithSourceSecurityGroupOwnerId(SourceSecurityGroupOwnerIdT&& value) { SetSourceSecurityGroupOwnerId(std::forward<SourceSecurityGroupOwnerIdT>(value)); return *this;}
148
150
154 inline int GetToPort() const { return m_toPort; }
155 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
156 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
157 inline RevokeSecurityGroupIngressRequest& WithToPort(int value) { SetToPort(value); return *this;}
159
161
164 inline const Aws::Vector<Aws::String>& GetSecurityGroupRuleIds() const { return m_securityGroupRuleIds; }
165 inline bool SecurityGroupRuleIdsHasBeenSet() const { return m_securityGroupRuleIdsHasBeenSet; }
166 template<typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
167 void SetSecurityGroupRuleIds(SecurityGroupRuleIdsT&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds = std::forward<SecurityGroupRuleIdsT>(value); }
168 template<typename SecurityGroupRuleIdsT = Aws::Vector<Aws::String>>
169 RevokeSecurityGroupIngressRequest& WithSecurityGroupRuleIds(SecurityGroupRuleIdsT&& value) { SetSecurityGroupRuleIds(std::forward<SecurityGroupRuleIdsT>(value)); return *this;}
170 template<typename SecurityGroupRuleIdsT = Aws::String>
171 RevokeSecurityGroupIngressRequest& AddSecurityGroupRuleIds(SecurityGroupRuleIdsT&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.emplace_back(std::forward<SecurityGroupRuleIdsT>(value)); return *this; }
173
175
181 inline bool GetDryRun() const { return m_dryRun; }
182 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
183 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
184 inline RevokeSecurityGroupIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
186 private:
187
188 Aws::String m_cidrIp;
189 bool m_cidrIpHasBeenSet = false;
190
191 int m_fromPort{0};
192 bool m_fromPortHasBeenSet = false;
193
194 Aws::String m_groupId;
195 bool m_groupIdHasBeenSet = false;
196
197 Aws::String m_groupName;
198 bool m_groupNameHasBeenSet = false;
199
200 Aws::Vector<IpPermission> m_ipPermissions;
201 bool m_ipPermissionsHasBeenSet = false;
202
203 Aws::String m_ipProtocol;
204 bool m_ipProtocolHasBeenSet = false;
205
206 Aws::String m_sourceSecurityGroupName;
207 bool m_sourceSecurityGroupNameHasBeenSet = false;
208
209 Aws::String m_sourceSecurityGroupOwnerId;
210 bool m_sourceSecurityGroupOwnerIdHasBeenSet = false;
211
212 int m_toPort{0};
213 bool m_toPortHasBeenSet = false;
214
215 Aws::Vector<Aws::String> m_securityGroupRuleIds;
216 bool m_securityGroupRuleIdsHasBeenSet = false;
217
218 bool m_dryRun{false};
219 bool m_dryRunHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace EC2
224} // 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)
const Aws::Vector< IpPermission > & GetIpPermissions() const
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(SourceSecurityGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector