AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetPipelineStateResult.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/StageState.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodePipeline {
25namespace Model {
33 public:
34 AWS_CODEPIPELINE_API GetPipelineStateResult() = default;
37
39
42 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
43 template <typename PipelineNameT = Aws::String>
44 void SetPipelineName(PipelineNameT&& value) {
45 m_pipelineNameHasBeenSet = true;
46 m_pipelineName = std::forward<PipelineNameT>(value);
47 }
48 template <typename PipelineNameT = Aws::String>
49 GetPipelineStateResult& WithPipelineName(PipelineNameT&& value) {
50 SetPipelineName(std::forward<PipelineNameT>(value));
51 return *this;
52 }
54
56
60 inline int GetPipelineVersion() const { return m_pipelineVersion; }
61 inline void SetPipelineVersion(int value) {
62 m_pipelineVersionHasBeenSet = true;
63 m_pipelineVersion = value;
64 }
66 SetPipelineVersion(value);
67 return *this;
68 }
70
72
76 inline const Aws::Vector<StageState>& GetStageStates() const { return m_stageStates; }
77 template <typename StageStatesT = Aws::Vector<StageState>>
78 void SetStageStates(StageStatesT&& value) {
79 m_stageStatesHasBeenSet = true;
80 m_stageStates = std::forward<StageStatesT>(value);
81 }
82 template <typename StageStatesT = Aws::Vector<StageState>>
83 GetPipelineStateResult& WithStageStates(StageStatesT&& value) {
84 SetStageStates(std::forward<StageStatesT>(value));
85 return *this;
86 }
87 template <typename StageStatesT = StageState>
88 GetPipelineStateResult& AddStageStates(StageStatesT&& value) {
89 m_stageStatesHasBeenSet = true;
90 m_stageStates.emplace_back(std::forward<StageStatesT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
100 template <typename CreatedT = Aws::Utils::DateTime>
101 void SetCreated(CreatedT&& value) {
102 m_createdHasBeenSet = true;
103 m_created = std::forward<CreatedT>(value);
104 }
105 template <typename CreatedT = Aws::Utils::DateTime>
107 SetCreated(std::forward<CreatedT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetUpdated() const { return m_updated; }
117 template <typename UpdatedT = Aws::Utils::DateTime>
118 void SetUpdated(UpdatedT&& value) {
119 m_updatedHasBeenSet = true;
120 m_updated = std::forward<UpdatedT>(value);
121 }
122 template <typename UpdatedT = Aws::Utils::DateTime>
124 SetUpdated(std::forward<UpdatedT>(value));
125 return *this;
126 }
128
130
131 inline const Aws::String& GetRequestId() const { return m_requestId; }
132 template <typename RequestIdT = Aws::String>
133 void SetRequestId(RequestIdT&& value) {
134 m_requestIdHasBeenSet = true;
135 m_requestId = std::forward<RequestIdT>(value);
136 }
137 template <typename RequestIdT = Aws::String>
139 SetRequestId(std::forward<RequestIdT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_pipelineName;
145
146 int m_pipelineVersion{0};
147
148 Aws::Vector<StageState> m_stageStates;
149
150 Aws::Utils::DateTime m_created{};
151
152 Aws::Utils::DateTime m_updated{};
153
154 Aws::String m_requestId;
155 bool m_pipelineNameHasBeenSet = false;
156 bool m_pipelineVersionHasBeenSet = false;
157 bool m_stageStatesHasBeenSet = false;
158 bool m_createdHasBeenSet = false;
159 bool m_updatedHasBeenSet = false;
160 bool m_requestIdHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CodePipeline
165} // namespace Aws
AWS_CODEPIPELINE_API GetPipelineStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPipelineStateResult & WithStageStates(StageStatesT &&value)
GetPipelineStateResult & WithCreated(CreatedT &&value)
const Aws::Utils::DateTime & GetCreated() const
GetPipelineStateResult & WithPipelineVersion(int value)
GetPipelineStateResult & WithRequestId(RequestIdT &&value)
GetPipelineStateResult & AddStageStates(StageStatesT &&value)
const Aws::Vector< StageState > & GetStageStates() const
AWS_CODEPIPELINE_API GetPipelineStateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPipelineStateResult & WithUpdated(UpdatedT &&value)
AWS_CODEPIPELINE_API GetPipelineStateResult()=default
GetPipelineStateResult & WithPipelineName(PipelineNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue