AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateSecurityGroupRuleDescriptionsIngressRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace 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 "UpdateSecurityGroupRuleDescriptionsIngress"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline bool GetDryRun() const{ return m_dryRun; }
49 
56  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
57 
64  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
65 
72  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 
74 
80  inline const Aws::String& GetGroupId() const{ return m_groupId; }
81 
87  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
88 
94  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
95 
101  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
102 
108  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
109 
115  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
116 
122  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
123 
129  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
130 
131 
136  inline const Aws::String& GetGroupName() const{ return m_groupName; }
137 
142  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
143 
148  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
149 
154  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
155 
160  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
161 
166  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
167 
172  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
173 
178  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
179 
180 
185  inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
186 
191  inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
192 
197  inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
198 
203  inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
204 
209  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithIpPermissions(const Aws::Vector<IpPermission>& value) { SetIpPermissions(value); return *this;}
210 
215  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithIpPermissions(Aws::Vector<IpPermission>&& value) { SetIpPermissions(std::move(value)); return *this;}
216 
221  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
222 
227  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
228 
229 
234  inline const Aws::Vector<SecurityGroupRuleDescription>& GetSecurityGroupRuleDescriptions() const{ return m_securityGroupRuleDescriptions; }
235 
240  inline bool SecurityGroupRuleDescriptionsHasBeenSet() const { return m_securityGroupRuleDescriptionsHasBeenSet; }
241 
246  inline void SetSecurityGroupRuleDescriptions(const Aws::Vector<SecurityGroupRuleDescription>& value) { m_securityGroupRuleDescriptionsHasBeenSet = true; m_securityGroupRuleDescriptions = value; }
247 
252  inline void SetSecurityGroupRuleDescriptions(Aws::Vector<SecurityGroupRuleDescription>&& value) { m_securityGroupRuleDescriptionsHasBeenSet = true; m_securityGroupRuleDescriptions = std::move(value); }
253 
258  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithSecurityGroupRuleDescriptions(const Aws::Vector<SecurityGroupRuleDescription>& value) { SetSecurityGroupRuleDescriptions(value); return *this;}
259 
264  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithSecurityGroupRuleDescriptions(Aws::Vector<SecurityGroupRuleDescription>&& value) { SetSecurityGroupRuleDescriptions(std::move(value)); return *this;}
265 
270  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& AddSecurityGroupRuleDescriptions(const SecurityGroupRuleDescription& value) { m_securityGroupRuleDescriptionsHasBeenSet = true; m_securityGroupRuleDescriptions.push_back(value); return *this; }
271 
276  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& AddSecurityGroupRuleDescriptions(SecurityGroupRuleDescription&& value) { m_securityGroupRuleDescriptionsHasBeenSet = true; m_securityGroupRuleDescriptions.push_back(std::move(value)); return *this; }
277 
278  private:
279 
280  bool m_dryRun;
281  bool m_dryRunHasBeenSet;
282 
283  Aws::String m_groupId;
284  bool m_groupIdHasBeenSet;
285 
286  Aws::String m_groupName;
287  bool m_groupNameHasBeenSet;
288 
289  Aws::Vector<IpPermission> m_ipPermissions;
290  bool m_ipPermissionsHasBeenSet;
291 
292  Aws::Vector<SecurityGroupRuleDescription> m_securityGroupRuleDescriptions;
293  bool m_securityGroupRuleDescriptionsHasBeenSet;
294  };
295 
296 } // namespace Model
297 } // namespace EC2
298 } // namespace Aws
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetSecurityGroupRuleDescriptions
void SetSecurityGroupRuleDescriptions(const Aws::Vector< SecurityGroupRuleDescription > &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:246
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetIpPermissions
void SetIpPermissions(Aws::Vector< IpPermission > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:203
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::IpPermissionsHasBeenSet
bool IpPermissionsHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:191
Aws::Http::URI
Definition: URI.h:32
IpPermission.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:154
SecurityGroupRuleDescription.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithDryRun
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithDryRun(bool value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:72
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:87
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithSecurityGroupRuleDescriptions(const Aws::Vector< SecurityGroupRuleDescription > &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:258
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetDryRun
void SetDryRun(bool value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:64
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::AddSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsIngressRequest & AddSecurityGroupRuleDescriptions(SecurityGroupRuleDescription &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:276
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:101
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetIpPermissions
const Aws::Vector< IpPermission > & GetIpPermissions() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:185
AWSVector.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SecurityGroupRuleDescriptionsHasBeenSet
bool SecurityGroupRuleDescriptionsHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:240
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupId(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:115
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:148
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::AddIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & AddIpPermissions(const IpPermission &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:221
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupName(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:178
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:25
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupName(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:166
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:209
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:56
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:136
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupId(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:129
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::UpdateSecurityGroupRuleDescriptionsIngressRequest
UpdateSecurityGroupRuleDescriptionsIngressRequest()
EC2Request.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupId
void SetGroupId(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:108
Aws::EC2::Model::IpPermission
Definition: IpPermission.h:38
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupId(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:122
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetSecurityGroupRuleDescriptions
const Aws::Vector< SecurityGroupRuleDescription > & GetSecurityGroupRuleDescriptions() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:234
AWSString.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupName(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:172
Aws::EC2::Model::SecurityGroupRuleDescription
Definition: SecurityGroupRuleDescription.h:34
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:142
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetIpPermissions
void SetIpPermissions(const Aws::Vector< IpPermission > &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:197
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupName
void SetGroupName(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::AddSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsIngressRequest & AddSecurityGroupRuleDescriptions(const SecurityGroupRuleDescription &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:270
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::AddIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & AddIpPermissions(IpPermission &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:227
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:80
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetSecurityGroupRuleDescriptions
void SetSecurityGroupRuleDescriptions(Aws::Vector< SecurityGroupRuleDescription > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:252
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithSecurityGroupRuleDescriptions(Aws::Vector< SecurityGroupRuleDescription > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:264
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:94
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetDryRun
bool GetDryRun() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:48
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:215
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:33
EC2_EXPORTS.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override