/** * 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 imagebuilder { namespace Model { /** *

Runtime details and status for the workflow step.

See Also:

* AWS * API Reference

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

A unique identifier for the workflow step, assigned at runtime.

*/ inline const Aws::String& GetStepExecutionId() const{ return m_stepExecutionId; } /** *

A unique identifier for the workflow step, assigned at runtime.

*/ inline bool StepExecutionIdHasBeenSet() const { return m_stepExecutionIdHasBeenSet; } /** *

A unique identifier for the workflow step, assigned at runtime.

*/ inline void SetStepExecutionId(const Aws::String& value) { m_stepExecutionIdHasBeenSet = true; m_stepExecutionId = value; } /** *

A unique identifier for the workflow step, assigned at runtime.

*/ inline void SetStepExecutionId(Aws::String&& value) { m_stepExecutionIdHasBeenSet = true; m_stepExecutionId = std::move(value); } /** *

A unique identifier for the workflow step, assigned at runtime.

*/ inline void SetStepExecutionId(const char* value) { m_stepExecutionIdHasBeenSet = true; m_stepExecutionId.assign(value); } /** *

A unique identifier for the workflow step, assigned at runtime.

*/ inline WorkflowStepMetadata& WithStepExecutionId(const Aws::String& value) { SetStepExecutionId(value); return *this;} /** *

A unique identifier for the workflow step, assigned at runtime.

*/ inline WorkflowStepMetadata& WithStepExecutionId(Aws::String&& value) { SetStepExecutionId(std::move(value)); return *this;} /** *

A unique identifier for the workflow step, assigned at runtime.

*/ inline WorkflowStepMetadata& WithStepExecutionId(const char* value) { SetStepExecutionId(value); return *this;} /** *

The name of the workflow step.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the workflow step.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the workflow step.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the workflow step.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the workflow step.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the workflow step.

*/ inline WorkflowStepMetadata& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the workflow step.

*/ inline WorkflowStepMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the workflow step.

*/ inline WorkflowStepMetadata& WithName(const char* value) { SetName(value); return *this;} /** *

Description of the workflow step.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Description of the workflow step.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Description of the workflow step.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Description of the workflow step.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Description of the workflow step.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Description of the workflow step.

*/ inline WorkflowStepMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Description of the workflow step.

*/ inline WorkflowStepMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Description of the workflow step.

*/ inline WorkflowStepMetadata& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The step action name.

*/ inline const Aws::String& GetAction() const{ return m_action; } /** *

The step action name.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The step action name.

*/ inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The step action name.

*/ inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The step action name.

*/ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *

The step action name.

*/ inline WorkflowStepMetadata& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *

The step action name.

*/ inline WorkflowStepMetadata& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *

The step action name.

*/ inline WorkflowStepMetadata& WithAction(const char* value) { SetAction(value); return *this;} /** *

Runtime status for the workflow step.

*/ inline const WorkflowStepExecutionStatus& GetStatus() const{ return m_status; } /** *

Runtime status for the workflow step.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Runtime status for the workflow step.

*/ inline void SetStatus(const WorkflowStepExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Runtime status for the workflow step.

*/ inline void SetStatus(WorkflowStepExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Runtime status for the workflow step.

*/ inline WorkflowStepMetadata& WithStatus(const WorkflowStepExecutionStatus& value) { SetStatus(value); return *this;} /** *

Runtime status for the workflow step.

*/ inline WorkflowStepMetadata& WithStatus(WorkflowStepExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Reports on the rollback status of the step, if applicable.

*/ inline const WorkflowStepExecutionRollbackStatus& GetRollbackStatus() const{ return m_rollbackStatus; } /** *

Reports on the rollback status of the step, if applicable.

*/ inline bool RollbackStatusHasBeenSet() const { return m_rollbackStatusHasBeenSet; } /** *

Reports on the rollback status of the step, if applicable.

*/ inline void SetRollbackStatus(const WorkflowStepExecutionRollbackStatus& value) { m_rollbackStatusHasBeenSet = true; m_rollbackStatus = value; } /** *

Reports on the rollback status of the step, if applicable.

*/ inline void SetRollbackStatus(WorkflowStepExecutionRollbackStatus&& value) { m_rollbackStatusHasBeenSet = true; m_rollbackStatus = std::move(value); } /** *

Reports on the rollback status of the step, if applicable.

*/ inline WorkflowStepMetadata& WithRollbackStatus(const WorkflowStepExecutionRollbackStatus& value) { SetRollbackStatus(value); return *this;} /** *

Reports on the rollback status of the step, if applicable.

*/ inline WorkflowStepMetadata& WithRollbackStatus(WorkflowStepExecutionRollbackStatus&& value) { SetRollbackStatus(std::move(value)); return *this;} /** *

Detailed output message that the workflow step provides at runtime.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Detailed output message that the workflow step provides at runtime.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Detailed output message that the workflow step provides at runtime.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Detailed output message that the workflow step provides at runtime.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Detailed output message that the workflow step provides at runtime.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Detailed output message that the workflow step provides at runtime.

*/ inline WorkflowStepMetadata& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Detailed output message that the workflow step provides at runtime.

*/ inline WorkflowStepMetadata& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Detailed output message that the workflow step provides at runtime.

*/ inline WorkflowStepMetadata& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline const Aws::String& GetInputs() const{ return m_inputs; } /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; } /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline void SetInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs = value; } /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline void SetInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); } /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline void SetInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.assign(value); } /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline WorkflowStepMetadata& WithInputs(const Aws::String& value) { SetInputs(value); return *this;} /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline WorkflowStepMetadata& WithInputs(Aws::String&& value) { SetInputs(std::move(value)); return *this;} /** *

Input parameters that Image Builder provides for the workflow step.

*/ inline WorkflowStepMetadata& WithInputs(const char* value) { SetInputs(value); return *this;} /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline const Aws::String& GetOutputs() const{ return m_outputs; } /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; } /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline void SetOutputs(const Aws::String& value) { m_outputsHasBeenSet = true; m_outputs = value; } /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline void SetOutputs(Aws::String&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); } /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline void SetOutputs(const char* value) { m_outputsHasBeenSet = true; m_outputs.assign(value); } /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline WorkflowStepMetadata& WithOutputs(const Aws::String& value) { SetOutputs(value); return *this;} /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline WorkflowStepMetadata& WithOutputs(Aws::String&& value) { SetOutputs(std::move(value)); return *this;} /** *

The file names that the workflow step created as output for this runtime * instance of the workflow.

*/ inline WorkflowStepMetadata& WithOutputs(const char* value) { SetOutputs(value); return *this;} /** *

The timestamp when the workflow step started.

*/ inline const Aws::String& GetStartTime() const{ return m_startTime; } /** *

The timestamp when the workflow step started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The timestamp when the workflow step started.

*/ inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The timestamp when the workflow step started.

*/ inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The timestamp when the workflow step started.

*/ inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); } /** *

The timestamp when the workflow step started.

*/ inline WorkflowStepMetadata& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;} /** *

The timestamp when the workflow step started.

*/ inline WorkflowStepMetadata& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;} /** *

The timestamp when the workflow step started.

*/ inline WorkflowStepMetadata& WithStartTime(const char* value) { SetStartTime(value); return *this;} /** *

The timestamp when the workflow step finished.

*/ inline const Aws::String& GetEndTime() const{ return m_endTime; } /** *

The timestamp when the workflow step finished.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The timestamp when the workflow step finished.

*/ inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The timestamp when the workflow step finished.

*/ inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The timestamp when the workflow step finished.

*/ inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); } /** *

The timestamp when the workflow step finished.

*/ inline WorkflowStepMetadata& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;} /** *

The timestamp when the workflow step finished.

*/ inline WorkflowStepMetadata& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;} /** *

The timestamp when the workflow step finished.

*/ inline WorkflowStepMetadata& WithEndTime(const char* value) { SetEndTime(value); return *this;} private: Aws::String m_stepExecutionId; bool m_stepExecutionIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_action; bool m_actionHasBeenSet = false; WorkflowStepExecutionStatus m_status; bool m_statusHasBeenSet = false; WorkflowStepExecutionRollbackStatus m_rollbackStatus; bool m_rollbackStatusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_inputs; bool m_inputsHasBeenSet = false; Aws::String m_outputs; bool m_outputsHasBeenSet = false; Aws::String m_startTime; bool m_startTimeHasBeenSet = false; Aws::String m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws