/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes telemetry for a VPN tunnel.See Also:
AWS
* API Reference
The number of accepted routes.
*/ inline int GetAcceptedRouteCount() const{ return m_acceptedRouteCount; } /** *The number of accepted routes.
*/ inline bool AcceptedRouteCountHasBeenSet() const { return m_acceptedRouteCountHasBeenSet; } /** *The number of accepted routes.
*/ inline void SetAcceptedRouteCount(int value) { m_acceptedRouteCountHasBeenSet = true; m_acceptedRouteCount = value; } /** *The number of accepted routes.
*/ inline VgwTelemetry& WithAcceptedRouteCount(int value) { SetAcceptedRouteCount(value); return *this;} /** *The date and time of the last change in status.
*/ inline const Aws::Utils::DateTime& GetLastStatusChange() const{ return m_lastStatusChange; } /** *The date and time of the last change in status.
*/ inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; } /** *The date and time of the last change in status.
*/ inline void SetLastStatusChange(const Aws::Utils::DateTime& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = value; } /** *The date and time of the last change in status.
*/ inline void SetLastStatusChange(Aws::Utils::DateTime&& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = std::move(value); } /** *The date and time of the last change in status.
*/ inline VgwTelemetry& WithLastStatusChange(const Aws::Utils::DateTime& value) { SetLastStatusChange(value); return *this;} /** *The date and time of the last change in status.
*/ inline VgwTelemetry& WithLastStatusChange(Aws::Utils::DateTime&& value) { SetLastStatusChange(std::move(value)); return *this;} /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline const Aws::String& GetOutsideIpAddress() const{ return m_outsideIpAddress; } /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline bool OutsideIpAddressHasBeenSet() const { return m_outsideIpAddressHasBeenSet; } /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline void SetOutsideIpAddress(const Aws::String& value) { m_outsideIpAddressHasBeenSet = true; m_outsideIpAddress = value; } /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline void SetOutsideIpAddress(Aws::String&& value) { m_outsideIpAddressHasBeenSet = true; m_outsideIpAddress = std::move(value); } /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline void SetOutsideIpAddress(const char* value) { m_outsideIpAddressHasBeenSet = true; m_outsideIpAddress.assign(value); } /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline VgwTelemetry& WithOutsideIpAddress(const Aws::String& value) { SetOutsideIpAddress(value); return *this;} /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline VgwTelemetry& WithOutsideIpAddress(Aws::String&& value) { SetOutsideIpAddress(std::move(value)); return *this;} /** *The Internet-routable IP address of the virtual private gateway's outside * interface.
*/ inline VgwTelemetry& WithOutsideIpAddress(const char* value) { SetOutsideIpAddress(value); return *this;} /** *The status of the VPN tunnel.
*/ inline const TelemetryStatus& GetStatus() const{ return m_status; } /** *The status of the VPN tunnel.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the VPN tunnel.
*/ inline void SetStatus(const TelemetryStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the VPN tunnel.
*/ inline void SetStatus(TelemetryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the VPN tunnel.
*/ inline VgwTelemetry& WithStatus(const TelemetryStatus& value) { SetStatus(value); return *this;} /** *The status of the VPN tunnel.
*/ inline VgwTelemetry& WithStatus(TelemetryStatus&& value) { SetStatus(std::move(value)); return *this;} /** *If an error occurs, a description of the error.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *If an error occurs, a description of the error.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *If an error occurs, a description of the error.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *If an error occurs, a description of the error.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *If an error occurs, a description of the error.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *If an error occurs, a description of the error.
*/ inline VgwTelemetry& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *If an error occurs, a description of the error.
*/ inline VgwTelemetry& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *If an error occurs, a description of the error.
*/ inline VgwTelemetry& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline VgwTelemetry& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline VgwTelemetry& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
*/ inline VgwTelemetry& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} private: int m_acceptedRouteCount; bool m_acceptedRouteCountHasBeenSet = false; Aws::Utils::DateTime m_lastStatusChange; bool m_lastStatusChangeHasBeenSet = false; Aws::String m_outsideIpAddress; bool m_outsideIpAddressHasBeenSet = false; TelemetryStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws