/** * 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 EMR { namespace Model { /** *

The instance status details.

See Also:

AWS * API Reference

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

The current state of the instance.

*/ inline const InstanceState& GetState() const{ return m_state; } /** *

The current state of the instance.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the instance.

*/ inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the instance.

*/ inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the instance.

*/ inline InstanceStatus& WithState(const InstanceState& value) { SetState(value); return *this;} /** *

The current state of the instance.

*/ inline InstanceStatus& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;} /** *

The details of the status change reason for the instance.

*/ inline const InstanceStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; } /** *

The details of the status change reason for the instance.

*/ inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; } /** *

The details of the status change reason for the instance.

*/ inline void SetStateChangeReason(const InstanceStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; } /** *

The details of the status change reason for the instance.

*/ inline void SetStateChangeReason(InstanceStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); } /** *

The details of the status change reason for the instance.

*/ inline InstanceStatus& WithStateChangeReason(const InstanceStateChangeReason& value) { SetStateChangeReason(value); return *this;} /** *

The details of the status change reason for the instance.

*/ inline InstanceStatus& WithStateChangeReason(InstanceStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;} /** *

The timeline of the instance status over time.

*/ inline const InstanceTimeline& GetTimeline() const{ return m_timeline; } /** *

The timeline of the instance status over time.

*/ inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; } /** *

The timeline of the instance status over time.

*/ inline void SetTimeline(const InstanceTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; } /** *

The timeline of the instance status over time.

*/ inline void SetTimeline(InstanceTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); } /** *

The timeline of the instance status over time.

*/ inline InstanceStatus& WithTimeline(const InstanceTimeline& value) { SetTimeline(value); return *this;} /** *

The timeline of the instance status over time.

*/ inline InstanceStatus& WithTimeline(InstanceTimeline&& value) { SetTimeline(std::move(value)); return *this;} private: InstanceState m_state; bool m_stateHasBeenSet = false; InstanceStateChangeReason m_stateChangeReason; bool m_stateChangeReasonHasBeenSet = false; InstanceTimeline m_timeline; bool m_timelineHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws