AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthorizeSecurityGroupEgressRequest.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/TagSpecification.h>
12#include <aws/ec2/model/IpPermission.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AuthorizeSecurityGroupEgress"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
47 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
48 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
49 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
52 inline AuthorizeSecurityGroupEgressRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
53 inline AuthorizeSecurityGroupEgressRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(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 AuthorizeSecurityGroupEgressRequest& 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 AuthorizeSecurityGroupEgressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
79 inline AuthorizeSecurityGroupEgressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
80 inline AuthorizeSecurityGroupEgressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
82
84
87 inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; }
88 inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
89 inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; }
90 inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::move(value); }
91 inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); }
96
98
101 inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; }
102 inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
103 inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; }
104 inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::move(value); }
105 inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); }
110
112
115 inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
116 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
117 inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
118 inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
119 inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
121 inline AuthorizeSecurityGroupEgressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
122 inline AuthorizeSecurityGroupEgressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
124
126
129 inline int GetFromPort() const{ return m_fromPort; }
130 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
131 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
132 inline AuthorizeSecurityGroupEgressRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
134
136
139 inline int GetToPort() const{ return m_toPort; }
140 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
141 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
142 inline AuthorizeSecurityGroupEgressRequest& WithToPort(int value) { SetToPort(value); return *this;}
144
146
149 inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
150 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
151 inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
152 inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
153 inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
154 inline AuthorizeSecurityGroupEgressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
155 inline AuthorizeSecurityGroupEgressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
156 inline AuthorizeSecurityGroupEgressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
158
160
163 inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
164 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
165 inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
166 inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
169 inline AuthorizeSecurityGroupEgressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
170 inline AuthorizeSecurityGroupEgressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
172 private:
173
174 Aws::Vector<TagSpecification> m_tagSpecifications;
175 bool m_tagSpecificationsHasBeenSet = false;
176
177 bool m_dryRun;
178 bool m_dryRunHasBeenSet = false;
179
180 Aws::String m_groupId;
181 bool m_groupIdHasBeenSet = false;
182
183 Aws::String m_sourceSecurityGroupName;
184 bool m_sourceSecurityGroupNameHasBeenSet = false;
185
186 Aws::String m_sourceSecurityGroupOwnerId;
187 bool m_sourceSecurityGroupOwnerIdHasBeenSet = false;
188
189 Aws::String m_ipProtocol;
190 bool m_ipProtocolHasBeenSet = false;
191
192 int m_fromPort;
193 bool m_fromPortHasBeenSet = false;
194
195 int m_toPort;
196 bool m_toPortHasBeenSet = false;
197
198 Aws::String m_cidrIp;
199 bool m_cidrIpHasBeenSet = false;
200
201 Aws::Vector<IpPermission> m_ipPermissions;
202 bool m_ipPermissionsHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace EC2
207} // namespace Aws
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
AuthorizeSecurityGroupEgressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
AuthorizeSecurityGroupEgressRequest & AddIpPermissions(const IpPermission &value)
AuthorizeSecurityGroupEgressRequest & AddTagSpecifications(TagSpecification &&value)
AuthorizeSecurityGroupEgressRequest & WithSourceSecurityGroupName(const Aws::String &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeSecurityGroupEgressRequest & WithSourceSecurityGroupName(Aws::String &&value)
AuthorizeSecurityGroupEgressRequest & WithToPort(int value)
AuthorizeSecurityGroupEgressRequest & WithGroupId(const Aws::String &value)
AuthorizeSecurityGroupEgressRequest & WithIpProtocol(const char *value)
AuthorizeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(const Aws::String &value)
AuthorizeSecurityGroupEgressRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
AuthorizeSecurityGroupEgressRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
AuthorizeSecurityGroupEgressRequest & WithCidrIp(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
AuthorizeSecurityGroupEgressRequest & AddIpPermissions(IpPermission &&value)
AuthorizeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(Aws::String &&value)
AuthorizeSecurityGroupEgressRequest & WithIpProtocol(const Aws::String &value)
AuthorizeSecurityGroupEgressRequest & WithGroupId(Aws::String &&value)
AuthorizeSecurityGroupEgressRequest & WithGroupId(const char *value)
AuthorizeSecurityGroupEgressRequest & WithCidrIp(Aws::String &&value)
AuthorizeSecurityGroupEgressRequest & WithIpProtocol(Aws::String &&value)
AuthorizeSecurityGroupEgressRequest & WithSourceSecurityGroupOwnerId(const char *value)
void SetIpPermissions(const Aws::Vector< IpPermission > &value)
AuthorizeSecurityGroupEgressRequest & WithSourceSecurityGroupName(const char *value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AuthorizeSecurityGroupEgressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
AuthorizeSecurityGroupEgressRequest & AddTagSpecifications(const TagSpecification &value)
AuthorizeSecurityGroupEgressRequest & WithDryRun(bool value)
AuthorizeSecurityGroupEgressRequest & WithFromPort(int value)
AuthorizeSecurityGroupEgressRequest & WithCidrIp(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector