259 lines
8.9 KiB
C
259 lines
8.9 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/codepipeline/CodePipeline_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/codepipeline/model/StageContext.h>
|
|||
|
|
#include <aws/codepipeline/model/ActionContext.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace CodePipeline
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Represents information about a pipeline to a job worker.</p>
|
|||
|
|
* <p>PipelineContext contains <code>pipelineArn</code> and
|
|||
|
|
* <code>pipelineExecutionId</code> for custom action jobs. The
|
|||
|
|
* <code>pipelineArn</code> and <code>pipelineExecutionId</code> fields are not
|
|||
|
|
* populated for ThirdParty action jobs.</p> <p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineContext">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_CODEPIPELINE_API PipelineContext
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
PipelineContext();
|
|||
|
|
PipelineContext(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
PipelineContext& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPipelineName() const{ return m_pipelineName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The stage of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline const StageContext& GetStage() const{ return m_stage; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The stage of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The stage of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetStage(const StageContext& value) { m_stageHasBeenSet = true; m_stage = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The stage of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetStage(StageContext&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The stage of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithStage(const StageContext& value) { SetStage(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The stage of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithStage(StageContext&& value) { SetStage(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The context of an action to a job worker in the stage of a pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline const ActionContext& GetAction() const{ return m_action; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The context of an action to a job worker in the stage of a pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The context of an action to a job worker in the stage of a pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAction(const ActionContext& value) { m_actionHasBeenSet = true; m_action = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The context of an action to a job worker in the stage of a pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAction(ActionContext&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The context of an action to a job worker in the stage of a pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithAction(const ActionContext& value) { SetAction(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The context of an action to a job worker in the stage of a pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithAction(ActionContext&& value) { SetAction(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPipelineArn() const{ return m_pipelineArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PipelineArnHasBeenSet() const { return m_pipelineArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineArn(const Aws::String& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineArn(Aws::String&& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineArn(const char* value) { m_pipelineArnHasBeenSet = true; m_pipelineArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineArn(const Aws::String& value) { SetPipelineArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineArn(Aws::String&& value) { SetPipelineArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineArn(const char* value) { SetPipelineArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The execution ID of the pipeline.</p>
|
|||
|
|
*/
|
|||
|
|
inline PipelineContext& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_pipelineName;
|
|||
|
|
bool m_pipelineNameHasBeenSet;
|
|||
|
|
|
|||
|
|
StageContext m_stage;
|
|||
|
|
bool m_stageHasBeenSet;
|
|||
|
|
|
|||
|
|
ActionContext m_action;
|
|||
|
|
bool m_actionHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_pipelineArn;
|
|||
|
|
bool m_pipelineArnHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_pipelineExecutionId;
|
|||
|
|
bool m_pipelineExecutionIdHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace CodePipeline
|
|||
|
|
} // namespace Aws
|