AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
Tunnel.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
11#include <aws/iotsecuretunneling/model/ConnectionState.h>
12#include <aws/iotsecuretunneling/model/DestinationConfig.h>
13#include <aws/iotsecuretunneling/model/Tag.h>
14#include <aws/iotsecuretunneling/model/TimeoutConfig.h>
15#include <aws/iotsecuretunneling/model/TunnelStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoTSecureTunneling {
27namespace Model {
28
35class Tunnel {
36 public:
37 AWS_IOTSECURETUNNELING_API Tunnel() = default;
38 AWS_IOTSECURETUNNELING_API Tunnel(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSECURETUNNELING_API Tunnel& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetTunnelId() const { return m_tunnelId; }
47 inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; }
48 template <typename TunnelIdT = Aws::String>
49 void SetTunnelId(TunnelIdT&& value) {
50 m_tunnelIdHasBeenSet = true;
51 m_tunnelId = std::forward<TunnelIdT>(value);
52 }
53 template <typename TunnelIdT = Aws::String>
54 Tunnel& WithTunnelId(TunnelIdT&& value) {
55 SetTunnelId(std::forward<TunnelIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetTunnelArn() const { return m_tunnelArn; }
65 inline bool TunnelArnHasBeenSet() const { return m_tunnelArnHasBeenSet; }
66 template <typename TunnelArnT = Aws::String>
67 void SetTunnelArn(TunnelArnT&& value) {
68 m_tunnelArnHasBeenSet = true;
69 m_tunnelArn = std::forward<TunnelArnT>(value);
70 }
71 template <typename TunnelArnT = Aws::String>
72 Tunnel& WithTunnelArn(TunnelArnT&& value) {
73 SetTunnelArn(std::forward<TunnelArnT>(value));
74 return *this;
75 }
77
79
82 inline TunnelStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(TunnelStatus value) {
85 m_statusHasBeenSet = true;
86 m_status = value;
87 }
89 SetStatus(value);
90 return *this;
91 }
93
95
98 inline const ConnectionState& GetSourceConnectionState() const { return m_sourceConnectionState; }
99 inline bool SourceConnectionStateHasBeenSet() const { return m_sourceConnectionStateHasBeenSet; }
100 template <typename SourceConnectionStateT = ConnectionState>
101 void SetSourceConnectionState(SourceConnectionStateT&& value) {
102 m_sourceConnectionStateHasBeenSet = true;
103 m_sourceConnectionState = std::forward<SourceConnectionStateT>(value);
104 }
105 template <typename SourceConnectionStateT = ConnectionState>
106 Tunnel& WithSourceConnectionState(SourceConnectionStateT&& value) {
107 SetSourceConnectionState(std::forward<SourceConnectionStateT>(value));
108 return *this;
109 }
111
113
116 inline const ConnectionState& GetDestinationConnectionState() const { return m_destinationConnectionState; }
117 inline bool DestinationConnectionStateHasBeenSet() const { return m_destinationConnectionStateHasBeenSet; }
118 template <typename DestinationConnectionStateT = ConnectionState>
119 void SetDestinationConnectionState(DestinationConnectionStateT&& value) {
120 m_destinationConnectionStateHasBeenSet = true;
121 m_destinationConnectionState = std::forward<DestinationConnectionStateT>(value);
122 }
123 template <typename DestinationConnectionStateT = ConnectionState>
124 Tunnel& WithDestinationConnectionState(DestinationConnectionStateT&& value) {
125 SetDestinationConnectionState(std::forward<DestinationConnectionStateT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetDescription() const { return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 template <typename DescriptionT = Aws::String>
137 void SetDescription(DescriptionT&& value) {
138 m_descriptionHasBeenSet = true;
139 m_description = std::forward<DescriptionT>(value);
140 }
141 template <typename DescriptionT = Aws::String>
142 Tunnel& WithDescription(DescriptionT&& value) {
143 SetDescription(std::forward<DescriptionT>(value));
144 return *this;
145 }
147
149
154 inline const DestinationConfig& GetDestinationConfig() const { return m_destinationConfig; }
155 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
156 template <typename DestinationConfigT = DestinationConfig>
157 void SetDestinationConfig(DestinationConfigT&& value) {
158 m_destinationConfigHasBeenSet = true;
159 m_destinationConfig = std::forward<DestinationConfigT>(value);
160 }
161 template <typename DestinationConfigT = DestinationConfig>
162 Tunnel& WithDestinationConfig(DestinationConfigT&& value) {
163 SetDestinationConfig(std::forward<DestinationConfigT>(value));
164 return *this;
165 }
167
169
172 inline const TimeoutConfig& GetTimeoutConfig() const { return m_timeoutConfig; }
173 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
174 template <typename TimeoutConfigT = TimeoutConfig>
175 void SetTimeoutConfig(TimeoutConfigT&& value) {
176 m_timeoutConfigHasBeenSet = true;
177 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
178 }
179 template <typename TimeoutConfigT = TimeoutConfig>
180 Tunnel& WithTimeoutConfig(TimeoutConfigT&& value) {
181 SetTimeoutConfig(std::forward<TimeoutConfigT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 template <typename TagsT = Aws::Vector<Tag>>
193 void SetTags(TagsT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags = std::forward<TagsT>(value);
196 }
197 template <typename TagsT = Aws::Vector<Tag>>
198 Tunnel& WithTags(TagsT&& value) {
199 SetTags(std::forward<TagsT>(value));
200 return *this;
201 }
202 template <typename TagsT = Tag>
203 Tunnel& AddTags(TagsT&& value) {
204 m_tagsHasBeenSet = true;
205 m_tags.emplace_back(std::forward<TagsT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
215 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
216 template <typename CreatedAtT = Aws::Utils::DateTime>
217 void SetCreatedAt(CreatedAtT&& value) {
218 m_createdAtHasBeenSet = true;
219 m_createdAt = std::forward<CreatedAtT>(value);
220 }
221 template <typename CreatedAtT = Aws::Utils::DateTime>
222 Tunnel& WithCreatedAt(CreatedAtT&& value) {
223 SetCreatedAt(std::forward<CreatedAtT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
233 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
234 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
235 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
236 m_lastUpdatedAtHasBeenSet = true;
237 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
238 }
239 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
240 Tunnel& WithLastUpdatedAt(LastUpdatedAtT&& value) {
241 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_tunnelId;
247
248 Aws::String m_tunnelArn;
249
251
252 ConnectionState m_sourceConnectionState;
253
254 ConnectionState m_destinationConnectionState;
255
256 Aws::String m_description;
257
258 DestinationConfig m_destinationConfig;
259
260 TimeoutConfig m_timeoutConfig;
261
262 Aws::Vector<Tag> m_tags;
263
264 Aws::Utils::DateTime m_createdAt{};
265
266 Aws::Utils::DateTime m_lastUpdatedAt{};
267 bool m_tunnelIdHasBeenSet = false;
268 bool m_tunnelArnHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_sourceConnectionStateHasBeenSet = false;
271 bool m_destinationConnectionStateHasBeenSet = false;
272 bool m_descriptionHasBeenSet = false;
273 bool m_destinationConfigHasBeenSet = false;
274 bool m_timeoutConfigHasBeenSet = false;
275 bool m_tagsHasBeenSet = false;
276 bool m_createdAtHasBeenSet = false;
277 bool m_lastUpdatedAtHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace IoTSecureTunneling
282} // namespace Aws
const Aws::String & GetTunnelId() const
Definition Tunnel.h:46
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition Tunnel.h:232
void SetDestinationConfig(DestinationConfigT &&value)
Definition Tunnel.h:157
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Tunnel.h:214
void SetDestinationConnectionState(DestinationConnectionStateT &&value)
Definition Tunnel.h:119
const Aws::String & GetDescription() const
Definition Tunnel.h:134
Tunnel & WithTimeoutConfig(TimeoutConfigT &&value)
Definition Tunnel.h:180
const ConnectionState & GetDestinationConnectionState() const
Definition Tunnel.h:116
void SetTimeoutConfig(TimeoutConfigT &&value)
Definition Tunnel.h:175
void SetTunnelArn(TunnelArnT &&value)
Definition Tunnel.h:67
Tunnel & WithStatus(TunnelStatus value)
Definition Tunnel.h:88
AWS_IOTSECURETUNNELING_API Tunnel(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
Definition Tunnel.h:217
AWS_IOTSECURETUNNELING_API Tunnel()=default
AWS_IOTSECURETUNNELING_API Tunnel & operator=(Aws::Utils::Json::JsonView jsonValue)
Tunnel & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition Tunnel.h:240
Tunnel & WithTags(TagsT &&value)
Definition Tunnel.h:198
const DestinationConfig & GetDestinationConfig() const
Definition Tunnel.h:154
void SetDescription(DescriptionT &&value)
Definition Tunnel.h:137
Tunnel & WithDestinationConfig(DestinationConfigT &&value)
Definition Tunnel.h:162
Tunnel & WithDescription(DescriptionT &&value)
Definition Tunnel.h:142
Tunnel & WithTunnelId(TunnelIdT &&value)
Definition Tunnel.h:54
void SetTunnelId(TunnelIdT &&value)
Definition Tunnel.h:49
void SetStatus(TunnelStatus value)
Definition Tunnel.h:84
void SetSourceConnectionState(SourceConnectionStateT &&value)
Definition Tunnel.h:101
bool DestinationConnectionStateHasBeenSet() const
Definition Tunnel.h:117
Tunnel & WithCreatedAt(CreatedAtT &&value)
Definition Tunnel.h:222
Tunnel & WithTunnelArn(TunnelArnT &&value)
Definition Tunnel.h:72
const Aws::Vector< Tag > & GetTags() const
Definition Tunnel.h:190
Tunnel & WithSourceConnectionState(SourceConnectionStateT &&value)
Definition Tunnel.h:106
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition Tunnel.h:235
const ConnectionState & GetSourceConnectionState() const
Definition Tunnel.h:98
bool SourceConnectionStateHasBeenSet() const
Definition Tunnel.h:99
Tunnel & AddTags(TagsT &&value)
Definition Tunnel.h:203
const TimeoutConfig & GetTimeoutConfig() const
Definition Tunnel.h:172
const Aws::String & GetTunnelArn() const
Definition Tunnel.h:64
Tunnel & WithDestinationConnectionState(DestinationConnectionStateT &&value)
Definition Tunnel.h:124
TunnelStatus GetStatus() const
Definition Tunnel.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue