AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateNatGatewayRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ConnectivityType.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EC2_API CreateNatGatewayRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateNatGateway"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
51 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
52 template<typename AllocationIdT = Aws::String>
53 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
54 template<typename AllocationIdT = Aws::String>
55 CreateNatGatewayRequest& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
57
59
65 inline const Aws::String& GetClientToken() const { return m_clientToken; }
66 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
67 template<typename ClientTokenT = Aws::String>
68 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
69 template<typename ClientTokenT = Aws::String>
70 CreateNatGatewayRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
72
74
80 inline bool GetDryRun() const { return m_dryRun; }
81 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
82 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
83 inline CreateNatGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
85
87
90 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
91 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
92 template<typename SubnetIdT = Aws::String>
93 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
94 template<typename SubnetIdT = Aws::String>
95 CreateNatGatewayRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
97
99
102 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
103 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
104 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
105 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
106 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
107 CreateNatGatewayRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
108 template<typename TagSpecificationsT = TagSpecification>
109 CreateNatGatewayRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
111
113
117 inline ConnectivityType GetConnectivityType() const { return m_connectivityType; }
118 inline bool ConnectivityTypeHasBeenSet() const { return m_connectivityTypeHasBeenSet; }
119 inline void SetConnectivityType(ConnectivityType value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = value; }
122
124
128 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
129 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
130 template<typename PrivateIpAddressT = Aws::String>
131 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
132 template<typename PrivateIpAddressT = Aws::String>
133 CreateNatGatewayRequest& WithPrivateIpAddress(PrivateIpAddressT&& value) { SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value)); return *this;}
135
137
142 inline const Aws::Vector<Aws::String>& GetSecondaryAllocationIds() const { return m_secondaryAllocationIds; }
143 inline bool SecondaryAllocationIdsHasBeenSet() const { return m_secondaryAllocationIdsHasBeenSet; }
144 template<typename SecondaryAllocationIdsT = Aws::Vector<Aws::String>>
145 void SetSecondaryAllocationIds(SecondaryAllocationIdsT&& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds = std::forward<SecondaryAllocationIdsT>(value); }
146 template<typename SecondaryAllocationIdsT = Aws::Vector<Aws::String>>
147 CreateNatGatewayRequest& WithSecondaryAllocationIds(SecondaryAllocationIdsT&& value) { SetSecondaryAllocationIds(std::forward<SecondaryAllocationIdsT>(value)); return *this;}
148 template<typename SecondaryAllocationIdsT = Aws::String>
149 CreateNatGatewayRequest& AddSecondaryAllocationIds(SecondaryAllocationIdsT&& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds.emplace_back(std::forward<SecondaryAllocationIdsT>(value)); return *this; }
151
153
159 inline const Aws::Vector<Aws::String>& GetSecondaryPrivateIpAddresses() const { return m_secondaryPrivateIpAddresses; }
160 inline bool SecondaryPrivateIpAddressesHasBeenSet() const { return m_secondaryPrivateIpAddressesHasBeenSet; }
161 template<typename SecondaryPrivateIpAddressesT = Aws::Vector<Aws::String>>
162 void SetSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT&& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses = std::forward<SecondaryPrivateIpAddressesT>(value); }
163 template<typename SecondaryPrivateIpAddressesT = Aws::Vector<Aws::String>>
164 CreateNatGatewayRequest& WithSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT&& value) { SetSecondaryPrivateIpAddresses(std::forward<SecondaryPrivateIpAddressesT>(value)); return *this;}
165 template<typename SecondaryPrivateIpAddressesT = Aws::String>
166 CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT&& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses.emplace_back(std::forward<SecondaryPrivateIpAddressesT>(value)); return *this; }
168
170
177 inline int GetSecondaryPrivateIpAddressCount() const { return m_secondaryPrivateIpAddressCount; }
178 inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
179 inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
182 private:
183
184 Aws::String m_allocationId;
185 bool m_allocationIdHasBeenSet = false;
186
188 bool m_clientTokenHasBeenSet = true;
189
190 bool m_dryRun{false};
191 bool m_dryRunHasBeenSet = false;
192
193 Aws::String m_subnetId;
194 bool m_subnetIdHasBeenSet = false;
195
196 Aws::Vector<TagSpecification> m_tagSpecifications;
197 bool m_tagSpecificationsHasBeenSet = false;
198
200 bool m_connectivityTypeHasBeenSet = false;
201
202 Aws::String m_privateIpAddress;
203 bool m_privateIpAddressHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_secondaryAllocationIds;
206 bool m_secondaryAllocationIdsHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_secondaryPrivateIpAddresses;
209 bool m_secondaryPrivateIpAddressesHasBeenSet = false;
210
211 int m_secondaryPrivateIpAddressCount{0};
212 bool m_secondaryPrivateIpAddressCountHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace EC2
217} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSecondaryPrivateIpAddresses() const
CreateNatGatewayRequest & WithTagSpecifications(TagSpecificationsT &&value)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
CreateNatGatewayRequest & AddSecondaryAllocationIds(SecondaryAllocationIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateNatGatewayRequest & WithConnectivityType(ConnectivityType value)
void SetSecondaryAllocationIds(SecondaryAllocationIdsT &&value)
CreateNatGatewayRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetSecondaryAllocationIds() const
CreateNatGatewayRequest & WithClientToken(ClientTokenT &&value)
CreateNatGatewayRequest & WithSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT &&value)
CreateNatGatewayRequest & WithAllocationId(AllocationIdT &&value)
AWS_EC2_API CreateNatGatewayRequest()=default
CreateNatGatewayRequest & WithSecondaryAllocationIds(SecondaryAllocationIdsT &&value)
CreateNatGatewayRequest & WithSecondaryPrivateIpAddressCount(int value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateNatGatewayRequest & WithPrivateIpAddress(PrivateIpAddressT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
void SetSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT &&value)
CreateNatGatewayRequest & WithSubnetId(SubnetIdT &&value)
CreateNatGatewayRequest & AddSecondaryPrivateIpAddresses(SecondaryPrivateIpAddressesT &&value)
CreateNatGatewayRequest & AddTagSpecifications(TagSpecificationsT &&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