AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PipelineContext.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ActionContext.h>
9#include <aws/codepipeline/model/StageContext.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodePipeline {
22namespace Model {
23
34 public:
35 AWS_CODEPIPELINE_API PipelineContext() = default;
36 AWS_CODEPIPELINE_API PipelineContext(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API PipelineContext& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
46 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
47 template <typename PipelineNameT = Aws::String>
48 void SetPipelineName(PipelineNameT&& value) {
49 m_pipelineNameHasBeenSet = true;
50 m_pipelineName = std::forward<PipelineNameT>(value);
51 }
52 template <typename PipelineNameT = Aws::String>
53 PipelineContext& WithPipelineName(PipelineNameT&& value) {
54 SetPipelineName(std::forward<PipelineNameT>(value));
55 return *this;
56 }
58
60
63 inline const StageContext& GetStage() const { return m_stage; }
64 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
65 template <typename StageT = StageContext>
66 void SetStage(StageT&& value) {
67 m_stageHasBeenSet = true;
68 m_stage = std::forward<StageT>(value);
69 }
70 template <typename StageT = StageContext>
71 PipelineContext& WithStage(StageT&& value) {
72 SetStage(std::forward<StageT>(value));
73 return *this;
74 }
76
78
81 inline const ActionContext& GetAction() const { return m_action; }
82 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
83 template <typename ActionT = ActionContext>
84 void SetAction(ActionT&& value) {
85 m_actionHasBeenSet = true;
86 m_action = std::forward<ActionT>(value);
87 }
88 template <typename ActionT = ActionContext>
89 PipelineContext& WithAction(ActionT&& value) {
90 SetAction(std::forward<ActionT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetPipelineArn() const { return m_pipelineArn; }
100 inline bool PipelineArnHasBeenSet() const { return m_pipelineArnHasBeenSet; }
101 template <typename PipelineArnT = Aws::String>
102 void SetPipelineArn(PipelineArnT&& value) {
103 m_pipelineArnHasBeenSet = true;
104 m_pipelineArn = std::forward<PipelineArnT>(value);
105 }
106 template <typename PipelineArnT = Aws::String>
107 PipelineContext& WithPipelineArn(PipelineArnT&& value) {
108 SetPipelineArn(std::forward<PipelineArnT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetPipelineExecutionId() const { return m_pipelineExecutionId; }
118 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
119 template <typename PipelineExecutionIdT = Aws::String>
120 void SetPipelineExecutionId(PipelineExecutionIdT&& value) {
121 m_pipelineExecutionIdHasBeenSet = true;
122 m_pipelineExecutionId = std::forward<PipelineExecutionIdT>(value);
123 }
124 template <typename PipelineExecutionIdT = Aws::String>
125 PipelineContext& WithPipelineExecutionId(PipelineExecutionIdT&& value) {
126 SetPipelineExecutionId(std::forward<PipelineExecutionIdT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_pipelineName;
132
133 StageContext m_stage;
134
135 ActionContext m_action;
136
137 Aws::String m_pipelineArn;
138
139 Aws::String m_pipelineExecutionId;
140 bool m_pipelineNameHasBeenSet = false;
141 bool m_stageHasBeenSet = false;
142 bool m_actionHasBeenSet = false;
143 bool m_pipelineArnHasBeenSet = false;
144 bool m_pipelineExecutionIdHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace CodePipeline
149} // namespace Aws
PipelineContext & WithAction(ActionT &&value)
PipelineContext & WithPipelineArn(PipelineArnT &&value)
void SetPipelineName(PipelineNameT &&value)
PipelineContext & WithPipelineExecutionId(PipelineExecutionIdT &&value)
const Aws::String & GetPipelineName() const
void SetPipelineExecutionId(PipelineExecutionIdT &&value)
const Aws::String & GetPipelineArn() const
PipelineContext & WithPipelineName(PipelineNameT &&value)
PipelineContext & WithStage(StageT &&value)
const ActionContext & GetAction() const
const StageContext & GetStage() const
AWS_CODEPIPELINE_API PipelineContext()=default
void SetPipelineArn(PipelineArnT &&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