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

Represents information about a pipeline to a job worker.

*

PipelineContext contains pipelineArn and * pipelineExecutionId for custom action jobs. The * pipelineArn and pipelineExecutionId fields are not * populated for ThirdParty action jobs.

See Also:

AWS * API Reference

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

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** *

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** *

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** *

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** *

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** *

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline PipelineContext& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** *

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline PipelineContext& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** *

The name of the pipeline. This is a user-specified value. Pipeline names must * be unique across all pipeline names under an Amazon Web Services account.

*/ inline PipelineContext& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} /** *

The stage of the pipeline.

*/ inline const StageContext& GetStage() const{ return m_stage; } /** *

The stage of the pipeline.

*/ inline bool StageHasBeenSet() const { return m_stageHasBeenSet; } /** *

The stage of the pipeline.

*/ inline void SetStage(const StageContext& value) { m_stageHasBeenSet = true; m_stage = value; } /** *

The stage of the pipeline.

*/ inline void SetStage(StageContext&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); } /** *

The stage of the pipeline.

*/ inline PipelineContext& WithStage(const StageContext& value) { SetStage(value); return *this;} /** *

The stage of the pipeline.

*/ inline PipelineContext& WithStage(StageContext&& value) { SetStage(std::move(value)); return *this;} /** *

The context of an action to a job worker in the stage of a pipeline.

*/ inline const ActionContext& GetAction() const{ return m_action; } /** *

The context of an action to a job worker in the stage of a pipeline.

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

The context of an action to a job worker in the stage of a pipeline.

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

The context of an action to a job worker in the stage of a pipeline.

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

The context of an action to a job worker in the stage of a pipeline.

*/ inline PipelineContext& WithAction(const ActionContext& value) { SetAction(value); return *this;} /** *

The context of an action to a job worker in the stage of a pipeline.

*/ inline PipelineContext& WithAction(ActionContext&& value) { SetAction(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline const Aws::String& GetPipelineArn() const{ return m_pipelineArn; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline bool PipelineArnHasBeenSet() const { return m_pipelineArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(const Aws::String& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = value; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(Aws::String&& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(const char* value) { m_pipelineArnHasBeenSet = true; m_pipelineArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineContext& WithPipelineArn(const Aws::String& value) { SetPipelineArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineContext& WithPipelineArn(Aws::String&& value) { SetPipelineArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineContext& WithPipelineArn(const char* value) { SetPipelineArn(value); return *this;} /** *

The execution ID of the pipeline.

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

The execution ID of the pipeline.

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

The execution ID of the pipeline.

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

The execution ID of the pipeline.

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

The execution ID of the pipeline.

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

The execution ID of the pipeline.

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

The execution ID of the pipeline.

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

The execution ID of the pipeline.

*/ inline PipelineContext& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;} private: Aws::String m_pipelineName; bool m_pipelineNameHasBeenSet = false; StageContext m_stage; bool m_stageHasBeenSet = false; ActionContext m_action; bool m_actionHasBeenSet = false; Aws::String m_pipelineArn; bool m_pipelineArnHasBeenSet = false; Aws::String m_pipelineExecutionId; bool m_pipelineExecutionIdHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws