/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The execution status details of the cluster step.See Also:
* AWS
* API Reference
The execution state of the cluster step.
*/ inline const StepState& GetState() const{ return m_state; } /** *The execution state of the cluster step.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The execution state of the cluster step.
*/ inline void SetState(const StepState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The execution state of the cluster step.
*/ inline void SetState(StepState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The execution state of the cluster step.
*/ inline StepStatus& WithState(const StepState& value) { SetState(value); return *this;} /** *The execution state of the cluster step.
*/ inline StepStatus& WithState(StepState&& value) { SetState(std::move(value)); return *this;} /** *The reason for the step execution status change.
*/ inline const StepStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; } /** *The reason for the step execution status change.
*/ inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; } /** *The reason for the step execution status change.
*/ inline void SetStateChangeReason(const StepStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; } /** *The reason for the step execution status change.
*/ inline void SetStateChangeReason(StepStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); } /** *The reason for the step execution status change.
*/ inline StepStatus& WithStateChangeReason(const StepStateChangeReason& value) { SetStateChangeReason(value); return *this;} /** *The reason for the step execution status change.
*/ inline StepStatus& WithStateChangeReason(StepStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;} /** *The details for the step failure including reason, message, and log file path * where the root cause was identified.
*/ inline const FailureDetails& GetFailureDetails() const{ return m_failureDetails; } /** *The details for the step failure including reason, message, and log file path * where the root cause was identified.
*/ inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; } /** *The details for the step failure including reason, message, and log file path * where the root cause was identified.
*/ inline void SetFailureDetails(const FailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; } /** *The details for the step failure including reason, message, and log file path * where the root cause was identified.
*/ inline void SetFailureDetails(FailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); } /** *The details for the step failure including reason, message, and log file path * where the root cause was identified.
*/ inline StepStatus& WithFailureDetails(const FailureDetails& value) { SetFailureDetails(value); return *this;} /** *The details for the step failure including reason, message, and log file path * where the root cause was identified.
*/ inline StepStatus& WithFailureDetails(FailureDetails&& value) { SetFailureDetails(std::move(value)); return *this;} /** *The timeline of the cluster step status over time.
*/ inline const StepTimeline& GetTimeline() const{ return m_timeline; } /** *The timeline of the cluster step status over time.
*/ inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; } /** *The timeline of the cluster step status over time.
*/ inline void SetTimeline(const StepTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; } /** *The timeline of the cluster step status over time.
*/ inline void SetTimeline(StepTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); } /** *The timeline of the cluster step status over time.
*/ inline StepStatus& WithTimeline(const StepTimeline& value) { SetTimeline(value); return *this;} /** *The timeline of the cluster step status over time.
*/ inline StepStatus& WithTimeline(StepTimeline&& value) { SetTimeline(std::move(value)); return *this;} private: StepState m_state; bool m_stateHasBeenSet = false; StepStateChangeReason m_stateChangeReason; bool m_stateChangeReasonHasBeenSet = false; FailureDetails m_failureDetails; bool m_failureDetailsHasBeenSet = false; StepTimeline m_timeline; bool m_timelineHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws