/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Name of the step from the SSM document.See Also:
AWS
* API Reference
The details of the step.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The details of the step.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The details of the step.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The details of the step.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The details of the step.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The details of the step.
*/ inline RemediationExecutionStep& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The details of the step.
*/ inline RemediationExecutionStep& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The details of the step.
*/ inline RemediationExecutionStep& WithName(const char* value) { SetName(value); return *this;} /** *The valid status of the step.
*/ inline const RemediationExecutionStepState& GetState() const{ return m_state; } /** *The valid status of the step.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The valid status of the step.
*/ inline void SetState(const RemediationExecutionStepState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The valid status of the step.
*/ inline void SetState(RemediationExecutionStepState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The valid status of the step.
*/ inline RemediationExecutionStep& WithState(const RemediationExecutionStepState& value) { SetState(value); return *this;} /** *The valid status of the step.
*/ inline RemediationExecutionStep& WithState(RemediationExecutionStepState&& value) { SetState(std::move(value)); return *this;} /** *An error message if the step was interrupted during execution.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *An error message if the step was interrupted during execution.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *An error message if the step was interrupted during execution.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *An error message if the step was interrupted during execution.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *An error message if the step was interrupted during execution.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *An error message if the step was interrupted during execution.
*/ inline RemediationExecutionStep& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *An error message if the step was interrupted during execution.
*/ inline RemediationExecutionStep& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *An error message if the step was interrupted during execution.
*/ inline RemediationExecutionStep& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *The time when the step started.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The time when the step started.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The time when the step started.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The time when the step started.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The time when the step started.
*/ inline RemediationExecutionStep& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The time when the step started.
*/ inline RemediationExecutionStep& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The time when the step stopped.
*/ inline const Aws::Utils::DateTime& GetStopTime() const{ return m_stopTime; } /** *The time when the step stopped.
*/ inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; } /** *The time when the step stopped.
*/ inline void SetStopTime(const Aws::Utils::DateTime& value) { m_stopTimeHasBeenSet = true; m_stopTime = value; } /** *The time when the step stopped.
*/ inline void SetStopTime(Aws::Utils::DateTime&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::move(value); } /** *The time when the step stopped.
*/ inline RemediationExecutionStep& WithStopTime(const Aws::Utils::DateTime& value) { SetStopTime(value); return *this;} /** *The time when the step stopped.
*/ inline RemediationExecutionStep& WithStopTime(Aws::Utils::DateTime&& value) { SetStopTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; RemediationExecutionStepState m_state; bool m_stateHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_stopTime; bool m_stopTimeHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws