AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateSecurityGroupRuleDescriptionsEgressRequest.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 "UpdateSecurityGroupRuleDescriptionsEgress"; }
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 UpdateSecurityGroupRuleDescriptionsEgressRequest& 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 UpdateSecurityGroupRuleDescriptionsEgressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
116 
122  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
123 
129  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& 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 UpdateSecurityGroupRuleDescriptionsEgressRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
167 
172  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
173 
178  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& 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 UpdateSecurityGroupRuleDescriptionsEgressRequest& WithIpPermissions(const Aws::Vector<IpPermission>& value) { SetIpPermissions(value); return *this;}
210 
215  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& WithIpPermissions(Aws::Vector<IpPermission>&& value) { SetIpPermissions(std::move(value)); return *this;}
216 
221  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
222 
227  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& 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 UpdateSecurityGroupRuleDescriptionsEgressRequest& WithSecurityGroupRuleDescriptions(const Aws::Vector<SecurityGroupRuleDescription>& value) { SetSecurityGroupRuleDescriptions(value); return *this;}
259 
264  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& WithSecurityGroupRuleDescriptions(Aws::Vector<SecurityGroupRuleDescription>&& value) { SetSecurityGroupRuleDescriptions(std::move(value)); return *this;}
265 
270  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& AddSecurityGroupRuleDescriptions(const SecurityGroupRuleDescription& value) { m_securityGroupRuleDescriptionsHasBeenSet = true; m_securityGroupRuleDescriptions.push_back(value); return *this; }
271 
276  inline UpdateSecurityGroupRuleDescriptionsEgressRequest& 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::UpdateSecurityGroupRuleDescriptionsEgressRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:142
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:80
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithGroupId(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:115
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:56
IpPermission.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:148
SecurityGroupRuleDescription.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:94
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:101
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:25
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::AddIpPermissions
UpdateSecurityGroupRuleDescriptionsEgressRequest & AddIpPermissions(const IpPermission &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:221
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithGroupName(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:166
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetDryRun
void SetDryRun(bool value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:64
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::GetDryRun
bool GetDryRun() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:48
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:33
AWSVector.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::AddSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsEgressRequest & AddSecurityGroupRuleDescriptions(const SecurityGroupRuleDescription &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:270
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithSecurityGroupRuleDescriptions(const Aws::Vector< SecurityGroupRuleDescription > &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:258
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithGroupId(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:129
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetIpPermissions
void SetIpPermissions(const Aws::Vector< IpPermission > &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:197
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::GetSecurityGroupRuleDescriptions
const Aws::Vector< SecurityGroupRuleDescription > & GetSecurityGroupRuleDescriptions() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:234
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithIpPermissions
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:209
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SecurityGroupRuleDescriptionsHasBeenSet
bool SecurityGroupRuleDescriptionsHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:240
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::AddSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsEgressRequest & AddSecurityGroupRuleDescriptions(SecurityGroupRuleDescription &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:276
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::UpdateSecurityGroupRuleDescriptionsEgressRequest
UpdateSecurityGroupRuleDescriptionsEgressRequest()
EC2Request.h
Aws::EC2::Model::IpPermission
Definition: IpPermission.h:38
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetGroupId
void SetGroupId(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:108
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithGroupName(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:178
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithDryRun
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithDryRun(bool value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:72
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetSecurityGroupRuleDescriptions
void SetSecurityGroupRuleDescriptions(const Aws::Vector< SecurityGroupRuleDescription > &value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:246
AWSString.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithGroupName(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:172
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::AddIpPermissions
UpdateSecurityGroupRuleDescriptionsEgressRequest & AddIpPermissions(IpPermission &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:227
Aws::EC2::Model::SecurityGroupRuleDescription
Definition: SecurityGroupRuleDescription.h:34
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetSecurityGroupRuleDescriptions
void SetSecurityGroupRuleDescriptions(Aws::Vector< SecurityGroupRuleDescription > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:252
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetGroupName
void SetGroupName(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:160
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:154
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::IpPermissionsHasBeenSet
bool IpPermissionsHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:191
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::GetIpPermissions
const Aws::Vector< IpPermission > & GetIpPermissions() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:185
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithIpPermissions
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:215
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithGroupId(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:122
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::WithSecurityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsEgressRequest & WithSecurityGroupRuleDescriptions(Aws::Vector< SecurityGroupRuleDescription > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:264
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:136
EC2_EXPORTS.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::SetIpPermissions
void SetIpPermissions(Aws::Vector< IpPermission > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsEgressRequest.h:203
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsEgressRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override