/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The instance status details.See Also:
AWS
* API Reference
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