AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/InitiatedBy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mgn/model/JobStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/mgn/model/JobType.h>
14#include <aws/mgn/model/ParticipatingServer.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace mgn
28{
29namespace Model
30{
31
37 class Job
38 {
39 public:
40 AWS_MGN_API Job();
41 AWS_MGN_API Job(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MGN_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
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 Job& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline Job& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline Job& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetCreationDateTime() const{ return m_creationDateTime; }
65 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
66 inline void SetCreationDateTime(const Aws::String& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
67 inline void SetCreationDateTime(Aws::String&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
68 inline void SetCreationDateTime(const char* value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime.assign(value); }
69 inline Job& WithCreationDateTime(const Aws::String& value) { SetCreationDateTime(value); return *this;}
70 inline Job& WithCreationDateTime(Aws::String&& value) { SetCreationDateTime(std::move(value)); return *this;}
71 inline Job& WithCreationDateTime(const char* value) { SetCreationDateTime(value); return *this;}
73
75
78 inline const Aws::String& GetEndDateTime() const{ return m_endDateTime; }
79 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
80 inline void SetEndDateTime(const Aws::String& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
81 inline void SetEndDateTime(Aws::String&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
82 inline void SetEndDateTime(const char* value) { m_endDateTimeHasBeenSet = true; m_endDateTime.assign(value); }
83 inline Job& WithEndDateTime(const Aws::String& value) { SetEndDateTime(value); return *this;}
84 inline Job& WithEndDateTime(Aws::String&& value) { SetEndDateTime(std::move(value)); return *this;}
85 inline Job& WithEndDateTime(const char* value) { SetEndDateTime(value); return *this;}
87
89
92 inline const InitiatedBy& GetInitiatedBy() const{ return m_initiatedBy; }
93 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
94 inline void SetInitiatedBy(const InitiatedBy& value) { m_initiatedByHasBeenSet = true; m_initiatedBy = value; }
95 inline void SetInitiatedBy(InitiatedBy&& value) { m_initiatedByHasBeenSet = true; m_initiatedBy = std::move(value); }
96 inline Job& WithInitiatedBy(const InitiatedBy& value) { SetInitiatedBy(value); return *this;}
97 inline Job& WithInitiatedBy(InitiatedBy&& value) { SetInitiatedBy(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetJobID() const{ return m_jobID; }
105 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
106 inline void SetJobID(const Aws::String& value) { m_jobIDHasBeenSet = true; m_jobID = value; }
107 inline void SetJobID(Aws::String&& value) { m_jobIDHasBeenSet = true; m_jobID = std::move(value); }
108 inline void SetJobID(const char* value) { m_jobIDHasBeenSet = true; m_jobID.assign(value); }
109 inline Job& WithJobID(const Aws::String& value) { SetJobID(value); return *this;}
110 inline Job& WithJobID(Aws::String&& value) { SetJobID(std::move(value)); return *this;}
111 inline Job& WithJobID(const char* value) { SetJobID(value); return *this;}
113
115
118 inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const{ return m_participatingServers; }
119 inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
120 inline void SetParticipatingServers(const Aws::Vector<ParticipatingServer>& value) { m_participatingServersHasBeenSet = true; m_participatingServers = value; }
121 inline void SetParticipatingServers(Aws::Vector<ParticipatingServer>&& value) { m_participatingServersHasBeenSet = true; m_participatingServers = std::move(value); }
124 inline Job& AddParticipatingServers(const ParticipatingServer& value) { m_participatingServersHasBeenSet = true; m_participatingServers.push_back(value); return *this; }
125 inline Job& AddParticipatingServers(ParticipatingServer&& value) { m_participatingServersHasBeenSet = true; m_participatingServers.push_back(std::move(value)); return *this; }
127
129
132 inline const JobStatus& GetStatus() const{ return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
135 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
136 inline Job& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
137 inline Job& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
139
141
144 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
147 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 inline Job& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
149 inline Job& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
150 inline Job& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
151 inline Job& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
152 inline Job& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
153 inline Job& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
154 inline Job& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
155 inline Job& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
156 inline Job& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
158
160
163 inline const JobType& GetType() const{ return m_type; }
164 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
165 inline void SetType(const JobType& value) { m_typeHasBeenSet = true; m_type = value; }
166 inline void SetType(JobType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
167 inline Job& WithType(const JobType& value) { SetType(value); return *this;}
168 inline Job& WithType(JobType&& value) { SetType(std::move(value)); return *this;}
170 private:
171
172 Aws::String m_arn;
173 bool m_arnHasBeenSet = false;
174
175 Aws::String m_creationDateTime;
176 bool m_creationDateTimeHasBeenSet = false;
177
178 Aws::String m_endDateTime;
179 bool m_endDateTimeHasBeenSet = false;
180
181 InitiatedBy m_initiatedBy;
182 bool m_initiatedByHasBeenSet = false;
183
184 Aws::String m_jobID;
185 bool m_jobIDHasBeenSet = false;
186
187 Aws::Vector<ParticipatingServer> m_participatingServers;
188 bool m_participatingServersHasBeenSet = false;
189
190 JobStatus m_status;
191 bool m_statusHasBeenSet = false;
192
194 bool m_tagsHasBeenSet = false;
195
196 JobType m_type;
197 bool m_typeHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace mgn
202} // namespace Aws
void SetParticipatingServers(const Aws::Vector< ParticipatingServer > &value)
Definition Job.h:120
Job & WithStatus(const JobStatus &value)
Definition Job.h:136
void SetInitiatedBy(InitiatedBy &&value)
Definition Job.h:95
void SetInitiatedBy(const InitiatedBy &value)
Definition Job.h:94
Job & WithInitiatedBy(InitiatedBy &&value)
Definition Job.h:97
Job & AddParticipatingServers(ParticipatingServer &&value)
Definition Job.h:125
void SetType(JobType &&value)
Definition Job.h:166
void SetArn(Aws::String &&value)
Definition Job.h:53
const Aws::String & GetEndDateTime() const
Definition Job.h:78
Job & AddTags(const char *key, Aws::String &&value)
Definition Job.h:154
Job & AddTags(const Aws::String &key, const Aws::String &value)
Definition Job.h:150
bool ParticipatingServersHasBeenSet() const
Definition Job.h:119
void SetArn(const char *value)
Definition Job.h:54
void SetCreationDateTime(Aws::String &&value)
Definition Job.h:67
void SetJobID(const Aws::String &value)
Definition Job.h:106
const Aws::String & GetArn() const
Definition Job.h:50
const Aws::String & GetJobID() const
Definition Job.h:104
bool JobIDHasBeenSet() const
Definition Job.h:105
void SetType(const JobType &value)
Definition Job.h:165
void SetArn(const Aws::String &value)
Definition Job.h:52
const Aws::String & GetCreationDateTime() const
Definition Job.h:64
bool InitiatedByHasBeenSet() const
Definition Job.h:93
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const JobStatus &value)
Definition Job.h:134
Job & WithJobID(const char *value)
Definition Job.h:111
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Job.h:144
bool TagsHasBeenSet() const
Definition Job.h:145
Job & WithEndDateTime(const Aws::String &value)
Definition Job.h:83
bool EndDateTimeHasBeenSet() const
Definition Job.h:79
Job & WithEndDateTime(const char *value)
Definition Job.h:85
Job & WithJobID(const Aws::String &value)
Definition Job.h:109
Job & WithCreationDateTime(const Aws::String &value)
Definition Job.h:69
Job & AddTags(Aws::String &&key, Aws::String &&value)
Definition Job.h:153
void SetJobID(Aws::String &&value)
Definition Job.h:107
Job & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Job.h:149
Job & AddTags(const char *key, const char *value)
Definition Job.h:156
Job & AddTags(Aws::String &&key, const char *value)
Definition Job.h:155
void SetEndDateTime(const Aws::String &value)
Definition Job.h:80
AWS_MGN_API Job()
Job & WithType(const JobType &value)
Definition Job.h:167
void SetParticipatingServers(Aws::Vector< ParticipatingServer > &&value)
Definition Job.h:121
void SetCreationDateTime(const Aws::String &value)
Definition Job.h:66
const InitiatedBy & GetInitiatedBy() const
Definition Job.h:92
bool CreationDateTimeHasBeenSet() const
Definition Job.h:65
void SetJobID(const char *value)
Definition Job.h:108
Job & WithCreationDateTime(const char *value)
Definition Job.h:71
const JobType & GetType() const
Definition Job.h:163
Job & AddTags(const Aws::String &key, Aws::String &&value)
Definition Job.h:152
Job & WithArn(Aws::String &&value)
Definition Job.h:56
Job & WithType(JobType &&value)
Definition Job.h:168
Job & WithParticipatingServers(Aws::Vector< ParticipatingServer > &&value)
Definition Job.h:123
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition Job.h:118
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Job.h:147
Job & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Job.h:148
bool TypeHasBeenSet() const
Definition Job.h:164
Job & WithParticipatingServers(const Aws::Vector< ParticipatingServer > &value)
Definition Job.h:122
Job & WithEndDateTime(Aws::String &&value)
Definition Job.h:84
bool ArnHasBeenSet() const
Definition Job.h:51
void SetEndDateTime(Aws::String &&value)
Definition Job.h:81
const JobStatus & GetStatus() const
Definition Job.h:132
Job & WithArn(const Aws::String &value)
Definition Job.h:55
Job & WithStatus(JobStatus &&value)
Definition Job.h:137
Job & AddParticipatingServers(const ParticipatingServer &value)
Definition Job.h:124
AWS_MGN_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetEndDateTime(const char *value)
Definition Job.h:82
void SetStatus(JobStatus &&value)
Definition Job.h:135
Job & WithArn(const char *value)
Definition Job.h:57
bool StatusHasBeenSet() const
Definition Job.h:133
Job & WithInitiatedBy(const InitiatedBy &value)
Definition Job.h:96
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Job.h:146
Job & WithCreationDateTime(Aws::String &&value)
Definition Job.h:70
Job & WithJobID(Aws::String &&value)
Definition Job.h:110
Job & AddTags(Aws::String &&key, const Aws::String &value)
Definition Job.h:151
void SetCreationDateTime(const char *value)
Definition Job.h:68
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