AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthorizeSecurityGroupIngressRequest.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 <aws/ec2/model/TagSpecification.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 "AuthorizeSecurityGroupIngress"; }
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
48 inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
49 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
50 inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
51 inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
52 inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
53 inline AuthorizeSecurityGroupIngressRequest& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
54 inline AuthorizeSecurityGroupIngressRequest& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
55 inline AuthorizeSecurityGroupIngressRequest& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
57
59
65 inline int GetFromPort() const{ return m_fromPort; }
66 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
67 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
68 inline AuthorizeSecurityGroupIngressRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
70
72
75 inline const Aws::String& GetGroupId() const{ return m_groupId; }
76 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
77 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
78 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
79 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
80 inline AuthorizeSecurityGroupIngressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
81 inline AuthorizeSecurityGroupIngressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
82 inline AuthorizeSecurityGroupIngressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
84
86
92 inline const Aws::String& GetGroupName() const{ return m_groupName; }
93 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
94 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
95 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
96 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
97 inline AuthorizeSecurityGroupIngressRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
98 inline AuthorizeSecurityGroupIngressRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
99 inline AuthorizeSecurityGroupIngressRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
101
103
106 inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
107 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
108 inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
109 inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
112 inline AuthorizeSecurityGroupIngressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
113 inline AuthorizeSecurityGroupIngressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
115
117
127 inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
128 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
129 inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
130 inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
131 inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
133 inline AuthorizeSecurityGroupIngressRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
134 inline AuthorizeSecurityGroupIngressRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
136
138
143 inline const Aws::String& GetSourceSecurityGroupName() const{ return m_sourceSecurityGroupName; }
144 inline bool SourceSecurityGroupNameHasBeenSet() const { return m_sourceSecurityGroupNameHasBeenSet; }
145 inline void SetSourceSecurityGroupName(const Aws::String& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = value; }
146 inline void SetSourceSecurityGroupName(Aws::String&& value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName = std::move(value); }
147 inline void SetSourceSecurityGroupName(const char* value) { m_sourceSecurityGroupNameHasBeenSet = true; m_sourceSecurityGroupName.assign(value); }
152
154
160 inline const Aws::String& GetSourceSecurityGroupOwnerId() const{ return m_sourceSecurityGroupOwnerId; }
161 inline bool SourceSecurityGroupOwnerIdHasBeenSet() const { return m_sourceSecurityGroupOwnerIdHasBeenSet; }
162 inline void SetSourceSecurityGroupOwnerId(const Aws::String& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = value; }
163 inline void SetSourceSecurityGroupOwnerId(Aws::String&& value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId = std::move(value); }
164 inline void SetSourceSecurityGroupOwnerId(const char* value) { m_sourceSecurityGroupOwnerIdHasBeenSet = true; m_sourceSecurityGroupOwnerId.assign(value); }
169
171
178 inline int GetToPort() const{ return m_toPort; }
179 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
180 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
181 inline AuthorizeSecurityGroupIngressRequest& WithToPort(int value) { SetToPort(value); return *this;}
183
185
188 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
189 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
190 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
191 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
194 inline AuthorizeSecurityGroupIngressRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
195 inline AuthorizeSecurityGroupIngressRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
197
199
205 inline bool GetDryRun() const{ return m_dryRun; }
206 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
207 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
208 inline AuthorizeSecurityGroupIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
210 private:
211
212 Aws::String m_cidrIp;
213 bool m_cidrIpHasBeenSet = false;
214
215 int m_fromPort;
216 bool m_fromPortHasBeenSet = false;
217
218 Aws::String m_groupId;
219 bool m_groupIdHasBeenSet = false;
220
221 Aws::String m_groupName;
222 bool m_groupNameHasBeenSet = false;
223
224 Aws::Vector<IpPermission> m_ipPermissions;
225 bool m_ipPermissionsHasBeenSet = false;
226
227 Aws::String m_ipProtocol;
228 bool m_ipProtocolHasBeenSet = false;
229
230 Aws::String m_sourceSecurityGroupName;
231 bool m_sourceSecurityGroupNameHasBeenSet = false;
232
233 Aws::String m_sourceSecurityGroupOwnerId;
234 bool m_sourceSecurityGroupOwnerIdHasBeenSet = false;
235
236 int m_toPort;
237 bool m_toPortHasBeenSet = false;
238
239 Aws::Vector<TagSpecification> m_tagSpecifications;
240 bool m_tagSpecificationsHasBeenSet = false;
241
242 bool m_dryRun;
243 bool m_dryRunHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace EC2
248} // namespace Aws
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupName(const char *value)
AuthorizeSecurityGroupIngressRequest & WithGroupName(Aws::String &&value)
AuthorizeSecurityGroupIngressRequest & AddTagSpecifications(const TagSpecification &value)
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(Aws::String &&value)
AuthorizeSecurityGroupIngressRequest & WithCidrIp(const char *value)
AuthorizeSecurityGroupIngressRequest & WithCidrIp(const Aws::String &value)
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupName(const Aws::String &value)
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(const Aws::String &value)
AuthorizeSecurityGroupIngressRequest & WithIpProtocol(const Aws::String &value)
AuthorizeSecurityGroupIngressRequest & WithIpProtocol(const char *value)
AuthorizeSecurityGroupIngressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AuthorizeSecurityGroupIngressRequest & WithGroupId(const Aws::String &value)
AuthorizeSecurityGroupIngressRequest & WithDryRun(bool value)
AuthorizeSecurityGroupIngressRequest & AddTagSpecifications(TagSpecification &&value)
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupName(Aws::String &&value)
AuthorizeSecurityGroupIngressRequest & WithIpProtocol(Aws::String &&value)
AuthorizeSecurityGroupIngressRequest & WithFromPort(int value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
AuthorizeSecurityGroupIngressRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
AuthorizeSecurityGroupIngressRequest & WithGroupName(const char *value)
AuthorizeSecurityGroupIngressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
AuthorizeSecurityGroupIngressRequest & WithCidrIp(Aws::String &&value)
AuthorizeSecurityGroupIngressRequest & AddIpPermissions(const IpPermission &value)
AuthorizeSecurityGroupIngressRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
AWS_EC2_API Aws::String SerializePayload() const override
AuthorizeSecurityGroupIngressRequest & WithGroupName(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeSecurityGroupIngressRequest & WithGroupId(Aws::String &&value)
AuthorizeSecurityGroupIngressRequest & WithSourceSecurityGroupOwnerId(const char *value)
AuthorizeSecurityGroupIngressRequest & WithGroupId(const char *value)
AuthorizeSecurityGroupIngressRequest & AddIpPermissions(IpPermission &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector