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>
40 AWS_MGN_API
Job() =
default;
52 template<
typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
54 template<
typename ArnT = Aws::String>
64 template<
typename CreationDateTimeT = Aws::String>
65 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet =
true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
66 template<
typename CreationDateTimeT = Aws::String>
76 template<
typename EndDateTimeT = Aws::String>
77 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet =
true; m_endDateTime = std::forward<EndDateTimeT>(value); }
78 template<
typename EndDateTimeT = Aws::String>
98 template<
typename JobIDT = Aws::String>
99 void SetJobID(JobIDT&& value) { m_jobIDHasBeenSet =
true; m_jobID = std::forward<JobIDT>(value); }
100 template<
typename JobIDT = Aws::String>
110 template<
typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
111 void SetParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet =
true; m_participatingServers = std::forward<ParticipatingServersT>(value); }
112 template<
typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
114 template<
typename ParticipatingServersT = ParticipatingServer>
115 Job&
AddParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet =
true; m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value));
return *
this; }
134 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
136 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
140 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
156 bool m_arnHasBeenSet =
false;
159 bool m_creationDateTimeHasBeenSet =
false;
162 bool m_endDateTimeHasBeenSet =
false;
165 bool m_initiatedByHasBeenSet =
false;
168 bool m_jobIDHasBeenSet =
false;
171 bool m_participatingServersHasBeenSet =
false;
174 bool m_statusHasBeenSet =
false;
177 bool m_tagsHasBeenSet =
false;
180 bool m_typeHasBeenSet =
false;
JobStatus GetStatus() const
void SetCreationDateTime(CreationDateTimeT &&value)
void SetEndDateTime(EndDateTimeT &&value)
InitiatedBy GetInitiatedBy() const
void SetJobID(JobIDT &&value)
const Aws::String & GetEndDateTime() const
bool ParticipatingServersHasBeenSet() const
void SetType(JobType value)
const Aws::String & GetArn() const
const Aws::String & GetJobID() const
Job & WithEndDateTime(EndDateTimeT &&value)
bool JobIDHasBeenSet() const
Job & WithTags(TagsT &&value)
void SetTags(TagsT &&value)
Job & WithInitiatedBy(InitiatedBy value)
const Aws::String & GetCreationDateTime() const
void SetParticipatingServers(ParticipatingServersT &&value)
bool InitiatedByHasBeenSet() const
void SetArn(ArnT &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool TagsHasBeenSet() const
bool EndDateTimeHasBeenSet() const
void SetInitiatedBy(InitiatedBy value)
Job & WithType(JobType value)
Job & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool CreationDateTimeHasBeenSet() const
Job & WithArn(ArnT &&value)
Job & WithStatus(JobStatus value)
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
bool TypeHasBeenSet() const
void SetStatus(JobStatus value)
bool ArnHasBeenSet() const
AWS_MGN_API Job()=default
AWS_MGN_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & WithCreationDateTime(CreationDateTimeT &&value)
AWS_MGN_API Job(Aws::Utils::Json::JsonView jsonValue)
Job & WithJobID(JobIDT &&value)
Job & WithParticipatingServers(ParticipatingServersT &&value)
bool StatusHasBeenSet() const
Job & AddParticipatingServers(ParticipatingServersT &&value)
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