/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A connection between a source computer and a destination
* device.See Also:
AWS
* API Reference
A unique alpha-numeric ID that identifies a tunnel.
*/ inline const Aws::String& GetTunnelId() const{ return m_tunnelId; } /** *A unique alpha-numeric ID that identifies a tunnel.
*/ inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; } /** *A unique alpha-numeric ID that identifies a tunnel.
*/ inline void SetTunnelId(const Aws::String& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = value; } /** *A unique alpha-numeric ID that identifies a tunnel.
*/ inline void SetTunnelId(Aws::String&& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = std::move(value); } /** *A unique alpha-numeric ID that identifies a tunnel.
*/ inline void SetTunnelId(const char* value) { m_tunnelIdHasBeenSet = true; m_tunnelId.assign(value); } /** *A unique alpha-numeric ID that identifies a tunnel.
*/ inline Tunnel& WithTunnelId(const Aws::String& value) { SetTunnelId(value); return *this;} /** *A unique alpha-numeric ID that identifies a tunnel.
*/ inline Tunnel& WithTunnelId(Aws::String&& value) { SetTunnelId(std::move(value)); return *this;} /** *A unique alpha-numeric ID that identifies a tunnel.
*/ inline Tunnel& WithTunnelId(const char* value) { SetTunnelId(value); return *this;} /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline const Aws::String& GetTunnelArn() const{ return m_tunnelArn; } /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline bool TunnelArnHasBeenSet() const { return m_tunnelArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline void SetTunnelArn(const Aws::String& value) { m_tunnelArnHasBeenSet = true; m_tunnelArn = value; } /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline void SetTunnelArn(Aws::String&& value) { m_tunnelArnHasBeenSet = true; m_tunnelArn = std::move(value); } /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline void SetTunnelArn(const char* value) { m_tunnelArnHasBeenSet = true; m_tunnelArn.assign(value); } /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline Tunnel& WithTunnelArn(const Aws::String& value) { SetTunnelArn(value); return *this;} /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline Tunnel& WithTunnelArn(Aws::String&& value) { SetTunnelArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of a tunnel.
*/ inline Tunnel& WithTunnelArn(const char* value) { SetTunnelArn(value); return *this;} /** *The status of a tunnel. Valid values are: Open and Closed.
*/ inline const TunnelStatus& GetStatus() const{ return m_status; } /** *The status of a tunnel. Valid values are: Open and Closed.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of a tunnel. Valid values are: Open and Closed.
*/ inline void SetStatus(const TunnelStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of a tunnel. Valid values are: Open and Closed.
*/ inline void SetStatus(TunnelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of a tunnel. Valid values are: Open and Closed.
*/ inline Tunnel& WithStatus(const TunnelStatus& value) { SetStatus(value); return *this;} /** *The status of a tunnel. Valid values are: Open and Closed.
*/ inline Tunnel& WithStatus(TunnelStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The connection state of the source application.
*/ inline const ConnectionState& GetSourceConnectionState() const{ return m_sourceConnectionState; } /** *The connection state of the source application.
*/ inline bool SourceConnectionStateHasBeenSet() const { return m_sourceConnectionStateHasBeenSet; } /** *The connection state of the source application.
*/ inline void SetSourceConnectionState(const ConnectionState& value) { m_sourceConnectionStateHasBeenSet = true; m_sourceConnectionState = value; } /** *The connection state of the source application.
*/ inline void SetSourceConnectionState(ConnectionState&& value) { m_sourceConnectionStateHasBeenSet = true; m_sourceConnectionState = std::move(value); } /** *The connection state of the source application.
*/ inline Tunnel& WithSourceConnectionState(const ConnectionState& value) { SetSourceConnectionState(value); return *this;} /** *The connection state of the source application.
*/ inline Tunnel& WithSourceConnectionState(ConnectionState&& value) { SetSourceConnectionState(std::move(value)); return *this;} /** *The connection state of the destination application.
*/ inline const ConnectionState& GetDestinationConnectionState() const{ return m_destinationConnectionState; } /** *The connection state of the destination application.
*/ inline bool DestinationConnectionStateHasBeenSet() const { return m_destinationConnectionStateHasBeenSet; } /** *The connection state of the destination application.
*/ inline void SetDestinationConnectionState(const ConnectionState& value) { m_destinationConnectionStateHasBeenSet = true; m_destinationConnectionState = value; } /** *The connection state of the destination application.
*/ inline void SetDestinationConnectionState(ConnectionState&& value) { m_destinationConnectionStateHasBeenSet = true; m_destinationConnectionState = std::move(value); } /** *The connection state of the destination application.
*/ inline Tunnel& WithDestinationConnectionState(const ConnectionState& value) { SetDestinationConnectionState(value); return *this;} /** *The connection state of the destination application.
*/ inline Tunnel& WithDestinationConnectionState(ConnectionState&& value) { SetDestinationConnectionState(std::move(value)); return *this;} /** *A description of the tunnel.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the tunnel.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the tunnel.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the tunnel.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the tunnel.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the tunnel.
*/ inline Tunnel& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the tunnel.
*/ inline Tunnel& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the tunnel.
*/ inline Tunnel& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The destination configuration that specifies the thing name of the * destination device and a service name that the local proxy uses to connect to * the destination application.
*/ inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; } /** *The destination configuration that specifies the thing name of the * destination device and a service name that the local proxy uses to connect to * the destination application.
*/ inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; } /** *The destination configuration that specifies the thing name of the * destination device and a service name that the local proxy uses to connect to * the destination application.
*/ inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; } /** *The destination configuration that specifies the thing name of the * destination device and a service name that the local proxy uses to connect to * the destination application.
*/ inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); } /** *The destination configuration that specifies the thing name of the * destination device and a service name that the local proxy uses to connect to * the destination application.
*/ inline Tunnel& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;} /** *The destination configuration that specifies the thing name of the * destination device and a service name that the local proxy uses to connect to * the destination application.
*/ inline Tunnel& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;} /** *Timeout configuration for the tunnel.
*/ inline const TimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; } /** *Timeout configuration for the tunnel.
*/ inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; } /** *Timeout configuration for the tunnel.
*/ inline void SetTimeoutConfig(const TimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; } /** *Timeout configuration for the tunnel.
*/ inline void SetTimeoutConfig(TimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); } /** *Timeout configuration for the tunnel.
*/ inline Tunnel& WithTimeoutConfig(const TimeoutConfig& value) { SetTimeoutConfig(value); return *this;} /** *Timeout configuration for the tunnel.
*/ inline Tunnel& WithTimeoutConfig(TimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;} /** *A list of tag metadata associated with the secure tunnel.
*/ inline const Aws::VectorA list of tag metadata associated with the secure tunnel.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *A list of tag metadata associated with the secure tunnel.
*/ inline void SetTags(const Aws::VectorA list of tag metadata associated with the secure tunnel.
*/ inline void SetTags(Aws::VectorA list of tag metadata associated with the secure tunnel.
*/ inline Tunnel& WithTags(const Aws::VectorA list of tag metadata associated with the secure tunnel.
*/ inline Tunnel& WithTags(Aws::VectorA list of tag metadata associated with the secure tunnel.
*/ inline Tunnel& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *A list of tag metadata associated with the secure tunnel.
*/ inline Tunnel& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The time when the tunnel was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The time when the tunnel was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The time when the tunnel was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The time when the tunnel was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The time when the tunnel was created.
*/ inline Tunnel& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The time when the tunnel was created.
*/ inline Tunnel& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The last time the tunnel was updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *The last time the tunnel was updated.
*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *The last time the tunnel was updated.
*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *The last time the tunnel was updated.
*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *The last time the tunnel was updated.
*/ inline Tunnel& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *The last time the tunnel was updated.
*/ inline Tunnel& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} private: Aws::String m_tunnelId; bool m_tunnelIdHasBeenSet = false; Aws::String m_tunnelArn; bool m_tunnelArnHasBeenSet = false; TunnelStatus m_status; bool m_statusHasBeenSet = false; ConnectionState m_sourceConnectionState; bool m_sourceConnectionStateHasBeenSet = false; ConnectionState m_destinationConnectionState; bool m_destinationConnectionStateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; DestinationConfig m_destinationConfig; bool m_destinationConfigHasBeenSet = false; TimeoutConfig m_timeoutConfig; bool m_timeoutConfigHasBeenSet = false; Aws::Vector