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>
36 AWS_DRS_API
Job() =
default;
47 template <
typename ArnT = Aws::String>
49 m_arnHasBeenSet =
true;
50 m_arn = std::forward<ArnT>(value);
52 template <
typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
65 template <
typename CreationDateTimeT = Aws::String>
67 m_creationDateTimeHasBeenSet =
true;
68 m_creationDateTime = std::forward<CreationDateTimeT>(value);
70 template <
typename CreationDateTimeT = Aws::String>
83 template <
typename EndDateTimeT = Aws::String>
85 m_endDateTimeHasBeenSet =
true;
86 m_endDateTime = std::forward<EndDateTimeT>(value);
88 template <
typename EndDateTimeT = Aws::String>
102 m_initiatedByHasBeenSet =
true;
103 m_initiatedBy = value;
117 template <
typename JobIDT = Aws::String>
119 m_jobIDHasBeenSet =
true;
120 m_jobID = std::forward<JobIDT>(value);
122 template <
typename JobIDT = Aws::String>
124 SetJobID(std::forward<JobIDT>(value));
135 template <
typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
137 m_participatingResourcesHasBeenSet =
true;
138 m_participatingResources = std::forward<ParticipatingResourcesT>(value);
140 template <
typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
145 template <
typename ParticipatingResourcesT = ParticipatingResource>
147 m_participatingResourcesHasBeenSet =
true;
148 m_participatingResources.emplace_back(std::forward<ParticipatingResourcesT>(value));
159 template <
typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
161 m_participatingServersHasBeenSet =
true;
162 m_participatingServers = std::forward<ParticipatingServersT>(value);
164 template <
typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
169 template <
typename ParticipatingServersT = ParticipatingServer>
171 m_participatingServersHasBeenSet =
true;
172 m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value));
184 m_statusHasBeenSet =
true;
199 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
201 m_tagsHasBeenSet =
true;
202 m_tags = std::forward<TagsT>(value);
204 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
206 SetTags(std::forward<TagsT>(value));
209 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
211 m_tagsHasBeenSet =
true;
212 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
224 m_typeHasBeenSet =
true;
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;
void SetArn(ArnT &&value)
void SetType(JobType value)
void SetEndDateTime(EndDateTimeT &&value)
bool TagsHasBeenSet() const
AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetInitiatedBy(InitiatedBy value)
Job & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetArn() const
JobStatus GetStatus() const
Job & WithJobID(JobIDT &&value)
void SetTags(TagsT &&value)
Job & WithEndDateTime(EndDateTimeT &&value)
Job & WithParticipatingServers(ParticipatingServersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool CreationDateTimeHasBeenSet() const
InitiatedBy GetInitiatedBy() const
Job & WithInitiatedBy(InitiatedBy value)
void SetStatus(JobStatus value)
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
const Aws::Vector< ParticipatingResource > & GetParticipatingResources() const
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_DRS_API Job()=default
bool EndDateTimeHasBeenSet() const
const Aws::String & GetEndDateTime() const
Job & WithParticipatingResources(ParticipatingResourcesT &&value)
Job & WithArn(ArnT &&value)
bool StatusHasBeenSet() const
bool InitiatedByHasBeenSet() const
bool TypeHasBeenSet() const
void SetParticipatingResources(ParticipatingResourcesT &&value)
Job & AddParticipatingResources(ParticipatingResourcesT &&value)
Job & AddParticipatingServers(ParticipatingServersT &&value)
const Aws::String & GetJobID() const
void SetJobID(JobIDT &&value)
bool JobIDHasBeenSet() const
AWS_DRS_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
Job & WithCreationDateTime(CreationDateTimeT &&value)
Job & WithType(JobType value)
bool ArnHasBeenSet() const
Job & WithTags(TagsT &&value)
void SetParticipatingServers(ParticipatingServersT &&value)
Job & WithStatus(JobStatus value)
bool ParticipatingServersHasBeenSet() const
const Aws::String & GetCreationDateTime() const
bool ParticipatingResourcesHasBeenSet() const
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