AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetPipelineStateResult.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codepipeline/model/StageState.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodePipeline
27{
28namespace Model
29{
37 {
38 public:
39 AWS_CODEPIPELINE_API GetPipelineStateResult() = default;
42
43
45
48 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
49 template<typename PipelineNameT = Aws::String>
50 void SetPipelineName(PipelineNameT&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::forward<PipelineNameT>(value); }
51 template<typename PipelineNameT = Aws::String>
52 GetPipelineStateResult& WithPipelineName(PipelineNameT&& value) { SetPipelineName(std::forward<PipelineNameT>(value)); return *this;}
54
56
60 inline int GetPipelineVersion() const { return m_pipelineVersion; }
61 inline void SetPipelineVersion(int value) { m_pipelineVersionHasBeenSet = true; m_pipelineVersion = value; }
62 inline GetPipelineStateResult& WithPipelineVersion(int value) { SetPipelineVersion(value); return *this;}
64
66
70 inline const Aws::Vector<StageState>& GetStageStates() const { return m_stageStates; }
71 template<typename StageStatesT = Aws::Vector<StageState>>
72 void SetStageStates(StageStatesT&& value) { m_stageStatesHasBeenSet = true; m_stageStates = std::forward<StageStatesT>(value); }
73 template<typename StageStatesT = Aws::Vector<StageState>>
74 GetPipelineStateResult& WithStageStates(StageStatesT&& value) { SetStageStates(std::forward<StageStatesT>(value)); return *this;}
75 template<typename StageStatesT = StageState>
76 GetPipelineStateResult& AddStageStates(StageStatesT&& value) { m_stageStatesHasBeenSet = true; m_stageStates.emplace_back(std::forward<StageStatesT>(value)); return *this; }
78
80
83 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
84 template<typename CreatedT = Aws::Utils::DateTime>
85 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
86 template<typename CreatedT = Aws::Utils::DateTime>
87 GetPipelineStateResult& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetUpdated() const { return m_updated; }
95 template<typename UpdatedT = Aws::Utils::DateTime>
96 void SetUpdated(UpdatedT&& value) { m_updatedHasBeenSet = true; m_updated = std::forward<UpdatedT>(value); }
97 template<typename UpdatedT = Aws::Utils::DateTime>
98 GetPipelineStateResult& WithUpdated(UpdatedT&& value) { SetUpdated(std::forward<UpdatedT>(value)); return *this;}
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template<typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
106 template<typename RequestIdT = Aws::String>
107 GetPipelineStateResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
109 private:
110
111 Aws::String m_pipelineName;
112 bool m_pipelineNameHasBeenSet = false;
113
114 int m_pipelineVersion{0};
115 bool m_pipelineVersionHasBeenSet = false;
116
117 Aws::Vector<StageState> m_stageStates;
118 bool m_stageStatesHasBeenSet = false;
119
120 Aws::Utils::DateTime m_created{};
121 bool m_createdHasBeenSet = false;
122
123 Aws::Utils::DateTime m_updated{};
124 bool m_updatedHasBeenSet = false;
125
126 Aws::String m_requestId;
127 bool m_requestIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CodePipeline
132} // namespace Aws
AWS_CODEPIPELINE_API GetPipelineStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPipelineStateResult & WithStageStates(StageStatesT &&value)
const Aws::Utils::DateTime & GetUpdated() const
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