/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

Returns information about an execution of an action, including the action * execution ID, and the name, version, and timing of the action.

See * Also:

AWS * API Reference

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

The pipeline execution ID for the action execution.

*/ inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; } /** *

The pipeline execution ID for the action execution.

*/ inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; } /** *

The pipeline execution ID for the action execution.

*/ inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; } /** *

The pipeline execution ID for the action execution.

*/ inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::move(value); } /** *

The pipeline execution ID for the action execution.

*/ inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); } /** *

The pipeline execution ID for the action execution.

*/ inline ActionExecutionDetail& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;} /** *

The pipeline execution ID for the action execution.

*/ inline ActionExecutionDetail& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(std::move(value)); return *this;} /** *

The pipeline execution ID for the action execution.

*/ inline ActionExecutionDetail& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;} /** *

The action execution ID.

*/ inline const Aws::String& GetActionExecutionId() const{ return m_actionExecutionId; } /** *

The action execution ID.

*/ inline bool ActionExecutionIdHasBeenSet() const { return m_actionExecutionIdHasBeenSet; } /** *

The action execution ID.

*/ inline void SetActionExecutionId(const Aws::String& value) { m_actionExecutionIdHasBeenSet = true; m_actionExecutionId = value; } /** *

The action execution ID.

*/ inline void SetActionExecutionId(Aws::String&& value) { m_actionExecutionIdHasBeenSet = true; m_actionExecutionId = std::move(value); } /** *

The action execution ID.

*/ inline void SetActionExecutionId(const char* value) { m_actionExecutionIdHasBeenSet = true; m_actionExecutionId.assign(value); } /** *

The action execution ID.

*/ inline ActionExecutionDetail& WithActionExecutionId(const Aws::String& value) { SetActionExecutionId(value); return *this;} /** *

The action execution ID.

*/ inline ActionExecutionDetail& WithActionExecutionId(Aws::String&& value) { SetActionExecutionId(std::move(value)); return *this;} /** *

The action execution ID.

*/ inline ActionExecutionDetail& WithActionExecutionId(const char* value) { SetActionExecutionId(value); return *this;} /** *

The version of the pipeline where the action was run.

*/ inline int GetPipelineVersion() const{ return m_pipelineVersion; } /** *

The version of the pipeline where the action was run.

*/ inline bool PipelineVersionHasBeenSet() const { return m_pipelineVersionHasBeenSet; } /** *

The version of the pipeline where the action was run.

*/ inline void SetPipelineVersion(int value) { m_pipelineVersionHasBeenSet = true; m_pipelineVersion = value; } /** *

The version of the pipeline where the action was run.

*/ inline ActionExecutionDetail& WithPipelineVersion(int value) { SetPipelineVersion(value); return *this;} /** *

The name of the stage that contains the action.

*/ inline const Aws::String& GetStageName() const{ return m_stageName; } /** *

The name of the stage that contains the action.

*/ inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; } /** *

The name of the stage that contains the action.

*/ inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; } /** *

The name of the stage that contains the action.

*/ inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); } /** *

The name of the stage that contains the action.

*/ inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); } /** *

The name of the stage that contains the action.

*/ inline ActionExecutionDetail& WithStageName(const Aws::String& value) { SetStageName(value); return *this;} /** *

The name of the stage that contains the action.

*/ inline ActionExecutionDetail& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;} /** *

The name of the stage that contains the action.

*/ inline ActionExecutionDetail& WithStageName(const char* value) { SetStageName(value); return *this;} /** *

The name of the action.

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *

The name of the action.

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *

The name of the action.

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *

The name of the action.

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *

The name of the action.

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *

The name of the action.

*/ inline ActionExecutionDetail& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *

The name of the action.

*/ inline ActionExecutionDetail& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *

The name of the action.

*/ inline ActionExecutionDetail& WithActionName(const char* value) { SetActionName(value); return *this;} /** *

The start time of the action execution.

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

The start time of the action execution.

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

The start time of the action execution.

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

The start time of the action execution.

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

The start time of the action execution.

*/ inline ActionExecutionDetail& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time of the action execution.

*/ inline ActionExecutionDetail& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The last update time of the action execution.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The last update time of the action execution.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The last update time of the action execution.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The last update time of the action execution.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The last update time of the action execution.

*/ inline ActionExecutionDetail& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The last update time of the action execution.

*/ inline ActionExecutionDetail& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

The status of the action execution. Status categories are * InProgress, Succeeded, and Failed.

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

The status of the action execution. Status categories are * InProgress, Succeeded, and Failed.

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

The status of the action execution. Status categories are * InProgress, Succeeded, and Failed.

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

The status of the action execution. Status categories are * InProgress, Succeeded, and Failed.

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

The status of the action execution. Status categories are * InProgress, Succeeded, and Failed.

*/ inline ActionExecutionDetail& WithStatus(const ActionExecutionStatus& value) { SetStatus(value); return *this;} /** *

The status of the action execution. Status categories are * InProgress, Succeeded, and Failed.

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

Input details for the action execution, such as role ARN, Region, and input * artifacts.

*/ inline const ActionExecutionInput& GetInput() const{ return m_input; } /** *

Input details for the action execution, such as role ARN, Region, and input * artifacts.

*/ inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } /** *

Input details for the action execution, such as role ARN, Region, and input * artifacts.

*/ inline void SetInput(const ActionExecutionInput& value) { m_inputHasBeenSet = true; m_input = value; } /** *

Input details for the action execution, such as role ARN, Region, and input * artifacts.

*/ inline void SetInput(ActionExecutionInput&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } /** *

Input details for the action execution, such as role ARN, Region, and input * artifacts.

*/ inline ActionExecutionDetail& WithInput(const ActionExecutionInput& value) { SetInput(value); return *this;} /** *

Input details for the action execution, such as role ARN, Region, and input * artifacts.

*/ inline ActionExecutionDetail& WithInput(ActionExecutionInput&& value) { SetInput(std::move(value)); return *this;} /** *

Output details for the action execution, such as the action execution * result.

*/ inline const ActionExecutionOutput& GetOutput() const{ return m_output; } /** *

Output details for the action execution, such as the action execution * result.

*/ inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; } /** *

Output details for the action execution, such as the action execution * result.

*/ inline void SetOutput(const ActionExecutionOutput& value) { m_outputHasBeenSet = true; m_output = value; } /** *

Output details for the action execution, such as the action execution * result.

*/ inline void SetOutput(ActionExecutionOutput&& value) { m_outputHasBeenSet = true; m_output = std::move(value); } /** *

Output details for the action execution, such as the action execution * result.

*/ inline ActionExecutionDetail& WithOutput(const ActionExecutionOutput& value) { SetOutput(value); return *this;} /** *

Output details for the action execution, such as the action execution * result.

*/ inline ActionExecutionDetail& WithOutput(ActionExecutionOutput&& value) { SetOutput(std::move(value)); return *this;} private: Aws::String m_pipelineExecutionId; bool m_pipelineExecutionIdHasBeenSet = false; Aws::String m_actionExecutionId; bool m_actionExecutionIdHasBeenSet = false; int m_pipelineVersion; bool m_pipelineVersionHasBeenSet = false; Aws::String m_stageName; bool m_stageNameHasBeenSet = false; Aws::String m_actionName; bool m_actionNameHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; ActionExecutionStatus m_status; bool m_statusHasBeenSet = false; ActionExecutionInput m_input; bool m_inputHasBeenSet = false; ActionExecutionOutput m_output; bool m_outputHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws