AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
53 Job& WithArn(ArnT&& value) {
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
64 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
65 template <typename CreationDateTimeT = Aws::String>
66 void SetCreationDateTime(CreationDateTimeT&& value) {
67 m_creationDateTimeHasBeenSet = true;
68 m_creationDateTime = std::forward<CreationDateTimeT>(value);
69 }
70 template <typename CreationDateTimeT = Aws::String>
71 Job& WithCreationDateTime(CreationDateTimeT&& value) {
72 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
82 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
83 template <typename EndDateTimeT = Aws::String>
84 void SetEndDateTime(EndDateTimeT&& value) {
85 m_endDateTimeHasBeenSet = true;
86 m_endDateTime = std::forward<EndDateTimeT>(value);
87 }
88 template <typename EndDateTimeT = Aws::String>
89 Job& WithEndDateTime(EndDateTimeT&& value) {
90 SetEndDateTime(std::forward<EndDateTimeT>(value));
91 return *this;
92 }
94
96
99 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
100 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
101 inline void SetInitiatedBy(InitiatedBy value) {
102 m_initiatedByHasBeenSet = true;
103 m_initiatedBy = value;
104 }
106 SetInitiatedBy(value);
107 return *this;
108 }
110
112
115 inline const Aws::String& GetJobID() const { return m_jobID; }
116 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
117 template <typename JobIDT = Aws::String>
118 void SetJobID(JobIDT&& value) {
119 m_jobIDHasBeenSet = true;
120 m_jobID = std::forward<JobIDT>(value);
121 }
122 template <typename JobIDT = Aws::String>
123 Job& WithJobID(JobIDT&& value) {
124 SetJobID(std::forward<JobIDT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<ParticipatingResource>& GetParticipatingResources() const { return m_participatingResources; }
134 inline bool ParticipatingResourcesHasBeenSet() const { return m_participatingResourcesHasBeenSet; }
135 template <typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
136 void SetParticipatingResources(ParticipatingResourcesT&& value) {
137 m_participatingResourcesHasBeenSet = true;
138 m_participatingResources = std::forward<ParticipatingResourcesT>(value);
139 }
140 template <typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
141 Job& WithParticipatingResources(ParticipatingResourcesT&& value) {
142 SetParticipatingResources(std::forward<ParticipatingResourcesT>(value));
143 return *this;
144 }
145 template <typename ParticipatingResourcesT = ParticipatingResource>
146 Job& AddParticipatingResources(ParticipatingResourcesT&& value) {
147 m_participatingResourcesHasBeenSet = true;
148 m_participatingResources.emplace_back(std::forward<ParticipatingResourcesT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const { return m_participatingServers; }
158 inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
159 template <typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
160 void SetParticipatingServers(ParticipatingServersT&& value) {
161 m_participatingServersHasBeenSet = true;
162 m_participatingServers = std::forward<ParticipatingServersT>(value);
163 }
164 template <typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
165 Job& WithParticipatingServers(ParticipatingServersT&& value) {
166 SetParticipatingServers(std::forward<ParticipatingServersT>(value));
167 return *this;
168 }
169 template <typename ParticipatingServersT = ParticipatingServer>
170 Job& AddParticipatingServers(ParticipatingServersT&& value) {
171 m_participatingServersHasBeenSet = true;
172 m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value));
173 return *this;
174 }
176
178
181 inline JobStatus GetStatus() const { return m_status; }
182 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
183 inline void SetStatus(JobStatus value) {
184 m_statusHasBeenSet = true;
185 m_status = value;
186 }
187 inline Job& WithStatus(JobStatus value) {
188 SetStatus(value);
189 return *this;
190 }
192
194
197 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
200 void SetTags(TagsT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags = std::forward<TagsT>(value);
203 }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 Job& WithTags(TagsT&& value) {
206 SetTags(std::forward<TagsT>(value));
207 return *this;
208 }
209 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
210 Job& AddTags(TagsKeyT&& key, TagsValueT&& value) {
211 m_tagsHasBeenSet = true;
212 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
213 return *this;
214 }
216
218
221 inline JobType GetType() const { return m_type; }
222 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
223 inline void SetType(JobType value) {
224 m_typeHasBeenSet = true;
225 m_type = value;
226 }
227 inline Job& WithType(JobType value) {
228 SetType(value);
229 return *this;
230 }
232 private:
233 Aws::String m_arn;
234
235 Aws::String m_creationDateTime;
236
237 Aws::String m_endDateTime;
238
239 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
240
241 Aws::String m_jobID;
242
243 Aws::Vector<ParticipatingResource> m_participatingResources;
244
245 Aws::Vector<ParticipatingServer> m_participatingServers;
246
248
250
252 bool m_arnHasBeenSet = false;
253 bool m_creationDateTimeHasBeenSet = false;
254 bool m_endDateTimeHasBeenSet = false;
255 bool m_initiatedByHasBeenSet = false;
256 bool m_jobIDHasBeenSet = false;
257 bool m_participatingResourcesHasBeenSet = false;
258 bool m_participatingServersHasBeenSet = false;
259 bool m_statusHasBeenSet = false;
260 bool m_tagsHasBeenSet = false;
261 bool m_typeHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace drs
266} // namespace Aws
void SetArn(ArnT &&value)
Definition Job.h:48
void SetType(JobType value)
Definition Job.h:223
void SetEndDateTime(EndDateTimeT &&value)
Definition Job.h:84
bool TagsHasBeenSet() const
Definition Job.h:198
AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetInitiatedBy(InitiatedBy value)
Definition Job.h:101
Job & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Job.h:210
const Aws::String & GetArn() const
Definition Job.h:45
JobStatus GetStatus() const
Definition Job.h:181
Job & WithJobID(JobIDT &&value)
Definition Job.h:123
void SetTags(TagsT &&value)
Definition Job.h:200
Job & WithEndDateTime(EndDateTimeT &&value)
Definition Job.h:89
Job & WithParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:165
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Job.h:197
bool CreationDateTimeHasBeenSet() const
Definition Job.h:64
InitiatedBy GetInitiatedBy() const
Definition Job.h:99
Job & WithInitiatedBy(InitiatedBy value)
Definition Job.h:105
void SetStatus(JobStatus value)
Definition Job.h:183
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition Job.h:157
const Aws::Vector< ParticipatingResource > & GetParticipatingResources() const
Definition Job.h:133
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:66
AWS_DRS_API Job()=default
bool EndDateTimeHasBeenSet() const
Definition Job.h:82
const Aws::String & GetEndDateTime() const
Definition Job.h:81
Job & WithParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:141
Job & WithArn(ArnT &&value)
Definition Job.h:53
bool StatusHasBeenSet() const
Definition Job.h:182
bool InitiatedByHasBeenSet() const
Definition Job.h:100
bool TypeHasBeenSet() const
Definition Job.h:222
void SetParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:136
JobType GetType() const
Definition Job.h:221
Job & AddParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:146
Job & AddParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:170
const Aws::String & GetJobID() const
Definition Job.h:115
void SetJobID(JobIDT &&value)
Definition Job.h:118
bool JobIDHasBeenSet() const
Definition Job.h:116
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:71
Job & WithType(JobType value)
Definition Job.h:227
bool ArnHasBeenSet() const
Definition Job.h:46
Job & WithTags(TagsT &&value)
Definition Job.h:205
void SetParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:160
Job & WithStatus(JobStatus value)
Definition Job.h:187
bool ParticipatingServersHasBeenSet() const
Definition Job.h:158
const Aws::String & GetCreationDateTime() const
Definition Job.h:63
bool ParticipatingResourcesHasBeenSet() const
Definition Job.h:134
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