AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateSecondarySubnetRequest.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 CreateSecondarySubnetRequest() = 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 "CreateSecondarySubnet"; }
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
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
66 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
67 template <typename AvailabilityZoneT = Aws::String>
68 void SetAvailabilityZone(AvailabilityZoneT&& value) {
69 m_availabilityZoneHasBeenSet = true;
70 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
71 }
72 template <typename AvailabilityZoneT = Aws::String>
74 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
75 return *this;
76 }
78
80
87 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
88 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
89 template <typename AvailabilityZoneIdT = Aws::String>
90 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
91 m_availabilityZoneIdHasBeenSet = true;
92 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
93 }
94 template <typename AvailabilityZoneIdT = Aws::String>
96 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
97 return *this;
98 }
100
102
108 inline bool GetDryRun() const { return m_dryRun; }
109 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
110 inline void SetDryRun(bool value) {
111 m_dryRunHasBeenSet = true;
112 m_dryRun = value;
113 }
115 SetDryRun(value);
116 return *this;
117 }
119
121
125 inline const Aws::String& GetIpv4CidrBlock() const { return m_ipv4CidrBlock; }
126 inline bool Ipv4CidrBlockHasBeenSet() const { return m_ipv4CidrBlockHasBeenSet; }
127 template <typename Ipv4CidrBlockT = Aws::String>
128 void SetIpv4CidrBlock(Ipv4CidrBlockT&& value) {
129 m_ipv4CidrBlockHasBeenSet = true;
130 m_ipv4CidrBlock = std::forward<Ipv4CidrBlockT>(value);
131 }
132 template <typename Ipv4CidrBlockT = Aws::String>
134 SetIpv4CidrBlock(std::forward<Ipv4CidrBlockT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetSecondaryNetworkId() const { return m_secondaryNetworkId; }
144 inline bool SecondaryNetworkIdHasBeenSet() const { return m_secondaryNetworkIdHasBeenSet; }
145 template <typename SecondaryNetworkIdT = Aws::String>
146 void SetSecondaryNetworkId(SecondaryNetworkIdT&& value) {
147 m_secondaryNetworkIdHasBeenSet = true;
148 m_secondaryNetworkId = std::forward<SecondaryNetworkIdT>(value);
149 }
150 template <typename SecondaryNetworkIdT = Aws::String>
152 SetSecondaryNetworkId(std::forward<SecondaryNetworkIdT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
162 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
163 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
164 void SetTagSpecifications(TagSpecificationsT&& value) {
165 m_tagSpecificationsHasBeenSet = true;
166 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
167 }
168 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
170 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
171 return *this;
172 }
173 template <typename TagSpecificationsT = TagSpecification>
175 m_tagSpecificationsHasBeenSet = true;
176 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
177 return *this;
178 }
180 private:
182
183 Aws::String m_availabilityZone;
184
185 Aws::String m_availabilityZoneId;
186
187 bool m_dryRun{false};
188
189 Aws::String m_ipv4CidrBlock;
190
191 Aws::String m_secondaryNetworkId;
192
193 Aws::Vector<TagSpecification> m_tagSpecifications;
194 bool m_clientTokenHasBeenSet = true;
195 bool m_availabilityZoneHasBeenSet = false;
196 bool m_availabilityZoneIdHasBeenSet = false;
197 bool m_dryRunHasBeenSet = false;
198 bool m_ipv4CidrBlockHasBeenSet = false;
199 bool m_secondaryNetworkIdHasBeenSet = false;
200 bool m_tagSpecificationsHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace EC2
205} // namespace Aws
CreateSecondarySubnetRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
virtual const char * GetServiceRequestName() const override
CreateSecondarySubnetRequest & WithSecondaryNetworkId(SecondaryNetworkIdT &&value)
AWS_EC2_API CreateSecondarySubnetRequest()=default
CreateSecondarySubnetRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateSecondarySubnetRequest & WithDryRun(bool value)
CreateSecondarySubnetRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateSecondarySubnetRequest & WithIpv4CidrBlock(Ipv4CidrBlockT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateSecondarySubnetRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateSecondarySubnetRequest & WithClientToken(ClientTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector