AWS SDK for C++  1.9.72
AWS SDK for C++
CreateNetworkAclRequest.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 "CreateNetworkAcl"; }
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 CreateNetworkAclRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
77  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
78 
82  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
83 
87  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
88 
92  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
93 
97  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
98 
102  inline CreateNetworkAclRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
103 
107  inline CreateNetworkAclRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
108 
112  inline CreateNetworkAclRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
113 
114 
118  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
119 
123  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
124 
128  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
129 
133  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
134 
138  inline CreateNetworkAclRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
139 
143  inline CreateNetworkAclRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
144 
148  inline CreateNetworkAclRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
149 
153  inline CreateNetworkAclRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
154 
155  private:
156 
157  bool m_dryRun;
158  bool m_dryRunHasBeenSet;
159 
160  Aws::String m_vpcId;
161  bool m_vpcIdHasBeenSet;
162 
163  Aws::Vector<TagSpecification> m_tagSpecifications;
164  bool m_tagSpecificationsHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace EC2
169 } // namespace Aws
Aws::EC2::Model::CreateNetworkAclRequest::WithVpcId
CreateNetworkAclRequest & WithVpcId(const Aws::String &value)
Definition: CreateNetworkAclRequest.h:102
TagSpecification.h
Aws::EC2::Model::CreateNetworkAclRequest::WithTagSpecifications
CreateNetworkAclRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNetworkAclRequest.h:143
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateNetworkAclRequest::WithVpcId
CreateNetworkAclRequest & WithVpcId(Aws::String &&value)
Definition: CreateNetworkAclRequest.h:107
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateNetworkAclRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNetworkAclRequest.h:32
Aws::EC2::Model::CreateNetworkAclRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CreateNetworkAclRequest.h:92
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CreateNetworkAclRequest::CreateNetworkAclRequest
CreateNetworkAclRequest()
Aws::EC2::Model::CreateNetworkAclRequest::WithVpcId
CreateNetworkAclRequest & WithVpcId(const char *value)
Definition: CreateNetworkAclRequest.h:112
Aws::EC2::Model::CreateNetworkAclRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateNetworkAclRequest.h:123
Aws::EC2::Model::CreateNetworkAclRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNetworkAclRequest.h:133
Aws::EC2::Model::CreateNetworkAclRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateNetworkAclRequest.h:55
EC2Request.h
Aws::EC2::Model::CreateNetworkAclRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CreateNetworkAclRequest.h:87
Aws::EC2::Model::CreateNetworkAclRequest::AddTagSpecifications
CreateNetworkAclRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateNetworkAclRequest.h:153
Aws::EC2::Model::CreateNetworkAclRequest::SetVpcId
void SetVpcId(const char *value)
Definition: CreateNetworkAclRequest.h:97
AWSString.h
Aws::EC2::Model::CreateNetworkAclRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: CreateNetworkAclRequest.h:77
Aws::EC2::Model::CreateNetworkAclRequest::AddTagSpecifications
CreateNetworkAclRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateNetworkAclRequest.h:148
Aws::EC2::Model::CreateNetworkAclRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateNetworkAclRequest.h:63
Aws::EC2::Model::CreateNetworkAclRequest::GetDryRun
bool GetDryRun() const
Definition: CreateNetworkAclRequest.h:47
Aws::EC2::Model::CreateNetworkAclRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CreateNetworkAclRequest.h:82
Aws::EC2::Model::CreateNetworkAclRequest
Definition: CreateNetworkAclRequest.h:24
Aws::EC2::Model::CreateNetworkAclRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateNetworkAclRequest.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateNetworkAclRequest::WithDryRun
CreateNetworkAclRequest & WithDryRun(bool value)
Definition: CreateNetworkAclRequest.h:71
Aws::EC2::Model::CreateNetworkAclRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateNetworkAclRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateNetworkAclRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateNetworkAclRequest.h:118
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::CreateNetworkAclRequest::WithTagSpecifications
CreateNetworkAclRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateNetworkAclRequest.h:138
EC2_EXPORTS.h