AWS SDK for C++  1.9.15
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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace 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 "UpdateSecurityGroupRuleDescriptionsIngress"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
79  inline const Aws::String& GetGroupId() const{ return m_groupId; }
80 
86  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
87 
93  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
94 
100  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
101 
107  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
108 
114  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
115 
121  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
122 
128  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
129 
130 
135  inline const Aws::String& GetGroupName() const{ return m_groupName; }
136 
141  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
142 
147  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
148 
153  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
154 
159  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
160 
165  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
166 
171  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
172 
177  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
178 
179 
183  inline const Aws::Vector<IpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
184 
188  inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
189 
193  inline void SetIpPermissions(const Aws::Vector<IpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
194 
198  inline void SetIpPermissions(Aws::Vector<IpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
199 
203  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithIpPermissions(const Aws::Vector<IpPermission>& value) { SetIpPermissions(value); return *this;}
204 
208  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& WithIpPermissions(Aws::Vector<IpPermission>&& value) { SetIpPermissions(std::move(value)); return *this;}
209 
213  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& AddIpPermissions(const IpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
214 
218  inline UpdateSecurityGroupRuleDescriptionsIngressRequest& AddIpPermissions(IpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
219 
220  private:
221 
222  bool m_dryRun;
223  bool m_dryRunHasBeenSet;
224 
225  Aws::String m_groupId;
226  bool m_groupIdHasBeenSet;
227 
228  Aws::String m_groupName;
229  bool m_groupNameHasBeenSet;
230 
231  Aws::Vector<IpPermission> m_ipPermissions;
232  bool m_ipPermissionsHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace EC2
237 } // namespace Aws
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetIpPermissions
void SetIpPermissions(Aws::Vector< IpPermission > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:198
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::IpPermissionsHasBeenSet
bool IpPermissionsHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:188
Aws::Http::URI
Definition: URI.h:32
IpPermission.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:153
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithDryRun
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithDryRun(bool value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:71
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:86
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetDryRun
void SetDryRun(bool value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:63
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:100
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:183
AWSVector.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupId(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:114
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:147
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::AddIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & AddIpPermissions(const IpPermission &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:213
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupName(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:177
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:24
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupName(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:165
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithIpPermissions(const Aws::Vector< IpPermission > &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:203
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:55
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:135
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupId(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:128
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::UpdateSecurityGroupRuleDescriptionsIngressRequest
UpdateSecurityGroupRuleDescriptionsIngressRequest()
EC2Request.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupId
void SetGroupId(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:107
Aws::EC2::Model::IpPermission
Definition: IpPermission.h:38
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupId
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupId(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:121
AWSString.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithGroupName
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithGroupName(Aws::String &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:171
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:141
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetIpPermissions
void SetIpPermissions(const Aws::Vector< IpPermission > &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:193
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::SetGroupName
void SetGroupName(const char *value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:159
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::AddIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & AddIpPermissions(IpPermission &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:218
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:79
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::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:93
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetDryRun
bool GetDryRun() const
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:47
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::WithIpPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest & WithIpPermissions(Aws::Vector< IpPermission > &&value)
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:208
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateSecurityGroupRuleDescriptionsIngressRequest.h:32
EC2_EXPORTS.h
Aws::EC2::Model::UpdateSecurityGroupRuleDescriptionsIngressRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override