/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Chime { namespace Model { /** *

The termination health details, including the source IP address and timestamp * of the last successful SIP OPTIONS message from your SIP * infrastructure.

See Also:

AWS * API Reference

*/ class TerminationHealth { public: AWS_CHIME_API TerminationHealth(); AWS_CHIME_API TerminationHealth(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API TerminationHealth& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The timestamp, in ISO 8601 format.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The timestamp, in ISO 8601 format.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The timestamp, in ISO 8601 format.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The timestamp, in ISO 8601 format.

*/ inline TerminationHealth& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The timestamp, in ISO 8601 format.

*/ inline TerminationHealth& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The source IP address.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source IP address.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source IP address.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source IP address.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source IP address.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source IP address.

*/ inline TerminationHealth& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source IP address.

*/ inline TerminationHealth& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source IP address.

*/ inline TerminationHealth& WithSource(const char* value) { SetSource(value); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws