AWS SDK for C++  1.9.131
AWS SDK for C++
ModifySecurityGroupRulesRequest.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 "ModifySecurityGroupRules"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetGroupId() const{ return m_groupId; }
45 
49  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
50 
54  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
55 
59  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
60 
64  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
65 
69  inline ModifySecurityGroupRulesRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
70 
74  inline ModifySecurityGroupRulesRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
75 
79  inline ModifySecurityGroupRulesRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
80 
81 
85  inline const Aws::Vector<SecurityGroupRuleUpdate>& GetSecurityGroupRules() const{ return m_securityGroupRules; }
86 
90  inline bool SecurityGroupRulesHasBeenSet() const { return m_securityGroupRulesHasBeenSet; }
91 
95  inline void SetSecurityGroupRules(const Aws::Vector<SecurityGroupRuleUpdate>& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = value; }
96 
100  inline void SetSecurityGroupRules(Aws::Vector<SecurityGroupRuleUpdate>&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = std::move(value); }
101 
105  inline ModifySecurityGroupRulesRequest& WithSecurityGroupRules(const Aws::Vector<SecurityGroupRuleUpdate>& value) { SetSecurityGroupRules(value); return *this;}
106 
110  inline ModifySecurityGroupRulesRequest& WithSecurityGroupRules(Aws::Vector<SecurityGroupRuleUpdate>&& value) { SetSecurityGroupRules(std::move(value)); return *this;}
111 
115  inline ModifySecurityGroupRulesRequest& AddSecurityGroupRules(const SecurityGroupRuleUpdate& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.push_back(value); return *this; }
116 
120  inline ModifySecurityGroupRulesRequest& AddSecurityGroupRules(SecurityGroupRuleUpdate&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.push_back(std::move(value)); return *this; }
121 
122 
129  inline bool GetDryRun() const{ return m_dryRun; }
130 
137  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
138 
145  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
146 
153  inline ModifySecurityGroupRulesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
154 
155  private:
156 
157  Aws::String m_groupId;
158  bool m_groupIdHasBeenSet;
159 
160  Aws::Vector<SecurityGroupRuleUpdate> m_securityGroupRules;
161  bool m_securityGroupRulesHasBeenSet;
162 
163  bool m_dryRun;
164  bool m_dryRunHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace EC2
169 } // namespace Aws
Aws::EC2::Model::ModifySecurityGroupRulesRequest::WithGroupId
ModifySecurityGroupRulesRequest & WithGroupId(const char *value)
Definition: ModifySecurityGroupRulesRequest.h:79
Aws::EC2::Model::ModifySecurityGroupRulesRequest::GetDryRun
bool GetDryRun() const
Definition: ModifySecurityGroupRulesRequest.h:129
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: ModifySecurityGroupRulesRequest.h:59
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifySecurityGroupRulesRequest::ModifySecurityGroupRulesRequest
ModifySecurityGroupRulesRequest()
Aws::EC2::Model::ModifySecurityGroupRulesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifySecurityGroupRulesRequest.h:137
Aws::EC2::Model::ModifySecurityGroupRulesRequest::WithSecurityGroupRules
ModifySecurityGroupRulesRequest & WithSecurityGroupRules(Aws::Vector< SecurityGroupRuleUpdate > &&value)
Definition: ModifySecurityGroupRulesRequest.h:110
Aws::EC2::Model::ModifySecurityGroupRulesRequest::WithDryRun
ModifySecurityGroupRulesRequest & WithDryRun(bool value)
Definition: ModifySecurityGroupRulesRequest.h:153
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifySecurityGroupRulesRequest::WithSecurityGroupRules
ModifySecurityGroupRulesRequest & WithSecurityGroupRules(const Aws::Vector< SecurityGroupRuleUpdate > &value)
Definition: ModifySecurityGroupRulesRequest.h:105
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SetSecurityGroupRules
void SetSecurityGroupRules(const Aws::Vector< SecurityGroupRuleUpdate > &value)
Definition: ModifySecurityGroupRulesRequest.h:95
AWSVector.h
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: ModifySecurityGroupRulesRequest.h:54
Aws::EC2::Model::ModifySecurityGroupRulesRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: ModifySecurityGroupRulesRequest.h:49
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifySecurityGroupRulesRequest.h:145
SecurityGroupRuleUpdate.h
Aws::EC2::Model::ModifySecurityGroupRulesRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: ModifySecurityGroupRulesRequest.h:44
EC2Request.h
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SetSecurityGroupRules
void SetSecurityGroupRules(Aws::Vector< SecurityGroupRuleUpdate > &&value)
Definition: ModifySecurityGroupRulesRequest.h:100
Aws::EC2::Model::ModifySecurityGroupRulesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::ModifySecurityGroupRulesRequest::WithGroupId
ModifySecurityGroupRulesRequest & WithGroupId(Aws::String &&value)
Definition: ModifySecurityGroupRulesRequest.h:74
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SecurityGroupRulesHasBeenSet
bool SecurityGroupRulesHasBeenSet() const
Definition: ModifySecurityGroupRulesRequest.h:90
Aws::EC2::Model::ModifySecurityGroupRulesRequest::AddSecurityGroupRules
ModifySecurityGroupRulesRequest & AddSecurityGroupRules(const SecurityGroupRuleUpdate &value)
Definition: ModifySecurityGroupRulesRequest.h:115
Aws::EC2::Model::ModifySecurityGroupRulesRequest::GetSecurityGroupRules
const Aws::Vector< SecurityGroupRuleUpdate > & GetSecurityGroupRules() const
Definition: ModifySecurityGroupRulesRequest.h:85
Aws::EC2::Model::ModifySecurityGroupRulesRequest::AddSecurityGroupRules
ModifySecurityGroupRulesRequest & AddSecurityGroupRules(SecurityGroupRuleUpdate &&value)
Definition: ModifySecurityGroupRulesRequest.h:120
Aws::EC2::Model::ModifySecurityGroupRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifySecurityGroupRulesRequest.h:32
Aws::EC2::Model::ModifySecurityGroupRulesRequest::WithGroupId
ModifySecurityGroupRulesRequest & WithGroupId(const Aws::String &value)
Definition: ModifySecurityGroupRulesRequest.h:69
Aws
Definition: AccessManagementClient.h:15
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::SecurityGroupRuleUpdate
Definition: SecurityGroupRuleUpdate.h:33
EC2_EXPORTS.h
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifySecurityGroupRulesRequest
Definition: ModifySecurityGroupRulesRequest.h:24
Aws::EC2::Model::ModifySecurityGroupRulesRequest::SetGroupId
void SetGroupId(const char *value)
Definition: ModifySecurityGroupRulesRequest.h:64