AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateNetworkAclRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateNetworkAclRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkAcl"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
43 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
44 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
45 void SetTagSpecifications(TagSpecificationsT&& value) {
46 m_tagSpecificationsHasBeenSet = true;
47 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
48 }
49 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
50 CreateNetworkAclRequest& WithTagSpecifications(TagSpecificationsT&& value) {
51 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
52 return *this;
53 }
54 template <typename TagSpecificationsT = TagSpecification>
55 CreateNetworkAclRequest& AddTagSpecifications(TagSpecificationsT&& value) {
56 m_tagSpecificationsHasBeenSet = true;
57 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetClientToken() const { return m_clientToken; }
70 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
71 template <typename ClientTokenT = Aws::String>
72 void SetClientToken(ClientTokenT&& value) {
73 m_clientTokenHasBeenSet = true;
74 m_clientToken = std::forward<ClientTokenT>(value);
75 }
76 template <typename ClientTokenT = Aws::String>
78 SetClientToken(std::forward<ClientTokenT>(value));
79 return *this;
80 }
82
84
90 inline bool GetDryRun() const { return m_dryRun; }
91 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
92 inline void SetDryRun(bool value) {
93 m_dryRunHasBeenSet = true;
94 m_dryRun = value;
95 }
96 inline CreateNetworkAclRequest& WithDryRun(bool value) {
97 SetDryRun(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetVpcId() const { return m_vpcId; }
107 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
108 template <typename VpcIdT = Aws::String>
109 void SetVpcId(VpcIdT&& value) {
110 m_vpcIdHasBeenSet = true;
111 m_vpcId = std::forward<VpcIdT>(value);
112 }
113 template <typename VpcIdT = Aws::String>
115 SetVpcId(std::forward<VpcIdT>(value));
116 return *this;
117 }
119 private:
120 Aws::Vector<TagSpecification> m_tagSpecifications;
121
123
124 bool m_dryRun{false};
125
126 Aws::String m_vpcId;
127 bool m_tagSpecificationsHasBeenSet = false;
128 bool m_clientTokenHasBeenSet = true;
129 bool m_dryRunHasBeenSet = false;
130 bool m_vpcIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace EC2
135} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API CreateNetworkAclRequest()=default
CreateNetworkAclRequest & WithClientToken(ClientTokenT &&value)
CreateNetworkAclRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateNetworkAclRequest & WithTagSpecifications(TagSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateNetworkAclRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateNetworkAclRequest & WithVpcId(VpcIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector