AWS SDK for C++  1.9.154
AWS SDK for C++
Job.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/mgn/Mgn_EXPORTS.h>
13 #include <aws/mgn/model/JobType.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace mgn
28 {
29 namespace Model
30 {
31 
38  {
39  public:
40  Job();
44 
45 
49  inline const Aws::String& GetArn() const{ return m_arn; }
50 
54  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 
59  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
60 
64  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 
69  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 
74  inline Job& WithArn(const Aws::String& value) { SetArn(value); return *this;}
75 
79  inline Job& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
80 
84  inline Job& WithArn(const char* value) { SetArn(value); return *this;}
85 
86 
90  inline const Aws::String& GetCreationDateTime() const{ return m_creationDateTime; }
91 
95  inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
96 
100  inline void SetCreationDateTime(const Aws::String& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
101 
105  inline void SetCreationDateTime(Aws::String&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
106 
110  inline void SetCreationDateTime(const char* value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime.assign(value); }
111 
115  inline Job& WithCreationDateTime(const Aws::String& value) { SetCreationDateTime(value); return *this;}
116 
120  inline Job& WithCreationDateTime(Aws::String&& value) { SetCreationDateTime(std::move(value)); return *this;}
121 
125  inline Job& WithCreationDateTime(const char* value) { SetCreationDateTime(value); return *this;}
126 
127 
131  inline const Aws::String& GetEndDateTime() const{ return m_endDateTime; }
132 
136  inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
137 
141  inline void SetEndDateTime(const Aws::String& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
142 
146  inline void SetEndDateTime(Aws::String&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
147 
151  inline void SetEndDateTime(const char* value) { m_endDateTimeHasBeenSet = true; m_endDateTime.assign(value); }
152 
156  inline Job& WithEndDateTime(const Aws::String& value) { SetEndDateTime(value); return *this;}
157 
161  inline Job& WithEndDateTime(Aws::String&& value) { SetEndDateTime(std::move(value)); return *this;}
162 
166  inline Job& WithEndDateTime(const char* value) { SetEndDateTime(value); return *this;}
167 
168 
172  inline const InitiatedBy& GetInitiatedBy() const{ return m_initiatedBy; }
173 
177  inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
178 
182  inline void SetInitiatedBy(const InitiatedBy& value) { m_initiatedByHasBeenSet = true; m_initiatedBy = value; }
183 
187  inline void SetInitiatedBy(InitiatedBy&& value) { m_initiatedByHasBeenSet = true; m_initiatedBy = std::move(value); }
188 
192  inline Job& WithInitiatedBy(const InitiatedBy& value) { SetInitiatedBy(value); return *this;}
193 
197  inline Job& WithInitiatedBy(InitiatedBy&& value) { SetInitiatedBy(std::move(value)); return *this;}
198 
199 
203  inline const Aws::String& GetJobID() const{ return m_jobID; }
204 
208  inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
209 
213  inline void SetJobID(const Aws::String& value) { m_jobIDHasBeenSet = true; m_jobID = value; }
214 
218  inline void SetJobID(Aws::String&& value) { m_jobIDHasBeenSet = true; m_jobID = std::move(value); }
219 
223  inline void SetJobID(const char* value) { m_jobIDHasBeenSet = true; m_jobID.assign(value); }
224 
228  inline Job& WithJobID(const Aws::String& value) { SetJobID(value); return *this;}
229 
233  inline Job& WithJobID(Aws::String&& value) { SetJobID(std::move(value)); return *this;}
234 
238  inline Job& WithJobID(const char* value) { SetJobID(value); return *this;}
239 
240 
244  inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const{ return m_participatingServers; }
245 
249  inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
250 
254  inline void SetParticipatingServers(const Aws::Vector<ParticipatingServer>& value) { m_participatingServersHasBeenSet = true; m_participatingServers = value; }
255 
259  inline void SetParticipatingServers(Aws::Vector<ParticipatingServer>&& value) { m_participatingServersHasBeenSet = true; m_participatingServers = std::move(value); }
260 
264  inline Job& WithParticipatingServers(const Aws::Vector<ParticipatingServer>& value) { SetParticipatingServers(value); return *this;}
265 
269  inline Job& WithParticipatingServers(Aws::Vector<ParticipatingServer>&& value) { SetParticipatingServers(std::move(value)); return *this;}
270 
274  inline Job& AddParticipatingServers(const ParticipatingServer& value) { m_participatingServersHasBeenSet = true; m_participatingServers.push_back(value); return *this; }
275 
279  inline Job& AddParticipatingServers(ParticipatingServer&& value) { m_participatingServersHasBeenSet = true; m_participatingServers.push_back(std::move(value)); return *this; }
280 
281 
285  inline const JobStatus& GetStatus() const{ return m_status; }
286 
290  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
291 
295  inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
296 
300  inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
301 
305  inline Job& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
306 
310  inline Job& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
311 
312 
316  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
317 
321  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
322 
326  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
327 
331  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
332 
336  inline Job& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
337 
341  inline Job& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
342 
346  inline Job& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
347 
351  inline Job& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
352 
356  inline Job& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
357 
361  inline Job& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
362 
366  inline Job& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
367 
371  inline Job& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
372 
376  inline Job& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
377 
378 
382  inline const JobType& GetType() const{ return m_type; }
383 
387  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
388 
392  inline void SetType(const JobType& value) { m_typeHasBeenSet = true; m_type = value; }
393 
397  inline void SetType(JobType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
398 
402  inline Job& WithType(const JobType& value) { SetType(value); return *this;}
403 
407  inline Job& WithType(JobType&& value) { SetType(std::move(value)); return *this;}
408 
409  private:
410 
411  Aws::String m_arn;
412  bool m_arnHasBeenSet;
413 
414  Aws::String m_creationDateTime;
415  bool m_creationDateTimeHasBeenSet;
416 
417  Aws::String m_endDateTime;
418  bool m_endDateTimeHasBeenSet;
419 
420  InitiatedBy m_initiatedBy;
421  bool m_initiatedByHasBeenSet;
422 
423  Aws::String m_jobID;
424  bool m_jobIDHasBeenSet;
425 
426  Aws::Vector<ParticipatingServer> m_participatingServers;
427  bool m_participatingServersHasBeenSet;
428 
429  JobStatus m_status;
430  bool m_statusHasBeenSet;
431 
433  bool m_tagsHasBeenSet;
434 
435  JobType m_type;
436  bool m_typeHasBeenSet;
437  };
438 
439 } // namespace Model
440 } // namespace mgn
441 } // namespace Aws
Aws::mgn::Model::Job::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: Job.h:321
Aws::mgn::Model::ParticipatingServer
Definition: ParticipatingServer.h:33
Aws::mgn::Model::Job::EndDateTimeHasBeenSet
bool EndDateTimeHasBeenSet() const
Definition: Job.h:136
Aws::mgn::Model::Job::WithArn
Job & WithArn(const Aws::String &value)
Definition: Job.h:74
Aws::mgn::Model::Job::CreationDateTimeHasBeenSet
bool CreationDateTimeHasBeenSet() const
Definition: Job.h:95
Aws::mgn::Model::Job::SetJobID
void SetJobID(const Aws::String &value)
Definition: Job.h:213
Aws::mgn::Model::Job::SetType
void SetType(JobType &&value)
Definition: Job.h:397
Aws::mgn::Model::Job::SetArn
void SetArn(const Aws::String &value)
Definition: Job.h:59
Aws::mgn::Model::Job::GetParticipatingServers
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition: Job.h:244
JobType.h
Aws::mgn::Model::Job::Job
Job()
ParticipatingServer.h
JobStatus.h
Aws::mgn::Model::Job::SetArn
void SetArn(const char *value)
Definition: Job.h:69
Aws::mgn::Model::Job::GetCreationDateTime
const Aws::String & GetCreationDateTime() const
Definition: Job.h:90
Aws::mgn::Model::Job
Definition: Job.h:38
AWS_MGN_API
#define AWS_MGN_API
Definition: Mgn_EXPORTS.h:28
Aws::mgn::Model::Job::SetStatus
void SetStatus(const JobStatus &value)
Definition: Job.h:295
Aws::mgn::Model::Job::GetInitiatedBy
const InitiatedBy & GetInitiatedBy() const
Definition: Job.h:172
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::mgn::Model::Job::operator=
Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::mgn::Model::Job::SetParticipatingServers
void SetParticipatingServers(Aws::Vector< ParticipatingServer > &&value)
Definition: Job.h:259
Aws::mgn::Model::Job::GetJobID
const Aws::String & GetJobID() const
Definition: Job.h:203
Aws::mgn::Model::JobType
JobType
Definition: JobType.h:17
InitiatedBy.h
AWSVector.h
Aws::mgn::Model::Job::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Job.h:331
Aws::mgn::Model::Job::ParticipatingServersHasBeenSet
bool ParticipatingServersHasBeenSet() const
Definition: Job.h:249
Aws::mgn::Model::Job::SetCreationDateTime
void SetCreationDateTime(const Aws::String &value)
Definition: Job.h:100
Aws::mgn::Model::Job::InitiatedByHasBeenSet
bool InitiatedByHasBeenSet() const
Definition: Job.h:177
Aws::mgn::Model::JobStatus
JobStatus
Definition: JobStatus.h:17
Aws::mgn::Model::Job::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::mgn::Model::Job::AddTags
Job & AddTags(Aws::String &&key, const Aws::String &value)
Definition: Job.h:351
Aws::mgn::Model::Job::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Job.h:326
Aws::mgn::Model::Job::WithParticipatingServers
Job & WithParticipatingServers(const Aws::Vector< ParticipatingServer > &value)
Definition: Job.h:264
Aws::mgn::Model::Job::SetParticipatingServers
void SetParticipatingServers(const Aws::Vector< ParticipatingServer > &value)
Definition: Job.h:254
Aws::mgn::Model::Job::WithArn
Job & WithArn(Aws::String &&value)
Definition: Job.h:79
Aws::mgn::Model::Job::Job
Job(Aws::Utils::Json::JsonView jsonValue)
Aws::mgn::Model::Job::WithTags
Job & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Job.h:341
Aws::mgn::Model::Job::WithJobID
Job & WithJobID(const Aws::String &value)
Definition: Job.h:228
Aws::mgn::Model::Job::GetType
const JobType & GetType() const
Definition: Job.h:382
Aws::mgn::Model::Job::WithCreationDateTime
Job & WithCreationDateTime(const char *value)
Definition: Job.h:125
Aws::mgn::Model::Job::SetInitiatedBy
void SetInitiatedBy(const InitiatedBy &value)
Definition: Job.h:182
Aws::mgn::Model::Job::JobIDHasBeenSet
bool JobIDHasBeenSet() const
Definition: Job.h:208
Mgn_EXPORTS.h
Aws::mgn::Model::Job::SetEndDateTime
void SetEndDateTime(Aws::String &&value)
Definition: Job.h:146
Aws::mgn::Model::Job::WithArn
Job & WithArn(const char *value)
Definition: Job.h:84
Aws::mgn::Model::Job::GetEndDateTime
const Aws::String & GetEndDateTime() const
Definition: Job.h:131
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::mgn::Model::Job::WithTags
Job & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Job.h:336
Aws::mgn::Model::Job::SetCreationDateTime
void SetCreationDateTime(const char *value)
Definition: Job.h:110
Aws::mgn::Model::Job::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: Job.h:316
Aws::mgn::Model::InitiatedBy
InitiatedBy
Definition: InitiatedBy.h:17
Aws::mgn::Model::Job::SetCreationDateTime
void SetCreationDateTime(Aws::String &&value)
Definition: Job.h:105
Aws::mgn::Model::Job::WithInitiatedBy
Job & WithInitiatedBy(InitiatedBy &&value)
Definition: Job.h:197
Aws::mgn::Model::Job::WithEndDateTime
Job & WithEndDateTime(const Aws::String &value)
Definition: Job.h:156
Aws::mgn::Model::Job::SetEndDateTime
void SetEndDateTime(const char *value)
Definition: Job.h:151
Aws::mgn::Model::Job::GetStatus
const JobStatus & GetStatus() const
Definition: Job.h:285
Aws::mgn::Model::Job::WithStatus
Job & WithStatus(const JobStatus &value)
Definition: Job.h:305
Aws::mgn::Model::Job::AddTags
Job & AddTags(const Aws::String &key, Aws::String &&value)
Definition: Job.h:356
Aws::mgn::Model::Job::WithStatus
Job & WithStatus(JobStatus &&value)
Definition: Job.h:310
Aws::mgn::Model::Job::SetStatus
void SetStatus(JobStatus &&value)
Definition: Job.h:300
Aws::mgn::Model::Job::AddParticipatingServers
Job & AddParticipatingServers(const ParticipatingServer &value)
Definition: Job.h:274
Aws::mgn::Model::Job::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Job.h:290
Aws::mgn::Model::Job::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Job.h:387
Aws::mgn::Model::Job::WithCreationDateTime
Job & WithCreationDateTime(const Aws::String &value)
Definition: Job.h:115
Aws::mgn::Model::Job::WithCreationDateTime
Job & WithCreationDateTime(Aws::String &&value)
Definition: Job.h:120
Aws::mgn::Model::Job::GetArn
const Aws::String & GetArn() const
Definition: Job.h:49
Aws::mgn::Model::Job::WithType
Job & WithType(const JobType &value)
Definition: Job.h:402
Aws::mgn::Model::Job::WithEndDateTime
Job & WithEndDateTime(const char *value)
Definition: Job.h:166
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::mgn::Model::Job::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Job.h:54
Aws::mgn::Model::Job::AddTags
Job & AddTags(const Aws::String &key, const Aws::String &value)
Definition: Job.h:346
Aws
Definition: AccessManagementClient.h:15
Aws::mgn::Model::Job::AddTags
Job & AddTags(Aws::String &&key, Aws::String &&value)
Definition: Job.h:361
Aws::mgn::Model::Job::WithInitiatedBy
Job & WithInitiatedBy(const InitiatedBy &value)
Definition: Job.h:192
Aws::mgn::Model::Job::WithParticipatingServers
Job & WithParticipatingServers(Aws::Vector< ParticipatingServer > &&value)
Definition: Job.h:269
Aws::mgn::Model::Job::WithEndDateTime
Job & WithEndDateTime(Aws::String &&value)
Definition: Job.h:161
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::mgn::Model::Job::AddTags
Job & AddTags(const char *key, const char *value)
Definition: Job.h:376
Aws::mgn::Model::Job::AddParticipatingServers
Job & AddParticipatingServers(ParticipatingServer &&value)
Definition: Job.h:279
Aws::mgn::Model::Job::AddTags
Job & AddTags(const char *key, Aws::String &&value)
Definition: Job.h:366
Aws::mgn::Model::Job::WithType
Job & WithType(JobType &&value)
Definition: Job.h:407
Aws::mgn::Model::Job::SetJobID
void SetJobID(Aws::String &&value)
Definition: Job.h:218
Aws::mgn::Model::Job::SetArn
void SetArn(Aws::String &&value)
Definition: Job.h:64
AWSMap.h
Aws::mgn::Model::Job::WithJobID
Job & WithJobID(Aws::String &&value)
Definition: Job.h:233
Aws::mgn::Model::Job::AddTags
Job & AddTags(Aws::String &&key, const char *value)
Definition: Job.h:371
Aws::mgn::Model::Job::SetJobID
void SetJobID(const char *value)
Definition: Job.h:223
Aws::mgn::Model::Job::SetEndDateTime
void SetEndDateTime(const Aws::String &value)
Definition: Job.h:141
Aws::mgn::Model::Job::SetType
void SetType(const JobType &value)
Definition: Job.h:392
Aws::mgn::Model::Job::WithJobID
Job & WithJobID(const char *value)
Definition: Job.h:238
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::mgn::Model::Job::SetInitiatedBy
void SetInitiatedBy(InitiatedBy &&value)
Definition: Job.h:187