/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The execution state of a step.See Also:
AWS
* API Reference
The state of the step.
*/ inline const StepExecutionState& GetState() const{ return m_state; } /** *The state of the step.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the step.
*/ inline void SetState(const StepExecutionState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the step.
*/ inline void SetState(StepExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the step.
*/ inline StepExecutionStatusDetail& WithState(const StepExecutionState& value) { SetState(value); return *this;} /** *The state of the step.
*/ inline StepExecutionStatusDetail& WithState(StepExecutionState&& value) { SetState(std::move(value)); return *this;} /** *The creation date and time of the step.
*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *The creation date and time of the step.
*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *The creation date and time of the step.
*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *The creation date and time of the step.
*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *The creation date and time of the step.
*/ inline StepExecutionStatusDetail& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *The creation date and time of the step.
*/ inline StepExecutionStatusDetail& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *The start date and time of the step.
*/ inline const Aws::Utils::DateTime& GetStartDateTime() const{ return m_startDateTime; } /** *The start date and time of the step.
*/ inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; } /** *The start date and time of the step.
*/ inline void SetStartDateTime(const Aws::Utils::DateTime& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; } /** *The start date and time of the step.
*/ inline void SetStartDateTime(Aws::Utils::DateTime&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::move(value); } /** *The start date and time of the step.
*/ inline StepExecutionStatusDetail& WithStartDateTime(const Aws::Utils::DateTime& value) { SetStartDateTime(value); return *this;} /** *The start date and time of the step.
*/ inline StepExecutionStatusDetail& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(value)); return *this;} /** *The completion date and time of the step.
*/ inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; } /** *The completion date and time of the step.
*/ inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; } /** *The completion date and time of the step.
*/ inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; } /** *The completion date and time of the step.
*/ inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); } /** *The completion date and time of the step.
*/ inline StepExecutionStatusDetail& WithEndDateTime(const Aws::Utils::DateTime& value) { SetEndDateTime(value); return *this;} /** *The completion date and time of the step.
*/ inline StepExecutionStatusDetail& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(value)); return *this;} /** *A description of the step's current state.
*/ inline const Aws::String& GetLastStateChangeReason() const{ return m_lastStateChangeReason; } /** *A description of the step's current state.
*/ inline bool LastStateChangeReasonHasBeenSet() const { return m_lastStateChangeReasonHasBeenSet; } /** *A description of the step's current state.
*/ inline void SetLastStateChangeReason(const Aws::String& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = value; } /** *A description of the step's current state.
*/ inline void SetLastStateChangeReason(Aws::String&& value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason = std::move(value); } /** *A description of the step's current state.
*/ inline void SetLastStateChangeReason(const char* value) { m_lastStateChangeReasonHasBeenSet = true; m_lastStateChangeReason.assign(value); } /** *A description of the step's current state.
*/ inline StepExecutionStatusDetail& WithLastStateChangeReason(const Aws::String& value) { SetLastStateChangeReason(value); return *this;} /** *A description of the step's current state.
*/ inline StepExecutionStatusDetail& WithLastStateChangeReason(Aws::String&& value) { SetLastStateChangeReason(std::move(value)); return *this;} /** *A description of the step's current state.
*/ inline StepExecutionStatusDetail& WithLastStateChangeReason(const char* value) { SetLastStateChangeReason(value); return *this;} private: StepExecutionState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::Utils::DateTime m_startDateTime; bool m_startDateTimeHasBeenSet = false; Aws::Utils::DateTime m_endDateTime; bool m_endDateTimeHasBeenSet = false; Aws::String m_lastStateChangeReason; bool m_lastStateChangeReasonHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws