AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PipelineContext.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/StageContext.h>
10#include <aws/codepipeline/model/ActionContext.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodePipeline
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_CODEPIPELINE_API PipelineContext();
41 AWS_CODEPIPELINE_API PipelineContext(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API PipelineContext& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetPipelineName() const{ return m_pipelineName; }
52 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
53 inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
54 inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); }
55 inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); }
56 inline PipelineContext& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
57 inline PipelineContext& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;}
58 inline PipelineContext& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
60
62
65 inline const StageContext& GetStage() const{ return m_stage; }
66 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
67 inline void SetStage(const StageContext& value) { m_stageHasBeenSet = true; m_stage = value; }
68 inline void SetStage(StageContext&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
69 inline PipelineContext& WithStage(const StageContext& value) { SetStage(value); return *this;}
70 inline PipelineContext& WithStage(StageContext&& value) { SetStage(std::move(value)); return *this;}
72
74
77 inline const ActionContext& GetAction() const{ return m_action; }
78 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
79 inline void SetAction(const ActionContext& value) { m_actionHasBeenSet = true; m_action = value; }
80 inline void SetAction(ActionContext&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
81 inline PipelineContext& WithAction(const ActionContext& value) { SetAction(value); return *this;}
82 inline PipelineContext& WithAction(ActionContext&& value) { SetAction(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetPipelineArn() const{ return m_pipelineArn; }
90 inline bool PipelineArnHasBeenSet() const { return m_pipelineArnHasBeenSet; }
91 inline void SetPipelineArn(const Aws::String& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = value; }
92 inline void SetPipelineArn(Aws::String&& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = std::move(value); }
93 inline void SetPipelineArn(const char* value) { m_pipelineArnHasBeenSet = true; m_pipelineArn.assign(value); }
94 inline PipelineContext& WithPipelineArn(const Aws::String& value) { SetPipelineArn(value); return *this;}
95 inline PipelineContext& WithPipelineArn(Aws::String&& value) { SetPipelineArn(std::move(value)); return *this;}
96 inline PipelineContext& WithPipelineArn(const char* value) { SetPipelineArn(value); return *this;}
98
100
103 inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; }
104 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
105 inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; }
106 inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::move(value); }
107 inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); }
108 inline PipelineContext& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;}
109 inline PipelineContext& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(std::move(value)); return *this;}
110 inline PipelineContext& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;}
112 private:
113
114 Aws::String m_pipelineName;
115 bool m_pipelineNameHasBeenSet = false;
116
117 StageContext m_stage;
118 bool m_stageHasBeenSet = false;
119
120 ActionContext m_action;
121 bool m_actionHasBeenSet = false;
122
123 Aws::String m_pipelineArn;
124 bool m_pipelineArnHasBeenSet = false;
125
126 Aws::String m_pipelineExecutionId;
127 bool m_pipelineExecutionIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CodePipeline
132} // namespace Aws
void SetPipelineName(const Aws::String &value)
PipelineContext & WithPipelineExecutionId(const Aws::String &value)
PipelineContext & WithPipelineName(const char *value)
void SetPipelineExecutionId(const Aws::String &value)
void SetAction(const ActionContext &value)
const Aws::String & GetPipelineName() const
const Aws::String & GetPipelineArn() const
PipelineContext & WithStage(StageContext &&value)
PipelineContext & WithStage(const StageContext &value)
PipelineContext & WithAction(ActionContext &&value)
PipelineContext & WithPipelineArn(Aws::String &&value)
void SetPipelineName(Aws::String &&value)
PipelineContext & WithPipelineArn(const char *value)
PipelineContext & WithPipelineName(const Aws::String &value)
void SetPipelineArn(const Aws::String &value)
void SetAction(ActionContext &&value)
PipelineContext & WithPipelineExecutionId(const char *value)
PipelineContext & WithPipelineArn(const Aws::String &value)
void SetStage(const StageContext &value)
PipelineContext & WithPipelineExecutionId(Aws::String &&value)
PipelineContext & WithAction(const ActionContext &value)
const ActionContext & GetAction() const
void SetPipelineExecutionId(Aws::String &&value)
const StageContext & GetStage() const
PipelineContext & WithPipelineName(Aws::String &&value)
const Aws::String & GetPipelineExecutionId() const
AWS_CODEPIPELINE_API PipelineContext & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API PipelineContext(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue