/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace imagebuilder { namespace Model { class GetWorkflowExecutionResult { public: AWS_IMAGEBUILDER_API GetWorkflowExecutionResult(); AWS_IMAGEBUILDER_API GetWorkflowExecutionResult(const Aws::AmazonWebServiceResult& result); AWS_IMAGEBUILDER_API GetWorkflowExecutionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The request ID that uniquely identifies this request.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The request ID that uniquely identifies this request.

*/ inline void SetRequestId(const Aws::String& value) { m_requestId = value; } /** *

The request ID that uniquely identifies this request.

*/ inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } /** *

The request ID that uniquely identifies this request.

*/ inline void SetRequestId(const char* value) { m_requestId.assign(value); } /** *

The request ID that uniquely identifies this request.

*/ inline GetWorkflowExecutionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The request ID that uniquely identifies this request.

*/ inline GetWorkflowExecutionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The request ID that uniquely identifies this request.

*/ inline GetWorkflowExecutionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the build version for the Image Builder * workflow resource that defines the specified runtime instance of the * workflow.

*/ inline const Aws::String& GetWorkflowBuildVersionArn() const{ return m_workflowBuildVersionArn; } /** *

The Amazon Resource Name (ARN) of the build version for the Image Builder * workflow resource that defines the specified runtime instance of the * workflow.

*/ inline void SetWorkflowBuildVersionArn(const Aws::String& value) { m_workflowBuildVersionArn = value; } /** *

The Amazon Resource Name (ARN) of the build version for the Image Builder * workflow resource that defines the specified runtime instance of the * workflow.

*/ inline void SetWorkflowBuildVersionArn(Aws::String&& value) { m_workflowBuildVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the build version for the Image Builder * workflow resource that defines the specified runtime instance of the * workflow.

*/ inline void SetWorkflowBuildVersionArn(const char* value) { m_workflowBuildVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the build version for the Image Builder * workflow resource that defines the specified runtime instance of the * workflow.

*/ inline GetWorkflowExecutionResult& WithWorkflowBuildVersionArn(const Aws::String& value) { SetWorkflowBuildVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the build version for the Image Builder * workflow resource that defines the specified runtime instance of the * workflow.

*/ inline GetWorkflowExecutionResult& WithWorkflowBuildVersionArn(Aws::String&& value) { SetWorkflowBuildVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the build version for the Image Builder * workflow resource that defines the specified runtime instance of the * workflow.

*/ inline GetWorkflowExecutionResult& WithWorkflowBuildVersionArn(const char* value) { SetWorkflowBuildVersionArn(value); return *this;} /** *

The unique identifier that Image Builder assigned to keep track of runtime * details when it ran the workflow.

*/ inline const Aws::String& GetWorkflowExecutionId() const{ return m_workflowExecutionId; } /** *

The unique identifier that Image Builder assigned to keep track of runtime * details when it ran the workflow.

*/ inline void SetWorkflowExecutionId(const Aws::String& value) { m_workflowExecutionId = value; } /** *

The unique identifier that Image Builder assigned to keep track of runtime * details when it ran the workflow.

*/ inline void SetWorkflowExecutionId(Aws::String&& value) { m_workflowExecutionId = std::move(value); } /** *

The unique identifier that Image Builder assigned to keep track of runtime * details when it ran the workflow.

*/ inline void SetWorkflowExecutionId(const char* value) { m_workflowExecutionId.assign(value); } /** *

The unique identifier that Image Builder assigned to keep track of runtime * details when it ran the workflow.

*/ inline GetWorkflowExecutionResult& WithWorkflowExecutionId(const Aws::String& value) { SetWorkflowExecutionId(value); return *this;} /** *

The unique identifier that Image Builder assigned to keep track of runtime * details when it ran the workflow.

*/ inline GetWorkflowExecutionResult& WithWorkflowExecutionId(Aws::String&& value) { SetWorkflowExecutionId(std::move(value)); return *this;} /** *

The unique identifier that Image Builder assigned to keep track of runtime * details when it ran the workflow.

*/ inline GetWorkflowExecutionResult& WithWorkflowExecutionId(const char* value) { SetWorkflowExecutionId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the image resource build version that the * specified runtime instance of the workflow created.

*/ inline const Aws::String& GetImageBuildVersionArn() const{ return m_imageBuildVersionArn; } /** *

The Amazon Resource Name (ARN) of the image resource build version that the * specified runtime instance of the workflow created.

*/ inline void SetImageBuildVersionArn(const Aws::String& value) { m_imageBuildVersionArn = value; } /** *

The Amazon Resource Name (ARN) of the image resource build version that the * specified runtime instance of the workflow created.

*/ inline void SetImageBuildVersionArn(Aws::String&& value) { m_imageBuildVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the image resource build version that the * specified runtime instance of the workflow created.

*/ inline void SetImageBuildVersionArn(const char* value) { m_imageBuildVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the image resource build version that the * specified runtime instance of the workflow created.

*/ inline GetWorkflowExecutionResult& WithImageBuildVersionArn(const Aws::String& value) { SetImageBuildVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the image resource build version that the * specified runtime instance of the workflow created.

*/ inline GetWorkflowExecutionResult& WithImageBuildVersionArn(Aws::String&& value) { SetImageBuildVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the image resource build version that the * specified runtime instance of the workflow created.

*/ inline GetWorkflowExecutionResult& WithImageBuildVersionArn(const char* value) { SetImageBuildVersionArn(value); return *this;} /** *

The type of workflow that Image Builder ran for the specified runtime * instance of the workflow.

*/ inline const WorkflowType& GetType() const{ return m_type; } /** *

The type of workflow that Image Builder ran for the specified runtime * instance of the workflow.

*/ inline void SetType(const WorkflowType& value) { m_type = value; } /** *

The type of workflow that Image Builder ran for the specified runtime * instance of the workflow.

*/ inline void SetType(WorkflowType&& value) { m_type = std::move(value); } /** *

The type of workflow that Image Builder ran for the specified runtime * instance of the workflow.

*/ inline GetWorkflowExecutionResult& WithType(const WorkflowType& value) { SetType(value); return *this;} /** *

The type of workflow that Image Builder ran for the specified runtime * instance of the workflow.

*/ inline GetWorkflowExecutionResult& WithType(WorkflowType&& value) { SetType(std::move(value)); return *this;} /** *

The current runtime status for the specified runtime instance of the * workflow.

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

The current runtime status for the specified runtime instance of the * workflow.

*/ inline void SetStatus(const WorkflowExecutionStatus& value) { m_status = value; } /** *

The current runtime status for the specified runtime instance of the * workflow.

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

The current runtime status for the specified runtime instance of the * workflow.

*/ inline GetWorkflowExecutionResult& WithStatus(const WorkflowExecutionStatus& value) { SetStatus(value); return *this;} /** *

The current runtime status for the specified runtime instance of the * workflow.

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

The output message from the specified runtime instance of the workflow, if * applicable.

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

The output message from the specified runtime instance of the workflow, if * applicable.

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

The output message from the specified runtime instance of the workflow, if * applicable.

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

The output message from the specified runtime instance of the workflow, if * applicable.

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

The output message from the specified runtime instance of the workflow, if * applicable.

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

The output message from the specified runtime instance of the workflow, if * applicable.

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

The output message from the specified runtime instance of the workflow, if * applicable.

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

The total number of steps in the specified runtime instance of the workflow * that ran. This number should equal the sum of the step counts for steps that * succeeded, were skipped, and failed.

*/ inline int GetTotalStepCount() const{ return m_totalStepCount; } /** *

The total number of steps in the specified runtime instance of the workflow * that ran. This number should equal the sum of the step counts for steps that * succeeded, were skipped, and failed.

*/ inline void SetTotalStepCount(int value) { m_totalStepCount = value; } /** *

The total number of steps in the specified runtime instance of the workflow * that ran. This number should equal the sum of the step counts for steps that * succeeded, were skipped, and failed.

*/ inline GetWorkflowExecutionResult& WithTotalStepCount(int value) { SetTotalStepCount(value); return *this;} /** *

A runtime count for the number of steps that ran successfully in the * specified runtime instance of the workflow.

*/ inline int GetTotalStepsSucceeded() const{ return m_totalStepsSucceeded; } /** *

A runtime count for the number of steps that ran successfully in the * specified runtime instance of the workflow.

*/ inline void SetTotalStepsSucceeded(int value) { m_totalStepsSucceeded = value; } /** *

A runtime count for the number of steps that ran successfully in the * specified runtime instance of the workflow.

*/ inline GetWorkflowExecutionResult& WithTotalStepsSucceeded(int value) { SetTotalStepsSucceeded(value); return *this;} /** *

A runtime count for the number of steps that failed in the specified runtime * instance of the workflow.

*/ inline int GetTotalStepsFailed() const{ return m_totalStepsFailed; } /** *

A runtime count for the number of steps that failed in the specified runtime * instance of the workflow.

*/ inline void SetTotalStepsFailed(int value) { m_totalStepsFailed = value; } /** *

A runtime count for the number of steps that failed in the specified runtime * instance of the workflow.

*/ inline GetWorkflowExecutionResult& WithTotalStepsFailed(int value) { SetTotalStepsFailed(value); return *this;} /** *

A runtime count for the number of steps that were skipped in the specified * runtime instance of the workflow.

*/ inline int GetTotalStepsSkipped() const{ return m_totalStepsSkipped; } /** *

A runtime count for the number of steps that were skipped in the specified * runtime instance of the workflow.

*/ inline void SetTotalStepsSkipped(int value) { m_totalStepsSkipped = value; } /** *

A runtime count for the number of steps that were skipped in the specified * runtime instance of the workflow.

*/ inline GetWorkflowExecutionResult& WithTotalStepsSkipped(int value) { SetTotalStepsSkipped(value); return *this;} /** *

The timestamp when the specified runtime instance of the workflow * started.

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

The timestamp when the specified runtime instance of the workflow * started.

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

The timestamp when the specified runtime instance of the workflow * started.

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

The timestamp when the specified runtime instance of the workflow * started.

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

The timestamp when the specified runtime instance of the workflow * started.

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

The timestamp when the specified runtime instance of the workflow * started.

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

The timestamp when the specified runtime instance of the workflow * started.

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

The timestamp when the specified runtime instance of the workflow * finished.

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

The timestamp when the specified runtime instance of the workflow * finished.

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

The timestamp when the specified runtime instance of the workflow * finished.

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

The timestamp when the specified runtime instance of the workflow * finished.

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

The timestamp when the specified runtime instance of the workflow * finished.

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

The timestamp when the specified runtime instance of the workflow * finished.

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

The timestamp when the specified runtime instance of the workflow * finished.

*/ inline GetWorkflowExecutionResult& WithEndTime(const char* value) { SetEndTime(value); return *this;} private: Aws::String m_requestId; Aws::String m_workflowBuildVersionArn; Aws::String m_workflowExecutionId; Aws::String m_imageBuildVersionArn; WorkflowType m_type; WorkflowExecutionStatus m_status; Aws::String m_message; int m_totalStepCount; int m_totalStepsSucceeded; int m_totalStepsFailed; int m_totalStepsSkipped; Aws::String m_startTime; Aws::String m_endTime; }; } // namespace Model } // namespace imagebuilder } // namespace Aws