AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Workflow.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/WorkflowType.h>
10#include <aws/imagebuilder/model/WorkflowState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/imagebuilder/model/WorkflowParameterDetail.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace imagebuilder
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_IMAGEBUILDER_API Workflow();
41 AWS_IMAGEBUILDER_API Workflow(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Workflow& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const{ return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline Workflow& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline Workflow& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline Workflow& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline Workflow& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Workflow& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Workflow& WithName(const char* value) { SetName(value); return *this;}
73
75
79 inline const Aws::String& GetVersion() const{ return m_version; }
80 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
81 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
82 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
83 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
84 inline Workflow& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
85 inline Workflow& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
86 inline Workflow& WithVersion(const char* value) { SetVersion(value); return *this;}
88
90
93 inline const Aws::String& GetDescription() const{ return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
98 inline Workflow& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
99 inline Workflow& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
100 inline Workflow& WithDescription(const char* value) { SetDescription(value); return *this;}
102
104
108 inline const Aws::String& GetChangeDescription() const{ return m_changeDescription; }
109 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
110 inline void SetChangeDescription(const Aws::String& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = value; }
111 inline void SetChangeDescription(Aws::String&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::move(value); }
112 inline void SetChangeDescription(const char* value) { m_changeDescriptionHasBeenSet = true; m_changeDescription.assign(value); }
113 inline Workflow& WithChangeDescription(const Aws::String& value) { SetChangeDescription(value); return *this;}
114 inline Workflow& WithChangeDescription(Aws::String&& value) { SetChangeDescription(std::move(value)); return *this;}
115 inline Workflow& WithChangeDescription(const char* value) { SetChangeDescription(value); return *this;}
117
119
123 inline const WorkflowType& GetType() const{ return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(const WorkflowType& value) { m_typeHasBeenSet = true; m_type = value; }
126 inline void SetType(WorkflowType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
127 inline Workflow& WithType(const WorkflowType& value) { SetType(value); return *this;}
128 inline Workflow& WithType(WorkflowType&& value) { SetType(std::move(value)); return *this;}
130
132
136 inline const WorkflowState& GetState() const{ return m_state; }
137 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 inline void SetState(const WorkflowState& value) { m_stateHasBeenSet = true; m_state = value; }
139 inline void SetState(WorkflowState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
140 inline Workflow& WithState(const WorkflowState& value) { SetState(value); return *this;}
141 inline Workflow& WithState(WorkflowState&& value) { SetState(std::move(value)); return *this;}
143
145
148 inline const Aws::String& GetOwner() const{ return m_owner; }
149 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
150 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
151 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
152 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
153 inline Workflow& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
154 inline Workflow& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
155 inline Workflow& WithOwner(const char* value) { SetOwner(value); return *this;}
157
159
162 inline const Aws::String& GetData() const{ return m_data; }
163 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
164 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
165 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
166 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
167 inline Workflow& WithData(const Aws::String& value) { SetData(value); return *this;}
168 inline Workflow& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
169 inline Workflow& WithData(const char* value) { SetData(value); return *this;}
171
173
176 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
177 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
178 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
179 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
180 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
181 inline Workflow& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
182 inline Workflow& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
183 inline Workflow& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
185
187
190 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
191 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
192 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
193 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
194 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
195 inline Workflow& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
196 inline Workflow& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
197 inline Workflow& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
199
201
204 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
207 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
208 inline Workflow& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
209 inline Workflow& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
210 inline Workflow& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
211 inline Workflow& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
212 inline Workflow& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
213 inline Workflow& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
214 inline Workflow& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
215 inline Workflow& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
216 inline Workflow& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
218
220
224 inline const Aws::Vector<WorkflowParameterDetail>& GetParameters() const{ return m_parameters; }
225 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
226 inline void SetParameters(const Aws::Vector<WorkflowParameterDetail>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
227 inline void SetParameters(Aws::Vector<WorkflowParameterDetail>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
228 inline Workflow& WithParameters(const Aws::Vector<WorkflowParameterDetail>& value) { SetParameters(value); return *this;}
229 inline Workflow& WithParameters(Aws::Vector<WorkflowParameterDetail>&& value) { SetParameters(std::move(value)); return *this;}
230 inline Workflow& AddParameters(const WorkflowParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
231 inline Workflow& AddParameters(WorkflowParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
233 private:
234
235 Aws::String m_arn;
236 bool m_arnHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
241 Aws::String m_version;
242 bool m_versionHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
247 Aws::String m_changeDescription;
248 bool m_changeDescriptionHasBeenSet = false;
249
250 WorkflowType m_type;
251 bool m_typeHasBeenSet = false;
252
253 WorkflowState m_state;
254 bool m_stateHasBeenSet = false;
255
256 Aws::String m_owner;
257 bool m_ownerHasBeenSet = false;
258
259 Aws::String m_data;
260 bool m_dataHasBeenSet = false;
261
262 Aws::String m_kmsKeyId;
263 bool m_kmsKeyIdHasBeenSet = false;
264
265 Aws::String m_dateCreated;
266 bool m_dateCreatedHasBeenSet = false;
267
269 bool m_tagsHasBeenSet = false;
270
272 bool m_parametersHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace imagebuilder
277} // namespace Aws
const Aws::String & GetDateCreated() const
Definition Workflow.h:190
void SetKmsKeyId(const Aws::String &value)
Definition Workflow.h:178
void SetDescription(const char *value)
Definition Workflow.h:97
Workflow & WithArn(const Aws::String &value)
Definition Workflow.h:55
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Workflow.h:204
void SetVersion(const char *value)
Definition Workflow.h:83
void SetDateCreated(Aws::String &&value)
Definition Workflow.h:193
Workflow & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Workflow.h:209
Workflow & WithType(WorkflowType &&value)
Definition Workflow.h:128
Workflow & WithOwner(const Aws::String &value)
Definition Workflow.h:153
Workflow & WithKmsKeyId(const char *value)
Definition Workflow.h:183
void SetVersion(const Aws::String &value)
Definition Workflow.h:81
Workflow & WithData(Aws::String &&value)
Definition Workflow.h:168
Workflow & WithVersion(const Aws::String &value)
Definition Workflow.h:84
const Aws::String & GetDescription() const
Definition Workflow.h:93
Workflow & AddTags(const Aws::String &key, const Aws::String &value)
Definition Workflow.h:210
void SetOwner(Aws::String &&value)
Definition Workflow.h:151
const Aws::String & GetVersion() const
Definition Workflow.h:79
void SetDescription(const Aws::String &value)
Definition Workflow.h:95
Workflow & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Workflow.h:208
Workflow & WithType(const WorkflowType &value)
Definition Workflow.h:127
Workflow & WithOwner(Aws::String &&value)
Definition Workflow.h:154
const Aws::String & GetChangeDescription() const
Definition Workflow.h:108
void SetData(const char *value)
Definition Workflow.h:166
void SetType(const WorkflowType &value)
Definition Workflow.h:125
void SetDescription(Aws::String &&value)
Definition Workflow.h:96
void SetVersion(Aws::String &&value)
Definition Workflow.h:82
Workflow & WithChangeDescription(const Aws::String &value)
Definition Workflow.h:113
void SetChangeDescription(const char *value)
Definition Workflow.h:112
void SetArn(const Aws::String &value)
Definition Workflow.h:52
void SetArn(Aws::String &&value)
Definition Workflow.h:53
Workflow & WithParameters(Aws::Vector< WorkflowParameterDetail > &&value)
Definition Workflow.h:229
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Workflow.h:207
Workflow & AddParameters(const WorkflowParameterDetail &value)
Definition Workflow.h:230
Workflow & WithDescription(const Aws::String &value)
Definition Workflow.h:98
Workflow & WithData(const char *value)
Definition Workflow.h:169
void SetKmsKeyId(Aws::String &&value)
Definition Workflow.h:179
void SetDateCreated(const char *value)
Definition Workflow.h:194
void SetName(Aws::String &&value)
Definition Workflow.h:67
Workflow & AddTags(Aws::String &&key, const Aws::String &value)
Definition Workflow.h:211
void SetChangeDescription(Aws::String &&value)
Definition Workflow.h:111
Workflow & WithVersion(Aws::String &&value)
Definition Workflow.h:85
const Aws::Vector< WorkflowParameterDetail > & GetParameters() const
Definition Workflow.h:224
const Aws::String & GetArn() const
Definition Workflow.h:50
Workflow & WithName(const Aws::String &value)
Definition Workflow.h:69
Workflow & WithState(WorkflowState &&value)
Definition Workflow.h:141
void SetState(WorkflowState &&value)
Definition Workflow.h:139
Workflow & WithKmsKeyId(Aws::String &&value)
Definition Workflow.h:182
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Workflow.h:206
Workflow & WithName(const char *value)
Definition Workflow.h:71
const Aws::String & GetData() const
Definition Workflow.h:162
Workflow & WithDateCreated(const char *value)
Definition Workflow.h:197
const Aws::String & GetKmsKeyId() const
Definition Workflow.h:176
const WorkflowType & GetType() const
Definition Workflow.h:123
Workflow & WithDescription(const char *value)
Definition Workflow.h:100
void SetData(const Aws::String &value)
Definition Workflow.h:164
Workflow & AddTags(const char *key, Aws::String &&value)
Definition Workflow.h:214
void SetParameters(Aws::Vector< WorkflowParameterDetail > &&value)
Definition Workflow.h:227
Workflow & WithVersion(const char *value)
Definition Workflow.h:86
Workflow & WithArn(const char *value)
Definition Workflow.h:57
const Aws::String & GetName() const
Definition Workflow.h:64
Workflow & WithDateCreated(const Aws::String &value)
Definition Workflow.h:195
void SetKmsKeyId(const char *value)
Definition Workflow.h:180
AWS_IMAGEBUILDER_API Workflow(Aws::Utils::Json::JsonView jsonValue)
Workflow & WithParameters(const Aws::Vector< WorkflowParameterDetail > &value)
Definition Workflow.h:228
Workflow & AddTags(Aws::String &&key, Aws::String &&value)
Definition Workflow.h:213
void SetParameters(const Aws::Vector< WorkflowParameterDetail > &value)
Definition Workflow.h:226
AWS_IMAGEBUILDER_API Workflow & operator=(Aws::Utils::Json::JsonView jsonValue)
Workflow & WithState(const WorkflowState &value)
Definition Workflow.h:140
Workflow & AddTags(const Aws::String &key, Aws::String &&value)
Definition Workflow.h:212
void SetOwner(const char *value)
Definition Workflow.h:152
void SetChangeDescription(const Aws::String &value)
Definition Workflow.h:110
Workflow & WithDateCreated(Aws::String &&value)
Definition Workflow.h:196
const Aws::String & GetOwner() const
Definition Workflow.h:148
void SetName(const Aws::String &value)
Definition Workflow.h:66
void SetDateCreated(const Aws::String &value)
Definition Workflow.h:192
void SetType(WorkflowType &&value)
Definition Workflow.h:126
Workflow & WithName(Aws::String &&value)
Definition Workflow.h:70
Workflow & WithChangeDescription(Aws::String &&value)
Definition Workflow.h:114
Workflow & WithData(const Aws::String &value)
Definition Workflow.h:167
Workflow & AddTags(Aws::String &&key, const char *value)
Definition Workflow.h:215
Workflow & WithKmsKeyId(const Aws::String &value)
Definition Workflow.h:181
Workflow & WithOwner(const char *value)
Definition Workflow.h:155
void SetOwner(const Aws::String &value)
Definition Workflow.h:150
Workflow & WithDescription(Aws::String &&value)
Definition Workflow.h:99
Workflow & WithChangeDescription(const char *value)
Definition Workflow.h:115
Workflow & WithArn(Aws::String &&value)
Definition Workflow.h:56
void SetArn(const char *value)
Definition Workflow.h:54
Workflow & AddParameters(WorkflowParameterDetail &&value)
Definition Workflow.h:231
void SetName(const char *value)
Definition Workflow.h:68
void SetData(Aws::String &&value)
Definition Workflow.h:165
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const WorkflowState &value)
Definition Workflow.h:138
const WorkflowState & GetState() const
Definition Workflow.h:136
AWS_IMAGEBUILDER_API Workflow()
Workflow & AddTags(const char *key, const char *value)
Definition Workflow.h:216
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue