AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/mgn/Mgn_EXPORTS.h>
11#include <aws/mgn/model/InitiatedBy.h>
12#include <aws/mgn/model/JobStatus.h>
13#include <aws/mgn/model/JobType.h>
14#include <aws/mgn/model/ParticipatingServer.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace mgn {
26namespace Model {
27
33class Job {
34 public:
35 AWS_MGN_API Job() = default;
36 AWS_MGN_API Job(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MGN_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
39
41
44 inline const Aws::String& GetJobID() const { return m_jobID; }
45 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
46 template <typename JobIDT = Aws::String>
47 void SetJobID(JobIDT&& value) {
48 m_jobIDHasBeenSet = true;
49 m_jobID = std::forward<JobIDT>(value);
50 }
51 template <typename JobIDT = Aws::String>
52 Job& WithJobID(JobIDT&& value) {
53 SetJobID(std::forward<JobIDT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template <typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) {
66 m_arnHasBeenSet = true;
67 m_arn = std::forward<ArnT>(value);
68 }
69 template <typename ArnT = Aws::String>
70 Job& WithArn(ArnT&& value) {
71 SetArn(std::forward<ArnT>(value));
72 return *this;
73 }
75
77
80 inline JobType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(JobType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
86 inline Job& WithType(JobType value) {
87 SetType(value);
88 return *this;
89 }
91
93
96 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
97 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
98 inline void SetInitiatedBy(InitiatedBy value) {
99 m_initiatedByHasBeenSet = true;
100 m_initiatedBy = value;
101 }
103 SetInitiatedBy(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
113 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
114 template <typename CreationDateTimeT = Aws::String>
115 void SetCreationDateTime(CreationDateTimeT&& value) {
116 m_creationDateTimeHasBeenSet = true;
117 m_creationDateTime = std::forward<CreationDateTimeT>(value);
118 }
119 template <typename CreationDateTimeT = Aws::String>
120 Job& WithCreationDateTime(CreationDateTimeT&& value) {
121 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
131 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
132 template <typename EndDateTimeT = Aws::String>
133 void SetEndDateTime(EndDateTimeT&& value) {
134 m_endDateTimeHasBeenSet = true;
135 m_endDateTime = std::forward<EndDateTimeT>(value);
136 }
137 template <typename EndDateTimeT = Aws::String>
138 Job& WithEndDateTime(EndDateTimeT&& value) {
139 SetEndDateTime(std::forward<EndDateTimeT>(value));
140 return *this;
141 }
143
145
148 inline JobStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(JobStatus value) {
151 m_statusHasBeenSet = true;
152 m_status = value;
153 }
154 inline Job& WithStatus(JobStatus value) {
155 SetStatus(value);
156 return *this;
157 }
159
161
164 inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const { return m_participatingServers; }
165 inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
166 template <typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
167 void SetParticipatingServers(ParticipatingServersT&& value) {
168 m_participatingServersHasBeenSet = true;
169 m_participatingServers = std::forward<ParticipatingServersT>(value);
170 }
171 template <typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
172 Job& WithParticipatingServers(ParticipatingServersT&& value) {
173 SetParticipatingServers(std::forward<ParticipatingServersT>(value));
174 return *this;
175 }
176 template <typename ParticipatingServersT = ParticipatingServer>
177 Job& AddParticipatingServers(ParticipatingServersT&& value) {
178 m_participatingServersHasBeenSet = true;
179 m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 void SetTags(TagsT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags = std::forward<TagsT>(value);
194 }
195 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 Job& WithTags(TagsT&& value) {
197 SetTags(std::forward<TagsT>(value));
198 return *this;
199 }
200 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
201 Job& AddTags(TagsKeyT&& key, TagsValueT&& value) {
202 m_tagsHasBeenSet = true;
203 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_jobID;
209
210 Aws::String m_arn;
211
213
214 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
215
216 Aws::String m_creationDateTime;
217
218 Aws::String m_endDateTime;
219
221
222 Aws::Vector<ParticipatingServer> m_participatingServers;
223
225 bool m_jobIDHasBeenSet = false;
226 bool m_arnHasBeenSet = false;
227 bool m_typeHasBeenSet = false;
228 bool m_initiatedByHasBeenSet = false;
229 bool m_creationDateTimeHasBeenSet = false;
230 bool m_endDateTimeHasBeenSet = false;
231 bool m_statusHasBeenSet = false;
232 bool m_participatingServersHasBeenSet = false;
233 bool m_tagsHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace mgn
238} // namespace Aws
JobStatus GetStatus() const
Definition Job.h:148
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:115
void SetEndDateTime(EndDateTimeT &&value)
Definition Job.h:133
InitiatedBy GetInitiatedBy() const
Definition Job.h:96
void SetJobID(JobIDT &&value)
Definition Job.h:47
const Aws::String & GetEndDateTime() const
Definition Job.h:130
bool ParticipatingServersHasBeenSet() const
Definition Job.h:165
void SetType(JobType value)
Definition Job.h:82
const Aws::String & GetArn() const
Definition Job.h:62
const Aws::String & GetJobID() const
Definition Job.h:44
Job & WithEndDateTime(EndDateTimeT &&value)
Definition Job.h:138
bool JobIDHasBeenSet() const
Definition Job.h:45
Job & WithTags(TagsT &&value)
Definition Job.h:196
void SetTags(TagsT &&value)
Definition Job.h:191
Job & WithInitiatedBy(InitiatedBy value)
Definition Job.h:102
const Aws::String & GetCreationDateTime() const
Definition Job.h:112
void SetParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:167
bool InitiatedByHasBeenSet() const
Definition Job.h:97
void SetArn(ArnT &&value)
Definition Job.h:65
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Job.h:188
bool TagsHasBeenSet() const
Definition Job.h:189
bool EndDateTimeHasBeenSet() const
Definition Job.h:131
void SetInitiatedBy(InitiatedBy value)
Definition Job.h:98
JobType GetType() const
Definition Job.h:80
Job & WithType(JobType value)
Definition Job.h:86
Job & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Job.h:201
bool CreationDateTimeHasBeenSet() const
Definition Job.h:113
Job & WithArn(ArnT &&value)
Definition Job.h:70
Job & WithStatus(JobStatus value)
Definition Job.h:154
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition Job.h:164
bool TypeHasBeenSet() const
Definition Job.h:81
void SetStatus(JobStatus value)
Definition Job.h:150
bool ArnHasBeenSet() const
Definition Job.h:63
AWS_MGN_API Job()=default
AWS_MGN_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & WithCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:120
AWS_MGN_API Job(Aws::Utils::Json::JsonView jsonValue)
Job & WithJobID(JobIDT &&value)
Definition Job.h:52
Job & WithParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:172
bool StatusHasBeenSet() const
Definition Job.h:149
Job & AddParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:177
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