AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationJob.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sms/model/ServerType.h>
10#include <aws/sms/model/VmServer.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sms/model/LicenseType.h>
13#include <aws/sms/model/ReplicationJobState.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sms/model/ReplicationRun.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 SMS
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_SMS_API ReplicationJob();
45
46
48
51 inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
52 inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
53 inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = value; }
54 inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::move(value); }
55 inline void SetReplicationJobId(const char* value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId.assign(value); }
56 inline ReplicationJob& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
57 inline ReplicationJob& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
58 inline ReplicationJob& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
60
62
65 inline const Aws::String& GetServerId() const{ return m_serverId; }
66 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
67 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
68 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
69 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
70 inline ReplicationJob& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
71 inline ReplicationJob& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
72 inline ReplicationJob& WithServerId(const char* value) { SetServerId(value); return *this;}
74
76
79 inline const ServerType& GetServerType() const{ return m_serverType; }
80 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
81 inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
82 inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); }
83 inline ReplicationJob& WithServerType(const ServerType& value) { SetServerType(value); return *this;}
84 inline ReplicationJob& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;}
86
88
91 inline const VmServer& GetVmServer() const{ return m_vmServer; }
92 inline bool VmServerHasBeenSet() const { return m_vmServerHasBeenSet; }
93 inline void SetVmServer(const VmServer& value) { m_vmServerHasBeenSet = true; m_vmServer = value; }
94 inline void SetVmServer(VmServer&& value) { m_vmServerHasBeenSet = true; m_vmServer = std::move(value); }
95 inline ReplicationJob& WithVmServer(const VmServer& value) { SetVmServer(value); return *this;}
96 inline ReplicationJob& WithVmServer(VmServer&& value) { SetVmServer(std::move(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetSeedReplicationTime() const{ return m_seedReplicationTime; }
104 inline bool SeedReplicationTimeHasBeenSet() const { return m_seedReplicationTimeHasBeenSet; }
105 inline void SetSeedReplicationTime(const Aws::Utils::DateTime& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = value; }
106 inline void SetSeedReplicationTime(Aws::Utils::DateTime&& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = std::move(value); }
108 inline ReplicationJob& WithSeedReplicationTime(Aws::Utils::DateTime&& value) { SetSeedReplicationTime(std::move(value)); return *this;}
110
112
115 inline int GetFrequency() const{ return m_frequency; }
116 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
117 inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
118 inline ReplicationJob& WithFrequency(int value) { SetFrequency(value); return *this;}
120
122
125 inline bool GetRunOnce() const{ return m_runOnce; }
126 inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
127 inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
128 inline ReplicationJob& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetNextReplicationRunStartTime() const{ return m_nextReplicationRunStartTime; }
136 inline bool NextReplicationRunStartTimeHasBeenSet() const { return m_nextReplicationRunStartTimeHasBeenSet; }
137 inline void SetNextReplicationRunStartTime(const Aws::Utils::DateTime& value) { m_nextReplicationRunStartTimeHasBeenSet = true; m_nextReplicationRunStartTime = value; }
138 inline void SetNextReplicationRunStartTime(Aws::Utils::DateTime&& value) { m_nextReplicationRunStartTimeHasBeenSet = true; m_nextReplicationRunStartTime = std::move(value); }
142
144
148 inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
149 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
150 inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
151 inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
152 inline ReplicationJob& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
153 inline ReplicationJob& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
155
157
160 inline const Aws::String& GetRoleName() const{ return m_roleName; }
161 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
162 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
163 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
164 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
165 inline ReplicationJob& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
166 inline ReplicationJob& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
167 inline ReplicationJob& WithRoleName(const char* value) { SetRoleName(value); return *this;}
169
171
174 inline const Aws::String& GetLatestAmiId() const{ return m_latestAmiId; }
175 inline bool LatestAmiIdHasBeenSet() const { return m_latestAmiIdHasBeenSet; }
176 inline void SetLatestAmiId(const Aws::String& value) { m_latestAmiIdHasBeenSet = true; m_latestAmiId = value; }
177 inline void SetLatestAmiId(Aws::String&& value) { m_latestAmiIdHasBeenSet = true; m_latestAmiId = std::move(value); }
178 inline void SetLatestAmiId(const char* value) { m_latestAmiIdHasBeenSet = true; m_latestAmiId.assign(value); }
179 inline ReplicationJob& WithLatestAmiId(const Aws::String& value) { SetLatestAmiId(value); return *this;}
180 inline ReplicationJob& WithLatestAmiId(Aws::String&& value) { SetLatestAmiId(std::move(value)); return *this;}
181 inline ReplicationJob& WithLatestAmiId(const char* value) { SetLatestAmiId(value); return *this;}
183
185
188 inline const ReplicationJobState& GetState() const{ return m_state; }
189 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
190 inline void SetState(const ReplicationJobState& value) { m_stateHasBeenSet = true; m_state = value; }
191 inline void SetState(ReplicationJobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
192 inline ReplicationJob& WithState(const ReplicationJobState& value) { SetState(value); return *this;}
193 inline ReplicationJob& WithState(ReplicationJobState&& value) { SetState(std::move(value)); return *this;}
195
197
200 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
201 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
202 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
203 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
204 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
205 inline ReplicationJob& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
206 inline ReplicationJob& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
207 inline ReplicationJob& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
209
211
214 inline const Aws::String& GetDescription() const{ return m_description; }
215 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
216 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
217 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
218 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
219 inline ReplicationJob& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
220 inline ReplicationJob& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
221 inline ReplicationJob& WithDescription(const char* value) { SetDescription(value); return *this;}
223
225
229 inline int GetNumberOfRecentAmisToKeep() const{ return m_numberOfRecentAmisToKeep; }
230 inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
231 inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
234
236
239 inline bool GetEncrypted() const{ return m_encrypted; }
240 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
241 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
242 inline ReplicationJob& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
244
246
254 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
255 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
256 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
257 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
258 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
259 inline ReplicationJob& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
260 inline ReplicationJob& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
261 inline ReplicationJob& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
263
265
268 inline const Aws::Vector<ReplicationRun>& GetReplicationRunList() const{ return m_replicationRunList; }
269 inline bool ReplicationRunListHasBeenSet() const { return m_replicationRunListHasBeenSet; }
270 inline void SetReplicationRunList(const Aws::Vector<ReplicationRun>& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList = value; }
271 inline void SetReplicationRunList(Aws::Vector<ReplicationRun>&& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList = std::move(value); }
274 inline ReplicationJob& AddReplicationRunList(const ReplicationRun& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList.push_back(value); return *this; }
275 inline ReplicationJob& AddReplicationRunList(ReplicationRun&& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList.push_back(std::move(value)); return *this; }
277 private:
278
279 Aws::String m_replicationJobId;
280 bool m_replicationJobIdHasBeenSet = false;
281
282 Aws::String m_serverId;
283 bool m_serverIdHasBeenSet = false;
284
285 ServerType m_serverType;
286 bool m_serverTypeHasBeenSet = false;
287
288 VmServer m_vmServer;
289 bool m_vmServerHasBeenSet = false;
290
291 Aws::Utils::DateTime m_seedReplicationTime;
292 bool m_seedReplicationTimeHasBeenSet = false;
293
294 int m_frequency;
295 bool m_frequencyHasBeenSet = false;
296
297 bool m_runOnce;
298 bool m_runOnceHasBeenSet = false;
299
300 Aws::Utils::DateTime m_nextReplicationRunStartTime;
301 bool m_nextReplicationRunStartTimeHasBeenSet = false;
302
303 LicenseType m_licenseType;
304 bool m_licenseTypeHasBeenSet = false;
305
306 Aws::String m_roleName;
307 bool m_roleNameHasBeenSet = false;
308
309 Aws::String m_latestAmiId;
310 bool m_latestAmiIdHasBeenSet = false;
311
312 ReplicationJobState m_state;
313 bool m_stateHasBeenSet = false;
314
315 Aws::String m_statusMessage;
316 bool m_statusMessageHasBeenSet = false;
317
318 Aws::String m_description;
319 bool m_descriptionHasBeenSet = false;
320
321 int m_numberOfRecentAmisToKeep;
322 bool m_numberOfRecentAmisToKeepHasBeenSet = false;
323
324 bool m_encrypted;
325 bool m_encryptedHasBeenSet = false;
326
327 Aws::String m_kmsKeyId;
328 bool m_kmsKeyIdHasBeenSet = false;
329
330 Aws::Vector<ReplicationRun> m_replicationRunList;
331 bool m_replicationRunListHasBeenSet = false;
332 };
333
334} // namespace Model
335} // namespace SMS
336} // namespace Aws
void SetKmsKeyId(const char *value)
ReplicationJob & WithReplicationJobId(Aws::String &&value)
void SetState(ReplicationJobState &&value)
AWS_SMS_API ReplicationJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetSeedReplicationTime() const
const ServerType & GetServerType() const
void SetReplicationJobId(const Aws::String &value)
ReplicationJob & WithKmsKeyId(const char *value)
ReplicationJob & WithServerType(const ServerType &value)
void SetReplicationRunList(Aws::Vector< ReplicationRun > &&value)
ReplicationJob & WithFrequency(int value)
void SetRoleName(const char *value)
ReplicationJob & WithKmsKeyId(const Aws::String &value)
const VmServer & GetVmServer() const
ReplicationJob & WithLatestAmiId(const Aws::String &value)
const Aws::String & GetServerId() const
ReplicationJob & WithStatusMessage(const Aws::String &value)
ReplicationJob & WithSeedReplicationTime(const Aws::Utils::DateTime &value)
void SetNumberOfRecentAmisToKeep(int value)
void SetKmsKeyId(const Aws::String &value)
ReplicationJob & WithStatusMessage(const char *value)
void SetVmServer(VmServer &&value)
void SetDescription(const char *value)
void SetStatusMessage(const Aws::String &value)
void SetDescription(const Aws::String &value)
ReplicationJob & WithLicenseType(LicenseType &&value)
void SetDescription(Aws::String &&value)
void SetRoleName(const Aws::String &value)
ReplicationJob & WithReplicationRunList(Aws::Vector< ReplicationRun > &&value)
ReplicationJob & AddReplicationRunList(ReplicationRun &&value)
ReplicationJob & WithVmServer(const VmServer &value)
ReplicationJob & WithServerId(const Aws::String &value)
void SetState(const ReplicationJobState &value)
const Aws::Vector< ReplicationRun > & GetReplicationRunList() const
void SetLatestAmiId(const Aws::String &value)
void SetRoleName(Aws::String &&value)
void SetServerId(Aws::String &&value)
ReplicationJob & WithLatestAmiId(const char *value)
void SetLatestAmiId(const char *value)
const Aws::String & GetDescription() const
void SetLicenseType(const LicenseType &value)
ReplicationJob & WithRoleName(const Aws::String &value)
ReplicationJob & WithServerId(const char *value)
ReplicationJob & WithSeedReplicationTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetNextReplicationRunStartTime() const
ReplicationJob & WithRoleName(const char *value)
const Aws::String & GetRoleName() const
ReplicationJob & WithDescription(const char *value)
void SetReplicationRunList(const Aws::Vector< ReplicationRun > &value)
void SetSeedReplicationTime(Aws::Utils::DateTime &&value)
void SetLatestAmiId(Aws::String &&value)
void SetNextReplicationRunStartTime(const Aws::Utils::DateTime &value)
const LicenseType & GetLicenseType() const
ReplicationJob & WithReplicationJobId(const char *value)
void SetStatusMessage(const char *value)
ReplicationJob & WithKmsKeyId(Aws::String &&value)
ReplicationJob & WithRunOnce(bool value)
ReplicationJob & WithStatusMessage(Aws::String &&value)
bool NumberOfRecentAmisToKeepHasBeenSet() const
ReplicationJob & WithReplicationJobId(const Aws::String &value)
void SetServerId(const char *value)
void SetNextReplicationRunStartTime(Aws::Utils::DateTime &&value)
void SetVmServer(const VmServer &value)
ReplicationJob & WithReplicationRunList(const Aws::Vector< ReplicationRun > &value)
ReplicationJob & WithServerId(Aws::String &&value)
bool NextReplicationRunStartTimeHasBeenSet() const
const Aws::String & GetStatusMessage() const
ReplicationJob & WithNextReplicationRunStartTime(const Aws::Utils::DateTime &value)
AWS_SMS_API ReplicationJob & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicationJob & AddReplicationRunList(const ReplicationRun &value)
ReplicationJob & WithVmServer(VmServer &&value)
void SetServerId(const Aws::String &value)
ReplicationJob & WithState(ReplicationJobState &&value)
void SetKmsKeyId(Aws::String &&value)
ReplicationJob & WithRoleName(Aws::String &&value)
const Aws::String & GetReplicationJobId() const
ReplicationJob & WithDescription(Aws::String &&value)
ReplicationJob & WithLatestAmiId(Aws::String &&value)
ReplicationJob & WithState(const ReplicationJobState &value)
ReplicationJob & WithServerType(ServerType &&value)
const Aws::String & GetKmsKeyId() const
void SetServerType(ServerType &&value)
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
const ReplicationJobState & GetState() const
const Aws::String & GetLatestAmiId() const
void SetReplicationJobId(Aws::String &&value)
ReplicationJob & WithLicenseType(const LicenseType &value)
ReplicationJob & WithEncrypted(bool value)
void SetReplicationJobId(const char *value)
ReplicationJob & WithDescription(const Aws::String &value)
void SetServerType(const ServerType &value)
ReplicationJob & WithNextReplicationRunStartTime(Aws::Utils::DateTime &&value)
void SetLicenseType(LicenseType &&value)
void SetSeedReplicationTime(const Aws::Utils::DateTime &value)
ReplicationJob & WithNumberOfRecentAmisToKeep(int value)
void SetStatusMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue