AWS SDK for C++

AWS SDK for C++ Version 1.11.910

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
131 inline WorkflowType GetType() const { return m_type; }
132 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
133 inline void SetType(WorkflowType value) {
134 m_typeHasBeenSet = true;
135 m_type = value;
136 }
138 SetType(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetOwner() const { return m_owner; }
148 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
149 template <typename OwnerT = Aws::String>
150 void SetOwner(OwnerT&& value) {
151 m_ownerHasBeenSet = true;
152 m_owner = std::forward<OwnerT>(value);
153 }
154 template <typename OwnerT = Aws::String>
155 WorkflowSummary& WithOwner(OwnerT&& value) {
156 SetOwner(std::forward<OwnerT>(value));
157 return *this;
158 }
160
162
165 inline const WorkflowState& GetState() const { return m_state; }
166 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
167 template <typename StateT = WorkflowState>
168 void SetState(StateT&& value) {
169 m_stateHasBeenSet = true;
170 m_state = std::forward<StateT>(value);
171 }
172 template <typename StateT = WorkflowState>
173 WorkflowSummary& WithState(StateT&& value) {
174 SetState(std::forward<StateT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
184 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
185 template <typename DateCreatedT = Aws::String>
186 void SetDateCreated(DateCreatedT&& value) {
187 m_dateCreatedHasBeenSet = true;
188 m_dateCreated = std::forward<DateCreatedT>(value);
189 }
190 template <typename DateCreatedT = Aws::String>
191 WorkflowSummary& WithDateCreated(DateCreatedT&& value) {
192 SetDateCreated(std::forward<DateCreatedT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
202 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 void SetTags(TagsT&& value) {
205 m_tagsHasBeenSet = true;
206 m_tags = std::forward<TagsT>(value);
207 }
208 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 WorkflowSummary& WithTags(TagsT&& value) {
210 SetTags(std::forward<TagsT>(value));
211 return *this;
212 }
213 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
214 WorkflowSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_arn;
222
223 Aws::String m_name;
224
225 Aws::String m_version;
226
227 Aws::String m_description;
228
229 Aws::String m_changeDescription;
230
232
233 Aws::String m_owner;
234
235 WorkflowState m_state;
236
237 Aws::String m_dateCreated;
238
240 bool m_arnHasBeenSet = false;
241 bool m_nameHasBeenSet = false;
242 bool m_versionHasBeenSet = false;
243 bool m_descriptionHasBeenSet = false;
244 bool m_changeDescriptionHasBeenSet = false;
245 bool m_typeHasBeenSet = false;
246 bool m_ownerHasBeenSet = false;
247 bool m_stateHasBeenSet = false;
248 bool m_dateCreatedHasBeenSet = false;
249 bool m_tagsHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace imagebuilder
254} // 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