AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
PipelineSummary.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ExecutionMode.h>
9#include <aws/codepipeline/model/PipelineType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline {
23namespace Model {
24
31 public:
32 AWS_CODEPIPELINE_API PipelineSummary() = default;
33 AWS_CODEPIPELINE_API PipelineSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API PipelineSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 PipelineSummary& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline int GetVersion() const { return m_version; }
60 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
61 inline void SetVersion(int value) {
62 m_versionHasBeenSet = true;
63 m_version = value;
64 }
65 inline PipelineSummary& WithVersion(int value) {
66 SetVersion(value);
67 return *this;
68 }
70
72
88 inline PipelineType GetPipelineType() const { return m_pipelineType; }
89 inline bool PipelineTypeHasBeenSet() const { return m_pipelineTypeHasBeenSet; }
90 inline void SetPipelineType(PipelineType value) {
91 m_pipelineTypeHasBeenSet = true;
92 m_pipelineType = value;
93 }
95 SetPipelineType(value);
96 return *this;
97 }
99
101
105 inline ExecutionMode GetExecutionMode() const { return m_executionMode; }
106 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
107 inline void SetExecutionMode(ExecutionMode value) {
108 m_executionModeHasBeenSet = true;
109 m_executionMode = value;
110 }
112 SetExecutionMode(value);
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
122 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
123 template <typename CreatedT = Aws::Utils::DateTime>
124 void SetCreated(CreatedT&& value) {
125 m_createdHasBeenSet = true;
126 m_created = std::forward<CreatedT>(value);
127 }
128 template <typename CreatedT = Aws::Utils::DateTime>
129 PipelineSummary& WithCreated(CreatedT&& value) {
130 SetCreated(std::forward<CreatedT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Utils::DateTime& GetUpdated() const { return m_updated; }
141 inline bool UpdatedHasBeenSet() const { return m_updatedHasBeenSet; }
142 template <typename UpdatedT = Aws::Utils::DateTime>
143 void SetUpdated(UpdatedT&& value) {
144 m_updatedHasBeenSet = true;
145 m_updated = std::forward<UpdatedT>(value);
146 }
147 template <typename UpdatedT = Aws::Utils::DateTime>
148 PipelineSummary& WithUpdated(UpdatedT&& value) {
149 SetUpdated(std::forward<UpdatedT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_name;
155
156 int m_version{0};
157
158 PipelineType m_pipelineType{PipelineType::NOT_SET};
159
160 ExecutionMode m_executionMode{ExecutionMode::NOT_SET};
161
162 Aws::Utils::DateTime m_created{};
163
164 Aws::Utils::DateTime m_updated{};
165 bool m_nameHasBeenSet = false;
166 bool m_versionHasBeenSet = false;
167 bool m_pipelineTypeHasBeenSet = false;
168 bool m_executionModeHasBeenSet = false;
169 bool m_createdHasBeenSet = false;
170 bool m_updatedHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace CodePipeline
175} // namespace Aws
const Aws::Utils::DateTime & GetUpdated() const
AWS_CODEPIPELINE_API PipelineSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PipelineSummary & WithUpdated(UpdatedT &&value)
PipelineSummary & WithPipelineType(PipelineType value)
PipelineSummary & WithExecutionMode(ExecutionMode value)
PipelineSummary & WithCreated(CreatedT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreated() const
AWS_CODEPIPELINE_API PipelineSummary()=default
PipelineSummary & WithName(NameT &&value)
PipelineSummary & WithVersion(int value)
AWS_CODEPIPELINE_API PipelineSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue