AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RevokeSecurityGroupEgressRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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 "RevokeSecurityGroupEgress"; }
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
45 inline const Aws::Vector<Aws::String>& GetSecurityGroupRuleIds() const{ return m_securityGroupRuleIds; }
46 inline bool SecurityGroupRuleIdsHasBeenSet() const { return m_securityGroupRuleIdsHasBeenSet; }
47 inline void SetSecurityGroupRuleIds(const Aws::Vector<Aws::String>& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds = value; }
48 inline void SetSecurityGroupRuleIds(Aws::Vector<Aws::String>&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds = std::move(value); }
51 inline RevokeSecurityGroupEgressRequest& AddSecurityGroupRuleIds(const Aws::String& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(value); return *this; }
52 inline RevokeSecurityGroupEgressRequest& AddSecurityGroupRuleIds(Aws::String&& value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(std::move(value)); return *this; }
53 inline RevokeSecurityGroupEgressRequest& AddSecurityGroupRuleIds(const char* value) { m_securityGroupRuleIdsHasBeenSet = true; m_securityGroupRuleIds.push_back(value); return *this; }
55
57
63 inline bool GetDryRun() const{ return m_dryRun; }
64 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
65 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 inline RevokeSecurityGroupEgressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
68
70
73 inline const Aws::String& GetGroupId() const{ return m_groupId; }
74 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
75 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
76 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
77 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
78 inline RevokeSecurityGroupEgressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
79 inline RevokeSecurityGroupEgressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
80 inline RevokeSecurityGroupEgressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
82
84
88 inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; }
89 inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
90 inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; }
91 inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::move(value); }
92 inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); }
97
99
103 inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; }
104 inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
105 inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; }
106 inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::move(value); }
107 inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); }
112
114
118 inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
119 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
120 inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
121 inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
122 inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
123 inline RevokeSecurityGroupEgressRequest& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
124 inline RevokeSecurityGroupEgressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
125 inline RevokeSecurityGroupEgressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
127
129
132 inline int GetFromPort() const{ return m_fromPort; }
133 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
134 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
135 inline RevokeSecurityGroupEgressRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
137
139
142 inline int GetToPort() const{ return m_toPort; }
143 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
144 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
145 inline RevokeSecurityGroupEgressRequest& WithToPort(int value) { SetToPort(value); return *this;}
147
149
152 inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
153 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
154 inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
155 inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
156 inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
157 inline RevokeSecurityGroupEgressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
158 inline RevokeSecurityGroupEgressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
159 inline RevokeSecurityGroupEgressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
161
163
167 inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
168 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
169 inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
170 inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
173 inline RevokeSecurityGroupEgressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
174 inline RevokeSecurityGroupEgressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
176 private:
177
178 Aws::Vector<Aws::String> m_securityGroupRuleIds;
179 bool m_securityGroupRuleIdsHasBeenSet = false;
180
181 bool m_dryRun;
182 bool m_dryRunHasBeenSet = false;
183
184 Aws::String m_groupId;
185 bool m_groupIdHasBeenSet = false;
186
187 Aws::String m_sourceSecurityGroupName;
188 bool m_sourceSecurityGroupNameHasBeenSet = false;
189
190 Aws::String m_sourceSecurityGroupOwnerId;
191 bool m_sourceSecurityGroupOwnerIdHasBeenSet = false;
192
193 Aws::String m_ipProtocol;
194 bool m_ipProtocolHasBeenSet = false;
195
196 int m_fromPort;
197 bool m_fromPortHasBeenSet = false;
198
199 int m_toPort;
200 bool m_toPortHasBeenSet = false;
201
202 Aws::String m_cidrIp;
203 bool m_cidrIpHasBeenSet = false;
204
205 Aws::Vector<IpPermission> m_ipPermissions;
206 bool m_ipPermissionsHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace EC2
211} // namespace Aws
RevokeSecurityGroupEgressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
RevokeSecurityGroupEgressRequest & AddSecurityGroupRuleIds(const Aws::String &value)
RevokeSecurityGroupEgressRequest & WithGroupId(const char *value)
RevokeSecurityGroupEgressRequest & AddIpPermissions(const IpPermission &value)
RevokeSecurityGroupEgressRequest & WithCidrIp(const Aws::String &value)
RevokeSecurityGroupEgressRequest & WithToPort(int value)
const Aws::Vector< IpPermission > & GetIpPermissions() const
RevokeSecurityGroupEgressRequest & WithCidrIp(const char *value)
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(const char *value)
RevokeSecurityGroupEgressRequest & WithDryRun(bool value)
RevokeSecurityGroupEgressRequest & WithGroupId(const Aws::String &value)
RevokeSecurityGroupEgressRequest & WithIpProtocol(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
RevokeSecurityGroupEgressRequest & WithFromPort(int value)
RevokeSecurityGroupEgressRequest & AddSecurityGroupRuleIds(const char *value)
const Aws::Vector< Aws::String > & GetSecurityGroupRuleIds() const
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupName(const Aws::String &value)
RevokeSecurityGroupEgressRequest & WithIpProtocol(Aws::String &&value)
RevokeSecurityGroupEgressRequest & AddSecurityGroupRuleIds(Aws::String &&value)
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(Aws::String &&value)
RevokeSecurityGroupEgressRequest & WithGroupId(Aws::String &&value)
RevokeSecurityGroupEgressRequest & WithIpProtocol(const char *value)
void SetSecurityGroupRuleIds(Aws::Vector< Aws::String > &&value)
RevokeSecurityGroupEgressRequest & WithSecurityGroupRuleIds(const Aws::Vector< Aws::String > &value)
void SetSecurityGroupRuleIds(const Aws::Vector< Aws::String > &value)
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(const Aws::String &value)
RevokeSecurityGroupEgressRequest & WithCidrIp(Aws::String &&value)
void SetIpPermissions(const Aws::Vector< IpPermission > &value)
RevokeSecurityGroupEgressRequest & WithSecurityGroupRuleIds(Aws::Vector< Aws::String > &&value)
RevokeSecurityGroupEgressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
RevokeSecurityGroupEgressRequest & AddIpPermissions(IpPermission &&value)
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupName(const char *value)
RevokeSecurityGroupEgressRequest & WithSourceSecurityGroupName(Aws::String &&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