/** * 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 details of the instance group status.

See Also:

AWS * API Reference

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

The current state of the instance group.

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

The current state of the instance group.

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

The current state of the instance group.

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

The current state of the instance group.

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

The current state of the instance group.

*/ inline InstanceGroupStatus& WithState(const InstanceGroupState& value) { SetState(value); return *this;} /** *

The current state of the instance group.

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

The status change reason details for the instance group.

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

The status change reason details for the instance group.

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

The status change reason details for the instance group.

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

The status change reason details for the instance group.

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

The status change reason details for the instance group.

*/ inline InstanceGroupStatus& WithStateChangeReason(const InstanceGroupStateChangeReason& value) { SetStateChangeReason(value); return *this;} /** *

The status change reason details for the instance group.

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

The timeline of the instance group status over time.

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

The timeline of the instance group status over time.

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

The timeline of the instance group status over time.

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

The timeline of the instance group status over time.

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

The timeline of the instance group status over time.

*/ inline InstanceGroupStatus& WithTimeline(const InstanceGroupTimeline& value) { SetTimeline(value); return *this;} /** *

The timeline of the instance group status over time.

*/ inline InstanceGroupStatus& WithTimeline(InstanceGroupTimeline&& value) { SetTimeline(std::move(value)); return *this;} private: InstanceGroupState m_state; bool m_stateHasBeenSet = false; InstanceGroupStateChangeReason m_stateChangeReason; bool m_stateChangeReasonHasBeenSet = false; InstanceGroupTimeline m_timeline; bool m_timelineHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws