7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/InitiatedBy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/drs/model/JobStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/drs/model/JobType.h>
14#include <aws/drs/model/ParticipatingResource.h>
15#include <aws/drs/model/ParticipatingServer.h>
41 AWS_DRS_API
Job() =
default;
53 template<
typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
55 template<
typename ArnT = Aws::String>
65 template<
typename CreationDateTimeT = Aws::String>
66 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet =
true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
67 template<
typename CreationDateTimeT = Aws::String>
77 template<
typename EndDateTimeT = Aws::String>
78 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet =
true; m_endDateTime = std::forward<EndDateTimeT>(value); }
79 template<
typename EndDateTimeT = Aws::String>
99 template<
typename JobIDT = Aws::String>
100 void SetJobID(JobIDT&& value) { m_jobIDHasBeenSet =
true; m_jobID = std::forward<JobIDT>(value); }
101 template<
typename JobIDT = Aws::String>
111 template<
typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
112 void SetParticipatingResources(ParticipatingResourcesT&& value) { m_participatingResourcesHasBeenSet =
true; m_participatingResources = std::forward<ParticipatingResourcesT>(value); }
113 template<
typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
115 template<
typename ParticipatingResourcesT = ParticipatingResource>
116 Job&
AddParticipatingResources(ParticipatingResourcesT&& value) { m_participatingResourcesHasBeenSet =
true; m_participatingResources.emplace_back(std::forward<ParticipatingResourcesT>(value));
return *
this; }
125 template<
typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
126 void SetParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet =
true; m_participatingServers = std::forward<ParticipatingServersT>(value); }
127 template<
typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
129 template<
typename ParticipatingServersT = ParticipatingServer>
130 Job&
AddParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet =
true; m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value));
return *
this; }
149 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
151 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
155 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
171 bool m_arnHasBeenSet =
false;
174 bool m_creationDateTimeHasBeenSet =
false;
177 bool m_endDateTimeHasBeenSet =
false;
180 bool m_initiatedByHasBeenSet =
false;
183 bool m_jobIDHasBeenSet =
false;
186 bool m_participatingResourcesHasBeenSet =
false;
189 bool m_participatingServersHasBeenSet =
false;
192 bool m_statusHasBeenSet =
false;
195 bool m_tagsHasBeenSet =
false;
198 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