AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
WorkflowSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/WorkflowState.h>
11#include <aws/imagebuilder/model/WorkflowType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder {
23namespace Model {
24
31 public:
32 AWS_IMAGEBUILDER_API WorkflowSummary() = default;
33 AWS_IMAGEBUILDER_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API WorkflowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 WorkflowSummary& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 WorkflowSummary& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVersion() const { return m_version; }
78 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
79 template <typename VersionT = Aws::String>
80 void SetVersion(VersionT&& value) {
81 m_versionHasBeenSet = true;
82 m_version = std::forward<VersionT>(value);
83 }
84 template <typename VersionT = Aws::String>
85 WorkflowSummary& WithVersion(VersionT&& value) {
86 SetVersion(std::forward<VersionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 WorkflowSummary& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
114 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
115 template <typename ChangeDescriptionT = Aws::String>
116 void SetChangeDescription(ChangeDescriptionT&& value) {
117 m_changeDescriptionHasBeenSet = true;
118 m_changeDescription = std::forward<ChangeDescriptionT>(value);
119 }
120 template <typename ChangeDescriptionT = Aws::String>
121 WorkflowSummary& WithChangeDescription(ChangeDescriptionT&& value) {
122 SetChangeDescription(std::forward<ChangeDescriptionT>(value));
123 return *this;
124 }
126
128
132 inline WorkflowType GetType() const { return m_type; }
133 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 inline void SetType(WorkflowType value) {
135 m_typeHasBeenSet = true;
136 m_type = value;
137 }
139 SetType(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetOwner() const { return m_owner; }
149 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
150 template <typename OwnerT = Aws::String>
151 void SetOwner(OwnerT&& value) {
152 m_ownerHasBeenSet = true;
153 m_owner = std::forward<OwnerT>(value);
154 }
155 template <typename OwnerT = Aws::String>
156 WorkflowSummary& WithOwner(OwnerT&& value) {
157 SetOwner(std::forward<OwnerT>(value));
158 return *this;
159 }
161
163
166 inline const WorkflowState& GetState() const { return m_state; }
167 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
168 template <typename StateT = WorkflowState>
169 void SetState(StateT&& value) {
170 m_stateHasBeenSet = true;
171 m_state = std::forward<StateT>(value);
172 }
173 template <typename StateT = WorkflowState>
174 WorkflowSummary& WithState(StateT&& value) {
175 SetState(std::forward<StateT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
185 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
186 template <typename DateCreatedT = Aws::String>
187 void SetDateCreated(DateCreatedT&& value) {
188 m_dateCreatedHasBeenSet = true;
189 m_dateCreated = std::forward<DateCreatedT>(value);
190 }
191 template <typename DateCreatedT = Aws::String>
192 WorkflowSummary& WithDateCreated(DateCreatedT&& value) {
193 SetDateCreated(std::forward<DateCreatedT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
210 WorkflowSummary& WithTags(TagsT&& value) {
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
215 WorkflowSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_arn;
223
224 Aws::String m_name;
225
226 Aws::String m_version;
227
228 Aws::String m_description;
229
230 Aws::String m_changeDescription;
231
233
234 Aws::String m_owner;
235
236 WorkflowState m_state;
237
238 Aws::String m_dateCreated;
239
241 bool m_arnHasBeenSet = false;
242 bool m_nameHasBeenSet = false;
243 bool m_versionHasBeenSet = false;
244 bool m_descriptionHasBeenSet = false;
245 bool m_changeDescriptionHasBeenSet = false;
246 bool m_typeHasBeenSet = false;
247 bool m_ownerHasBeenSet = false;
248 bool m_stateHasBeenSet = false;
249 bool m_dateCreatedHasBeenSet = false;
250 bool m_tagsHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace imagebuilder
255} // namespace Aws
WorkflowSummary & WithOwner(OwnerT &&value)
WorkflowSummary & WithDescription(DescriptionT &&value)
const Aws::String & GetChangeDescription() const
void SetDateCreated(DateCreatedT &&value)
void SetDescription(DescriptionT &&value)
WorkflowSummary & WithType(WorkflowType value)
WorkflowSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IMAGEBUILDER_API WorkflowSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const WorkflowState & GetState() const
WorkflowSummary & WithState(StateT &&value)
WorkflowSummary & WithTags(TagsT &&value)
AWS_IMAGEBUILDER_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue)
WorkflowSummary & WithDateCreated(DateCreatedT &&value)
void SetChangeDescription(ChangeDescriptionT &&value)
const Aws::String & GetVersion() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowSummary & WithName(NameT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetDateCreated() const
WorkflowSummary & WithVersion(VersionT &&value)
WorkflowSummary & WithChangeDescription(ChangeDescriptionT &&value)
AWS_IMAGEBUILDER_API WorkflowSummary()=default
WorkflowSummary & WithArn(ArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue