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

An object representing the result of a container instance health status * check.

See Also:

AWS * API Reference

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

The type of container instance health status that was verified.

*/ inline const InstanceHealthCheckType& GetType() const{ return m_type; } /** *

The type of container instance health status that was verified.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of container instance health status that was verified.

*/ inline void SetType(const InstanceHealthCheckType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of container instance health status that was verified.

*/ inline void SetType(InstanceHealthCheckType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of container instance health status that was verified.

*/ inline InstanceHealthCheckResult& WithType(const InstanceHealthCheckType& value) { SetType(value); return *this;} /** *

The type of container instance health status that was verified.

*/ inline InstanceHealthCheckResult& WithType(InstanceHealthCheckType&& value) { SetType(std::move(value)); return *this;} /** *

The container instance health status.

*/ inline const InstanceHealthCheckState& GetStatus() const{ return m_status; } /** *

The container instance health status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The container instance health status.

*/ inline void SetStatus(const InstanceHealthCheckState& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The container instance health status.

*/ inline void SetStatus(InstanceHealthCheckState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The container instance health status.

*/ inline InstanceHealthCheckResult& WithStatus(const InstanceHealthCheckState& value) { SetStatus(value); return *this;} /** *

The container instance health status.

*/ inline InstanceHealthCheckResult& WithStatus(InstanceHealthCheckState&& value) { SetStatus(std::move(value)); return *this;} /** *

The Unix timestamp for when the container instance health status was last * updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; } /** *

The Unix timestamp for when the container instance health status was last * updated.

*/ inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; } /** *

The Unix timestamp for when the container instance health status was last * updated.

*/ inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; } /** *

The Unix timestamp for when the container instance health status was last * updated.

*/ inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); } /** *

The Unix timestamp for when the container instance health status was last * updated.

*/ inline InstanceHealthCheckResult& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;} /** *

The Unix timestamp for when the container instance health status was last * updated.

*/ inline InstanceHealthCheckResult& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;} /** *

The Unix timestamp for when the container instance health status last * changed.

*/ inline const Aws::Utils::DateTime& GetLastStatusChange() const{ return m_lastStatusChange; } /** *

The Unix timestamp for when the container instance health status last * changed.

*/ inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; } /** *

The Unix timestamp for when the container instance health status last * changed.

*/ inline void SetLastStatusChange(const Aws::Utils::DateTime& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = value; } /** *

The Unix timestamp for when the container instance health status last * changed.

*/ inline void SetLastStatusChange(Aws::Utils::DateTime&& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = std::move(value); } /** *

The Unix timestamp for when the container instance health status last * changed.

*/ inline InstanceHealthCheckResult& WithLastStatusChange(const Aws::Utils::DateTime& value) { SetLastStatusChange(value); return *this;} /** *

The Unix timestamp for when the container instance health status last * changed.

*/ inline InstanceHealthCheckResult& WithLastStatusChange(Aws::Utils::DateTime&& value) { SetLastStatusChange(std::move(value)); return *this;} private: InstanceHealthCheckType m_type; bool m_typeHasBeenSet = false; InstanceHealthCheckState m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastUpdated; bool m_lastUpdatedHasBeenSet = false; Aws::Utils::DateTime m_lastStatusChange; bool m_lastStatusChangeHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws