AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
48 inline const Aws::String& GetPipelineName() const{ return m_pipelineName; }
49 inline void SetPipelineName(const Aws::String& value) { m_pipelineName = value; }
50 inline void SetPipelineName(Aws::String&& value) { m_pipelineName = std::move(value); }
51 inline void SetPipelineName(const char* value) { m_pipelineName.assign(value); }
52 inline GetPipelineStateResult& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
53 inline GetPipelineStateResult& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;}
54 inline GetPipelineStateResult& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
56
58
62 inline int GetPipelineVersion() const{ return m_pipelineVersion; }
63 inline void SetPipelineVersion(int value) { m_pipelineVersion = value; }
64 inline GetPipelineStateResult& WithPipelineVersion(int value) { SetPipelineVersion(value); return *this;}
66
68
72 inline const Aws::Vector<StageState>& GetStageStates() const{ return m_stageStates; }
73 inline void SetStageStates(const Aws::Vector<StageState>& value) { m_stageStates = value; }
74 inline void SetStageStates(Aws::Vector<StageState>&& value) { m_stageStates = std::move(value); }
76 inline GetPipelineStateResult& WithStageStates(Aws::Vector<StageState>&& value) { SetStageStates(std::move(value)); return *this;}
77 inline GetPipelineStateResult& AddStageStates(const StageState& value) { m_stageStates.push_back(value); return *this; }
78 inline GetPipelineStateResult& AddStageStates(StageState&& value) { m_stageStates.push_back(std::move(value)); return *this; }
80
82
85 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
86 inline void SetCreated(const Aws::Utils::DateTime& value) { m_created = value; }
87 inline void SetCreated(Aws::Utils::DateTime&& value) { m_created = std::move(value); }
88 inline GetPipelineStateResult& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
89 inline GetPipelineStateResult& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetUpdated() const{ return m_updated; }
97 inline void SetUpdated(const Aws::Utils::DateTime& value) { m_updated = value; }
98 inline void SetUpdated(Aws::Utils::DateTime&& value) { m_updated = std::move(value); }
99 inline GetPipelineStateResult& WithUpdated(const Aws::Utils::DateTime& value) { SetUpdated(value); return *this;}
100 inline GetPipelineStateResult& WithUpdated(Aws::Utils::DateTime&& value) { SetUpdated(std::move(value)); return *this;}
102
104
105 inline const Aws::String& GetRequestId() const{ return m_requestId; }
106 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
107 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
108 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
109 inline GetPipelineStateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
110 inline GetPipelineStateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
111 inline GetPipelineStateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
113 private:
114
115 Aws::String m_pipelineName;
116
117 int m_pipelineVersion;
118
119 Aws::Vector<StageState> m_stageStates;
120
121 Aws::Utils::DateTime m_created;
122
123 Aws::Utils::DateTime m_updated;
124
125 Aws::String m_requestId;
126 };
127
128} // namespace Model
129} // namespace CodePipeline
130} // namespace Aws
AWS_CODEPIPELINE_API GetPipelineStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPipelineStateResult & WithUpdated(Aws::Utils::DateTime &&value)
GetPipelineStateResult & WithStageStates(Aws::Vector< StageState > &&value)
void SetStageStates(const Aws::Vector< StageState > &value)
const Aws::Utils::DateTime & GetUpdated() const
GetPipelineStateResult & WithPipelineName(const char *value)
const Aws::Utils::DateTime & GetCreated() const
GetPipelineStateResult & WithRequestId(Aws::String &&value)
GetPipelineStateResult & WithPipelineVersion(int value)
void SetStageStates(Aws::Vector< StageState > &&value)
void SetCreated(const Aws::Utils::DateTime &value)
GetPipelineStateResult & WithUpdated(const Aws::Utils::DateTime &value)
const Aws::Vector< StageState > & GetStageStates() const
void SetUpdated(const Aws::Utils::DateTime &value)
GetPipelineStateResult & WithPipelineName(const Aws::String &value)
GetPipelineStateResult & WithCreated(const Aws::Utils::DateTime &value)
AWS_CODEPIPELINE_API GetPipelineStateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPipelineStateResult & WithPipelineName(Aws::String &&value)
GetPipelineStateResult & WithCreated(Aws::Utils::DateTime &&value)
GetPipelineStateResult & WithStageStates(const Aws::Vector< StageState > &value)
GetPipelineStateResult & AddStageStates(StageState &&value)
GetPipelineStateResult & AddStageStates(const StageState &value)
GetPipelineStateResult & WithRequestId(const Aws::String &value)
GetPipelineStateResult & WithRequestId(const char *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