AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace drs
29{
30namespace Model
31{
32
38 class Job
39 {
40 public:
41 AWS_DRS_API Job();
42 AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DRS_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline Job& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline Job& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline Job& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline const Aws::String& GetCreationDateTime() const{ return m_creationDateTime; }
66 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
67 inline void SetCreationDateTime(const Aws::String& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
68 inline void SetCreationDateTime(Aws::String&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
69 inline void SetCreationDateTime(const char* value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime.assign(value); }
70 inline Job& WithCreationDateTime(const Aws::String& value) { SetCreationDateTime(value); return *this;}
71 inline Job& WithCreationDateTime(Aws::String&& value) { SetCreationDateTime(std::move(value)); return *this;}
72 inline Job& WithCreationDateTime(const char* value) { SetCreationDateTime(value); return *this;}
74
76
79 inline const Aws::String& GetEndDateTime() const{ return m_endDateTime; }
80 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
81 inline void SetEndDateTime(const Aws::String& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
82 inline void SetEndDateTime(Aws::String&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
83 inline void SetEndDateTime(const char* value) { m_endDateTimeHasBeenSet = true; m_endDateTime.assign(value); }
84 inline Job& WithEndDateTime(const Aws::String& value) { SetEndDateTime(value); return *this;}
85 inline Job& WithEndDateTime(Aws::String&& value) { SetEndDateTime(std::move(value)); return *this;}
86 inline Job& WithEndDateTime(const char* value) { SetEndDateTime(value); return *this;}
88
90
93 inline const InitiatedBy& GetInitiatedBy() const{ return m_initiatedBy; }
94 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
95 inline void SetInitiatedBy(const InitiatedBy& value) { m_initiatedByHasBeenSet = true; m_initiatedBy = value; }
96 inline void SetInitiatedBy(InitiatedBy&& value) { m_initiatedByHasBeenSet = true; m_initiatedBy = std::move(value); }
97 inline Job& WithInitiatedBy(const InitiatedBy& value) { SetInitiatedBy(value); return *this;}
98 inline Job& WithInitiatedBy(InitiatedBy&& value) { SetInitiatedBy(std::move(value)); return *this;}
100
102
105 inline const Aws::String& GetJobID() const{ return m_jobID; }
106 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
107 inline void SetJobID(const Aws::String& value) { m_jobIDHasBeenSet = true; m_jobID = value; }
108 inline void SetJobID(Aws::String&& value) { m_jobIDHasBeenSet = true; m_jobID = std::move(value); }
109 inline void SetJobID(const char* value) { m_jobIDHasBeenSet = true; m_jobID.assign(value); }
110 inline Job& WithJobID(const Aws::String& value) { SetJobID(value); return *this;}
111 inline Job& WithJobID(Aws::String&& value) { SetJobID(std::move(value)); return *this;}
112 inline Job& WithJobID(const char* value) { SetJobID(value); return *this;}
114
116
119 inline const Aws::Vector<ParticipatingResource>& GetParticipatingResources() const{ return m_participatingResources; }
120 inline bool ParticipatingResourcesHasBeenSet() const { return m_participatingResourcesHasBeenSet; }
121 inline void SetParticipatingResources(const Aws::Vector<ParticipatingResource>& value) { m_participatingResourcesHasBeenSet = true; m_participatingResources = value; }
122 inline void SetParticipatingResources(Aws::Vector<ParticipatingResource>&& value) { m_participatingResourcesHasBeenSet = true; m_participatingResources = std::move(value); }
125 inline Job& AddParticipatingResources(const ParticipatingResource& value) { m_participatingResourcesHasBeenSet = true; m_participatingResources.push_back(value); return *this; }
126 inline Job& AddParticipatingResources(ParticipatingResource&& value) { m_participatingResourcesHasBeenSet = true; m_participatingResources.push_back(std::move(value)); return *this; }
128
130
133 inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const{ return m_participatingServers; }
134 inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
135 inline void SetParticipatingServers(const Aws::Vector<ParticipatingServer>& value) { m_participatingServersHasBeenSet = true; m_participatingServers = value; }
136 inline void SetParticipatingServers(Aws::Vector<ParticipatingServer>&& value) { m_participatingServersHasBeenSet = true; m_participatingServers = std::move(value); }
139 inline Job& AddParticipatingServers(const ParticipatingServer& value) { m_participatingServersHasBeenSet = true; m_participatingServers.push_back(value); return *this; }
140 inline Job& AddParticipatingServers(ParticipatingServer&& value) { m_participatingServersHasBeenSet = true; m_participatingServers.push_back(std::move(value)); return *this; }
142
144
147 inline const JobStatus& GetStatus() const{ return m_status; }
148 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
149 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
150 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
151 inline Job& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
152 inline Job& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
154
156
159 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
162 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline Job& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
164 inline Job& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
165 inline Job& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
166 inline Job& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
167 inline Job& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
168 inline Job& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
169 inline Job& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
170 inline Job& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
171 inline Job& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
173
175
178 inline const JobType& GetType() const{ return m_type; }
179 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
180 inline void SetType(const JobType& value) { m_typeHasBeenSet = true; m_type = value; }
181 inline void SetType(JobType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
182 inline Job& WithType(const JobType& value) { SetType(value); return *this;}
183 inline Job& WithType(JobType&& value) { SetType(std::move(value)); return *this;}
185 private:
186
187 Aws::String m_arn;
188 bool m_arnHasBeenSet = false;
189
190 Aws::String m_creationDateTime;
191 bool m_creationDateTimeHasBeenSet = false;
192
193 Aws::String m_endDateTime;
194 bool m_endDateTimeHasBeenSet = false;
195
196 InitiatedBy m_initiatedBy;
197 bool m_initiatedByHasBeenSet = false;
198
199 Aws::String m_jobID;
200 bool m_jobIDHasBeenSet = false;
201
202 Aws::Vector<ParticipatingResource> m_participatingResources;
203 bool m_participatingResourcesHasBeenSet = false;
204
205 Aws::Vector<ParticipatingServer> m_participatingServers;
206 bool m_participatingServersHasBeenSet = false;
207
208 JobStatus m_status;
209 bool m_statusHasBeenSet = false;
210
212 bool m_tagsHasBeenSet = false;
213
214 JobType m_type;
215 bool m_typeHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace drs
220} // namespace Aws
void SetCreationDateTime(Aws::String &&value)
Definition Job.h:68
void SetParticipatingServers(const Aws::Vector< ParticipatingServer > &value)
Definition Job.h:135
Job & WithInitiatedBy(const InitiatedBy &value)
Definition Job.h:97
Job & AddTags(const char *key, const char *value)
Definition Job.h:171
Job & AddTags(Aws::String &&key, Aws::String &&value)
Definition Job.h:168
void SetEndDateTime(Aws::String &&value)
Definition Job.h:82
Job & WithInitiatedBy(InitiatedBy &&value)
Definition Job.h:98
bool TagsHasBeenSet() const
Definition Job.h:160
Job & AddTags(Aws::String &&key, const char *value)
Definition Job.h:170
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Job.h:162
AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const JobStatus &value)
Definition Job.h:149
void SetType(const JobType &value)
Definition Job.h:180
Job & WithJobID(Aws::String &&value)
Definition Job.h:111
Job & AddParticipatingServers(ParticipatingServer &&value)
Definition Job.h:140
const Aws::String & GetArn() const
Definition Job.h:51
const InitiatedBy & GetInitiatedBy() const
Definition Job.h:93
void SetParticipatingResources(Aws::Vector< ParticipatingResource > &&value)
Definition Job.h:122
const JobType & GetType() const
Definition Job.h:178
void SetCreationDateTime(const char *value)
Definition Job.h:69
Job & WithType(JobType &&value)
Definition Job.h:183
Job & WithEndDateTime(Aws::String &&value)
Definition Job.h:85
void SetParticipatingServers(Aws::Vector< ParticipatingServer > &&value)
Definition Job.h:136
Job & AddParticipatingResources(const ParticipatingResource &value)
Definition Job.h:125
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Job.h:159
void SetArn(const Aws::String &value)
Definition Job.h:53
Job & AddParticipatingServers(const ParticipatingServer &value)
Definition Job.h:139
bool CreationDateTimeHasBeenSet() const
Definition Job.h:66
Job & WithParticipatingResources(Aws::Vector< ParticipatingResource > &&value)
Definition Job.h:124
Job & WithType(const JobType &value)
Definition Job.h:182
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Job.h:161
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition Job.h:133
Job & WithEndDateTime(const char *value)
Definition Job.h:86
void SetJobID(const char *value)
Definition Job.h:109
const Aws::Vector< ParticipatingResource > & GetParticipatingResources() const
Definition Job.h:119
Job & WithParticipatingResources(const Aws::Vector< ParticipatingResource > &value)
Definition Job.h:123
void SetJobID(Aws::String &&value)
Definition Job.h:108
Job & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Job.h:163
const JobStatus & GetStatus() const
Definition Job.h:147
Job & WithStatus(JobStatus &&value)
Definition Job.h:152
Job & WithCreationDateTime(Aws::String &&value)
Definition Job.h:71
bool EndDateTimeHasBeenSet() const
Definition Job.h:80
const Aws::String & GetEndDateTime() const
Definition Job.h:79
void SetJobID(const Aws::String &value)
Definition Job.h:107
bool StatusHasBeenSet() const
Definition Job.h:148
Job & WithEndDateTime(const Aws::String &value)
Definition Job.h:84
bool InitiatedByHasBeenSet() const
Definition Job.h:94
void SetInitiatedBy(const InitiatedBy &value)
Definition Job.h:95
Job & AddTags(const Aws::String &key, Aws::String &&value)
Definition Job.h:167
void SetParticipatingResources(const Aws::Vector< ParticipatingResource > &value)
Definition Job.h:121
void SetStatus(JobStatus &&value)
Definition Job.h:150
Job & WithArn(const Aws::String &value)
Definition Job.h:56
bool TypeHasBeenSet() const
Definition Job.h:179
AWS_DRS_API Job()
void SetEndDateTime(const Aws::String &value)
Definition Job.h:81
Job & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Job.h:164
const Aws::String & GetJobID() const
Definition Job.h:105
Job & AddTags(const Aws::String &key, const Aws::String &value)
Definition Job.h:165
Job & WithParticipatingServers(const Aws::Vector< ParticipatingServer > &value)
Definition Job.h:137
bool JobIDHasBeenSet() const
Definition Job.h:106
AWS_DRS_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & WithParticipatingServers(Aws::Vector< ParticipatingServer > &&value)
Definition Job.h:138
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(JobType &&value)
Definition Job.h:181
Job & AddTags(Aws::String &&key, const Aws::String &value)
Definition Job.h:166
Job & AddTags(const char *key, Aws::String &&value)
Definition Job.h:169
void SetInitiatedBy(InitiatedBy &&value)
Definition Job.h:96
Job & WithArn(const char *value)
Definition Job.h:58
void SetEndDateTime(const char *value)
Definition Job.h:83
void SetArn(const char *value)
Definition Job.h:55
Job & WithCreationDateTime(const Aws::String &value)
Definition Job.h:70
bool ArnHasBeenSet() const
Definition Job.h:52
Job & WithArn(Aws::String &&value)
Definition Job.h:57
void SetCreationDateTime(const Aws::String &value)
Definition Job.h:67
Job & WithCreationDateTime(const char *value)
Definition Job.h:72
Job & WithJobID(const char *value)
Definition Job.h:112
Job & WithStatus(const JobStatus &value)
Definition Job.h:151
Job & AddParticipatingResources(ParticipatingResource &&value)
Definition Job.h:126
bool ParticipatingServersHasBeenSet() const
Definition Job.h:134
void SetArn(Aws::String &&value)
Definition Job.h:54
const Aws::String & GetCreationDateTime() const
Definition Job.h:65
Job & WithJobID(const Aws::String &value)
Definition Job.h:110
bool ParticipatingResourcesHasBeenSet() const
Definition Job.h:120
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