AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Job.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/drs/Drs_EXPORTS.h>
11#include <aws/drs/model/InitiatedBy.h>
12#include <aws/drs/model/JobStatus.h>
13#include <aws/drs/model/JobType.h>
14#include <aws/drs/model/ParticipatingResource.h>
15#include <aws/drs/model/ParticipatingServer.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace drs {
27namespace Model {
28
34class Job {
35 public:
36 AWS_DRS_API Job() = default;
37 AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DRS_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
40
42
45 inline const Aws::String& GetJobID() const { return m_jobID; }
46 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
47 template <typename JobIDT = Aws::String>
48 void SetJobID(JobIDT&& value) {
49 m_jobIDHasBeenSet = true;
50 m_jobID = std::forward<JobIDT>(value);
51 }
52 template <typename JobIDT = Aws::String>
53 Job& WithJobID(JobIDT&& value) {
54 SetJobID(std::forward<JobIDT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 Job& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline JobType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(JobType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
87 inline Job& WithType(JobType value) {
88 SetType(value);
89 return *this;
90 }
92
94
97 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
98 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
99 inline void SetInitiatedBy(InitiatedBy value) {
100 m_initiatedByHasBeenSet = true;
101 m_initiatedBy = value;
102 }
104 SetInitiatedBy(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
114 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
115 template <typename CreationDateTimeT = Aws::String>
116 void SetCreationDateTime(CreationDateTimeT&& value) {
117 m_creationDateTimeHasBeenSet = true;
118 m_creationDateTime = std::forward<CreationDateTimeT>(value);
119 }
120 template <typename CreationDateTimeT = Aws::String>
121 Job& WithCreationDateTime(CreationDateTimeT&& value) {
122 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
132 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
133 template <typename EndDateTimeT = Aws::String>
134 void SetEndDateTime(EndDateTimeT&& value) {
135 m_endDateTimeHasBeenSet = true;
136 m_endDateTime = std::forward<EndDateTimeT>(value);
137 }
138 template <typename EndDateTimeT = Aws::String>
139 Job& WithEndDateTime(EndDateTimeT&& value) {
140 SetEndDateTime(std::forward<EndDateTimeT>(value));
141 return *this;
142 }
144
146
149 inline JobStatus GetStatus() const { return m_status; }
150 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
151 inline void SetStatus(JobStatus value) {
152 m_statusHasBeenSet = true;
153 m_status = value;
154 }
155 inline Job& WithStatus(JobStatus value) {
156 SetStatus(value);
157 return *this;
158 }
160
162
165 inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const { return m_participatingServers; }
166 inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
167 template <typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
168 void SetParticipatingServers(ParticipatingServersT&& value) {
169 m_participatingServersHasBeenSet = true;
170 m_participatingServers = std::forward<ParticipatingServersT>(value);
171 }
172 template <typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
173 Job& WithParticipatingServers(ParticipatingServersT&& value) {
174 SetParticipatingServers(std::forward<ParticipatingServersT>(value));
175 return *this;
176 }
177 template <typename ParticipatingServersT = ParticipatingServer>
178 Job& AddParticipatingServers(ParticipatingServersT&& value) {
179 m_participatingServersHasBeenSet = true;
180 m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
192 void SetTags(TagsT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags = std::forward<TagsT>(value);
195 }
196 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 Job& WithTags(TagsT&& value) {
198 SetTags(std::forward<TagsT>(value));
199 return *this;
200 }
201 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
202 Job& AddTags(TagsKeyT&& key, TagsValueT&& value) {
203 m_tagsHasBeenSet = true;
204 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::Vector<ParticipatingResource>& GetParticipatingResources() const { return m_participatingResources; }
214 inline bool ParticipatingResourcesHasBeenSet() const { return m_participatingResourcesHasBeenSet; }
215 template <typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
216 void SetParticipatingResources(ParticipatingResourcesT&& value) {
217 m_participatingResourcesHasBeenSet = true;
218 m_participatingResources = std::forward<ParticipatingResourcesT>(value);
219 }
220 template <typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
221 Job& WithParticipatingResources(ParticipatingResourcesT&& value) {
222 SetParticipatingResources(std::forward<ParticipatingResourcesT>(value));
223 return *this;
224 }
225 template <typename ParticipatingResourcesT = ParticipatingResource>
226 Job& AddParticipatingResources(ParticipatingResourcesT&& value) {
227 m_participatingResourcesHasBeenSet = true;
228 m_participatingResources.emplace_back(std::forward<ParticipatingResourcesT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_jobID;
234
235 Aws::String m_arn;
236
238
239 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
240
241 Aws::String m_creationDateTime;
242
243 Aws::String m_endDateTime;
244
246
247 Aws::Vector<ParticipatingServer> m_participatingServers;
248
250
251 Aws::Vector<ParticipatingResource> m_participatingResources;
252 bool m_jobIDHasBeenSet = false;
253 bool m_arnHasBeenSet = false;
254 bool m_typeHasBeenSet = false;
255 bool m_initiatedByHasBeenSet = false;
256 bool m_creationDateTimeHasBeenSet = false;
257 bool m_endDateTimeHasBeenSet = false;
258 bool m_statusHasBeenSet = false;
259 bool m_participatingServersHasBeenSet = false;
260 bool m_tagsHasBeenSet = false;
261 bool m_participatingResourcesHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace drs
266} // namespace Aws
void SetArn(ArnT &&value)
Definition Job.h:66
void SetType(JobType value)
Definition Job.h:83
void SetEndDateTime(EndDateTimeT &&value)
Definition Job.h:134
bool TagsHasBeenSet() const
Definition Job.h:190
AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetInitiatedBy(InitiatedBy value)
Definition Job.h:99
Job & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Job.h:202
const Aws::String & GetArn() const
Definition Job.h:63
JobStatus GetStatus() const
Definition Job.h:149
Job & WithJobID(JobIDT &&value)
Definition Job.h:53
void SetTags(TagsT &&value)
Definition Job.h:192
Job & WithEndDateTime(EndDateTimeT &&value)
Definition Job.h:139
Job & WithParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:173
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Job.h:189
bool CreationDateTimeHasBeenSet() const
Definition Job.h:114
InitiatedBy GetInitiatedBy() const
Definition Job.h:97
Job & WithInitiatedBy(InitiatedBy value)
Definition Job.h:103
void SetStatus(JobStatus value)
Definition Job.h:151
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition Job.h:165
const Aws::Vector< ParticipatingResource > & GetParticipatingResources() const
Definition Job.h:213
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:116
AWS_DRS_API Job()=default
bool EndDateTimeHasBeenSet() const
Definition Job.h:132
const Aws::String & GetEndDateTime() const
Definition Job.h:131
Job & WithParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:221
Job & WithArn(ArnT &&value)
Definition Job.h:71
bool StatusHasBeenSet() const
Definition Job.h:150
bool InitiatedByHasBeenSet() const
Definition Job.h:98
bool TypeHasBeenSet() const
Definition Job.h:82
void SetParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:216
JobType GetType() const
Definition Job.h:81
Job & AddParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:226
Job & AddParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:178
const Aws::String & GetJobID() const
Definition Job.h:45
void SetJobID(JobIDT &&value)
Definition Job.h:48
bool JobIDHasBeenSet() const
Definition Job.h:46
AWS_DRS_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
Job & WithCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:121
Job & WithType(JobType value)
Definition Job.h:87
bool ArnHasBeenSet() const
Definition Job.h:64
Job & WithTags(TagsT &&value)
Definition Job.h:197
void SetParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:168
Job & WithStatus(JobStatus value)
Definition Job.h:155
bool ParticipatingServersHasBeenSet() const
Definition Job.h:166
const Aws::String & GetCreationDateTime() const
Definition Job.h:113
bool ParticipatingResourcesHasBeenSet() const
Definition Job.h:214
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