AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
49 inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
50 inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
51 inline RevokeSecurityGroupIngressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
52 inline RevokeSecurityGroupIngressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
53 inline RevokeSecurityGroupIngressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
55
57
61 inline int GetFromPort() const{ return m_fromPort; }
62 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
63 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
64 inline RevokeSecurityGroupIngressRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
66
68
71 inline const Aws::String& GetGroupId() const{ return m_groupId; }
72 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
73 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
74 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
75 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
76 inline RevokeSecurityGroupIngressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
77 inline RevokeSecurityGroupIngressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
78 inline RevokeSecurityGroupIngressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
80
82
87 inline const Aws::String& GetGroupName() const{ return m_groupName; }
88 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
89 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
90 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
91 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
92 inline RevokeSecurityGroupIngressRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
93 inline RevokeSecurityGroupIngressRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
94 inline RevokeSecurityGroupIngressRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
96
98
102 inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
103 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
104 inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
105 inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
108 inline RevokeSecurityGroupIngressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
109 inline RevokeSecurityGroupIngressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
111
113
119 inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
120 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
121 inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
122 inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
123 inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
124 inline RevokeSecurityGroupIngressRequest& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
125 inline RevokeSecurityGroupIngressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
126 inline RevokeSecurityGroupIngressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
128
130
137 inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; }
138 inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
139 inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; }
140 inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::move(value); }
141 inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); }
146
148
151 inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; }
152 inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
153 inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; }
154 inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::move(value); }
155 inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); }
160
162
166 inline int GetToPort() const{ return m_toPort; }
167 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
168 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
169 inline RevokeSecurityGroupIngressRequest& WithToPort(int value) { SetToPort(value); return *this;}
171
173
176 inline const Aws::Vector<Aws::String>& GetSecurityGroupRuleIds() const{ return m_securityGroupRuleIds; }
177 inline bool SecurityGroupRuleIdsHasBeenSet() const { return m_securityGroupRuleIdsHasBeenSet; }
178 inline void SetSecurityGroupRuleIds(const Aws::Vector<Aws::String>& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds = value; }
179 inline void SetSecurityGroupRuleIds(Aws::Vector<Aws::String>&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds = std::move(value); }
182 inline RevokeSecurityGroupIngressRequest& AddSecurityGroupRuleIds(const Aws::String& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(value); return *this; }
183 inline RevokeSecurityGroupIngressRequest& AddSecurityGroupRuleIds(Aws::String&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(std::move(value)); return *this; }
184 inline RevokeSecurityGroupIngressRequest& AddSecurityGroupRuleIds(const char* value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(value); return *this; }
186
188
194 inline bool GetDryRun() const{ return m_dryRun; }
195 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
196 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
197 inline RevokeSecurityGroupIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
199 private:
200
201 Aws::String m_cidrIp;
202 bool m_cidrIpHasBeenSet = false;
203
204 int m_fromPort;
205 bool m_fromPortHasBeenSet = false;
206
207 Aws::String m_groupId;
208 bool m_groupIdHasBeenSet = false;
209
210 Aws::String m_groupName;
211 bool m_groupNameHasBeenSet = false;
212
213 Aws::Vector<IpPermission> m_ipPermissions;
214 bool m_ipPermissionsHasBeenSet = false;
215
216 Aws::String m_ipProtocol;
217 bool m_ipProtocolHasBeenSet = false;
218
219 Aws::String m_sourceSecurityGroupName;
220 bool m_sourceSecurityGroupNameHasBeenSet = false;
221
222 Aws::String m_sourceSecurityGroupOwnerId;
223 bool m_sourceSecurityGroupOwnerIdHasBeenSet = false;
224
225 int m_toPort;
226 bool m_toPortHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_securityGroupRuleIds;
229 bool m_securityGroupRuleIdsHasBeenSet = false;
230
231 bool m_dryRun;
232 bool m_dryRunHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace EC2
237} // namespace Aws
RevokeSecurityGroupIngressRequest & WithIpProtocol(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
RevokeSecurityGroupIngressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
RevokeSecurityGroupIngressRequest & WithSecurityGroupRuleIds(Aws::Vector< Aws::String > &&value)
RevokeSecurityGroupIngressRequest & AddSecurityGroupRuleIds(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithGroupName(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithGroupName(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithDryRun(bool value)
RevokeSecurityGroupIngressRequest & AddSecurityGroupRuleIds(const char *value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithGroupId(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
RevokeSecurityGroupIngressRequest & WithCidrIp(const char *value)
RevokeSecurityGroupIngressRequest & AddIpPermissions(IpPermission &&value)
RevokeSecurityGroupIngressRequest & WithGroupName(const char *value)
const Aws::Vector< Aws::String > & GetSecurityGroupRuleIds() const
RevokeSecurityGroupIngressRequest & WithToPort(int value)
RevokeSecurityGroupIngressRequest & WithIpProtocol(const char *value)
RevokeSecurityGroupIngressRequest & WithCidrIp(const Aws::String &value)
RevokeSecurityGroupIngressRequest & AddSecurityGroupRuleIds(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithSecurityGroupRuleIds(const Aws::Vector< Aws::String > &value)
RevokeSecurityGroupIngressRequest & AddIpPermissions(const IpPermission &value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(const char *value)
RevokeSecurityGroupIngressRequest & WithGroupId(const char *value)
void SetIpPermissions(const Aws::Vector< IpPermission > &value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(const Aws::String &value)
void SetSecurityGroupRuleIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithFromPort(int value)
RevokeSecurityGroupIngressRequest & WithIpProtocol(const Aws::String &value)
RevokeSecurityGroupIngressRequest & WithGroupId(Aws::String &&value)
RevokeSecurityGroupIngressRequest & WithSourceSecurityGroupName(const char *value)
RevokeSecurityGroupIngressRequest & WithCidrIp(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector