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>
26namespace IoTSecureTunneling {
37 AWS_IOTSECURETUNNELING_API
Tunnel() =
default;
48 template <
typename TunnelIdT = Aws::String>
50 m_tunnelIdHasBeenSet =
true;
51 m_tunnelId = std::forward<TunnelIdT>(value);
53 template <
typename TunnelIdT = Aws::String>
66 template <
typename TunnelArnT = Aws::String>
68 m_tunnelArnHasBeenSet =
true;
69 m_tunnelArn = std::forward<TunnelArnT>(value);
71 template <
typename TunnelArnT = Aws::String>
85 m_statusHasBeenSet =
true;
100 template <
typename SourceConnectionStateT = ConnectionState>
102 m_sourceConnectionStateHasBeenSet =
true;
103 m_sourceConnectionState = std::forward<SourceConnectionStateT>(value);
105 template <
typename SourceConnectionStateT = ConnectionState>
118 template <
typename DestinationConnectionStateT = ConnectionState>
120 m_destinationConnectionStateHasBeenSet =
true;
121 m_destinationConnectionState = std::forward<DestinationConnectionStateT>(value);
123 template <
typename DestinationConnectionStateT = ConnectionState>
136 template <
typename DescriptionT = Aws::String>
138 m_descriptionHasBeenSet =
true;
139 m_description = std::forward<DescriptionT>(value);
141 template <
typename DescriptionT = Aws::String>
156 template <
typename DestinationConfigT = DestinationConfig>
158 m_destinationConfigHasBeenSet =
true;
159 m_destinationConfig = std::forward<DestinationConfigT>(value);
161 template <
typename DestinationConfigT = DestinationConfig>
174 template <
typename TimeoutConfigT = TimeoutConfig>
176 m_timeoutConfigHasBeenSet =
true;
177 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
179 template <
typename TimeoutConfigT = TimeoutConfig>
192 template <
typename TagsT = Aws::Vector<Tag>>
194 m_tagsHasBeenSet =
true;
195 m_tags = std::forward<TagsT>(value);
197 template <
typename TagsT = Aws::Vector<Tag>>
199 SetTags(std::forward<TagsT>(value));
202 template <
typename TagsT = Tag>
204 m_tagsHasBeenSet =
true;
205 m_tags.emplace_back(std::forward<TagsT>(value));
216 template <
typename CreatedAtT = Aws::Utils::DateTime>
218 m_createdAtHasBeenSet =
true;
219 m_createdAt = std::forward<CreatedAtT>(value);
221 template <
typename CreatedAtT = Aws::Utils::DateTime>
234 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
236 m_lastUpdatedAtHasBeenSet =
true;
237 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
239 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
252 ConnectionState m_sourceConnectionState;
254 ConnectionState m_destinationConnectionState;
258 DestinationConfig m_destinationConfig;
260 TimeoutConfig m_timeoutConfig;
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;
const Aws::String & GetTunnelId() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetDestinationConfig(DestinationConfigT &&value)
bool StatusHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDestinationConnectionState(DestinationConnectionStateT &&value)
const Aws::String & GetDescription() const
Tunnel & WithTimeoutConfig(TimeoutConfigT &&value)
bool TimeoutConfigHasBeenSet() const
bool TagsHasBeenSet() const
const ConnectionState & GetDestinationConnectionState() const
void SetTimeoutConfig(TimeoutConfigT &&value)
bool CreatedAtHasBeenSet() const
void SetTunnelArn(TunnelArnT &&value)
Tunnel & WithStatus(TunnelStatus value)
AWS_IOTSECURETUNNELING_API Tunnel(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
AWS_IOTSECURETUNNELING_API Tunnel()=default
AWS_IOTSECURETUNNELING_API Tunnel & operator=(Aws::Utils::Json::JsonView jsonValue)
Tunnel & WithLastUpdatedAt(LastUpdatedAtT &&value)
Tunnel & WithTags(TagsT &&value)
const DestinationConfig & GetDestinationConfig() const
void SetDescription(DescriptionT &&value)
bool TunnelArnHasBeenSet() const
Tunnel & WithDestinationConfig(DestinationConfigT &&value)
Tunnel & WithDescription(DescriptionT &&value)
bool TunnelIdHasBeenSet() const
Tunnel & WithTunnelId(TunnelIdT &&value)
void SetTunnelId(TunnelIdT &&value)
void SetStatus(TunnelStatus value)
bool DestinationConfigHasBeenSet() const
void SetSourceConnectionState(SourceConnectionStateT &&value)
bool DestinationConnectionStateHasBeenSet() const
Tunnel & WithCreatedAt(CreatedAtT &&value)
Tunnel & WithTunnelArn(TunnelArnT &&value)
const Aws::Vector< Tag > & GetTags() const
Tunnel & WithSourceConnectionState(SourceConnectionStateT &&value)
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const ConnectionState & GetSourceConnectionState() const
bool LastUpdatedAtHasBeenSet() const
bool DescriptionHasBeenSet() const
bool SourceConnectionStateHasBeenSet() const
Tunnel & AddTags(TagsT &&value)
const TimeoutConfig & GetTimeoutConfig() const
const Aws::String & GetTunnelArn() const
void SetTags(TagsT &&value)
Tunnel & WithDestinationConnectionState(DestinationConnectionStateT &&value)
TunnelStatus GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue