AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateInstanceConnectEndpointRequest.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/IpAddressType.h>
13#include <aws/ec2/model/TagSpecification.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EC2 {
19namespace Model {
20
24 public:
25 AWS_EC2_API CreateInstanceConnectEndpointRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateInstanceConnectEndpoint"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) {
49 m_dryRunHasBeenSet = true;
50 m_dryRun = value;
51 }
53 SetDryRun(value);
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
64 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
65 template <typename SubnetIdT = Aws::String>
66 void SetSubnetId(SubnetIdT&& value) {
67 m_subnetIdHasBeenSet = true;
68 m_subnetId = std::forward<SubnetIdT>(value);
69 }
70 template <typename SubnetIdT = Aws::String>
72 SetSubnetId(std::forward<SubnetIdT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
84 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
85 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
86 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
87 m_securityGroupIdsHasBeenSet = true;
88 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
89 }
90 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
92 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
93 return *this;
94 }
95 template <typename SecurityGroupIdsT = Aws::String>
97 m_securityGroupIdsHasBeenSet = true;
98 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
99 return *this;
100 }
102
104
114 inline bool GetPreserveClientIp() const { return m_preserveClientIp; }
115 inline bool PreserveClientIpHasBeenSet() const { return m_preserveClientIpHasBeenSet; }
116 inline void SetPreserveClientIp(bool value) {
117 m_preserveClientIpHasBeenSet = true;
118 m_preserveClientIp = value;
119 }
121 SetPreserveClientIp(value);
122 return *this;
123 }
125
127
131 inline const Aws::String& GetClientToken() const { return m_clientToken; }
132 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
133 template <typename ClientTokenT = Aws::String>
134 void SetClientToken(ClientTokenT&& value) {
135 m_clientTokenHasBeenSet = true;
136 m_clientToken = std::forward<ClientTokenT>(value);
137 }
138 template <typename ClientTokenT = Aws::String>
140 SetClientToken(std::forward<ClientTokenT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
150 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
151 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
152 void SetTagSpecifications(TagSpecificationsT&& value) {
153 m_tagSpecificationsHasBeenSet = true;
154 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
155 }
156 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
158 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
159 return *this;
160 }
161 template <typename TagSpecificationsT = TagSpecification>
163 m_tagSpecificationsHasBeenSet = true;
164 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
165 return *this;
166 }
168
170
180 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
181 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
182 inline void SetIpAddressType(IpAddressType value) {
183 m_ipAddressTypeHasBeenSet = true;
184 m_ipAddressType = value;
185 }
187 SetIpAddressType(value);
188 return *this;
189 }
191 private:
192 bool m_dryRun{false};
193
194 Aws::String m_subnetId;
195
196 Aws::Vector<Aws::String> m_securityGroupIds;
197
198 bool m_preserveClientIp{false};
199
201
202 Aws::Vector<TagSpecification> m_tagSpecifications;
203
204 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
205 bool m_dryRunHasBeenSet = false;
206 bool m_subnetIdHasBeenSet = false;
207 bool m_securityGroupIdsHasBeenSet = false;
208 bool m_preserveClientIpHasBeenSet = false;
209 bool m_clientTokenHasBeenSet = true;
210 bool m_tagSpecificationsHasBeenSet = false;
211 bool m_ipAddressTypeHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace EC2
216} // namespace Aws
CreateInstanceConnectEndpointRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateInstanceConnectEndpointRequest & WithPreserveClientIp(bool value)
CreateInstanceConnectEndpointRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
CreateInstanceConnectEndpointRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateInstanceConnectEndpointRequest & WithClientToken(ClientTokenT &&value)
CreateInstanceConnectEndpointRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
CreateInstanceConnectEndpointRequest & WithSubnetId(SubnetIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateInstanceConnectEndpointRequest & WithIpAddressType(IpAddressType value)
CreateInstanceConnectEndpointRequest & WithDryRun(bool 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