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>
53 template<
typename ReplicationJobIdT = Aws::String>
54 void SetReplicationJobId(ReplicationJobIdT&& value) { m_replicationJobIdHasBeenSet =
true; m_replicationJobId = std::forward<ReplicationJobIdT>(value); }
55 template<
typename ReplicationJobIdT = Aws::String>
65 template<
typename ServerIdT = Aws::String>
66 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet =
true; m_serverId = std::forward<ServerIdT>(value); }
67 template<
typename ServerIdT = Aws::String>
87 template<
typename VmServerT = VmServer>
88 void SetVmServer(VmServerT&& value) { m_vmServerHasBeenSet =
true; m_vmServer = std::forward<VmServerT>(value); }
89 template<
typename VmServerT = VmServer>
99 template<
typename SeedReplicationTimeT = Aws::Utils::DateTime>
100 void SetSeedReplicationTime(SeedReplicationTimeT&& value) { m_seedReplicationTimeHasBeenSet =
true; m_seedReplicationTime = std::forward<SeedReplicationTimeT>(value); }
101 template<
typename SeedReplicationTimeT = Aws::Utils::DateTime>
111 inline void SetFrequency(
int value) { m_frequencyHasBeenSet =
true; m_frequency = value; }
121 inline void SetRunOnce(
bool value) { m_runOnceHasBeenSet =
true; m_runOnce = value; }
131 template<
typename NextReplicationRunStartTimeT = Aws::Utils::DateTime>
132 void SetNextReplicationRunStartTime(NextReplicationRunStartTimeT&& value) { m_nextReplicationRunStartTimeHasBeenSet =
true; m_nextReplicationRunStartTime = std::forward<NextReplicationRunStartTimeT>(value); }
133 template<
typename NextReplicationRunStartTimeT = Aws::Utils::DateTime>
154 template<
typename RoleNameT = Aws::String>
155 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet =
true; m_roleName = std::forward<RoleNameT>(value); }
156 template<
typename RoleNameT = Aws::String>
166 template<
typename LatestAmiIdT = Aws::String>
167 void SetLatestAmiId(LatestAmiIdT&& value) { m_latestAmiIdHasBeenSet =
true; m_latestAmiId = std::forward<LatestAmiIdT>(value); }
168 template<
typename LatestAmiIdT = Aws::String>
188 template<
typename StatusMessageT = Aws::String>
189 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
190 template<
typename StatusMessageT = Aws::String>
200 template<
typename DescriptionT = Aws::String>
201 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
202 template<
typename DescriptionT = Aws::String>
223 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
238 template<
typename KmsKeyIdT = Aws::String>
239 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
240 template<
typename KmsKeyIdT = Aws::String>
250 template<
typename ReplicationRunListT = Aws::Vector<ReplicationRun>>
251 void SetReplicationRunList(ReplicationRunListT&& value) { m_replicationRunListHasBeenSet =
true; m_replicationRunList = std::forward<ReplicationRunListT>(value); }
252 template<
typename ReplicationRunListT = Aws::Vector<ReplicationRun>>
254 template<
typename ReplicationRunListT = ReplicationRun>
255 ReplicationJob&
AddReplicationRunList(ReplicationRunListT&& value) { m_replicationRunListHasBeenSet =
true; m_replicationRunList.emplace_back(std::forward<ReplicationRunListT>(value));
return *
this; }
260 bool m_replicationJobIdHasBeenSet =
false;
263 bool m_serverIdHasBeenSet =
false;
266 bool m_serverTypeHasBeenSet =
false;
269 bool m_vmServerHasBeenSet =
false;
272 bool m_seedReplicationTimeHasBeenSet =
false;
275 bool m_frequencyHasBeenSet =
false;
277 bool m_runOnce{
false};
278 bool m_runOnceHasBeenSet =
false;
281 bool m_nextReplicationRunStartTimeHasBeenSet =
false;
284 bool m_licenseTypeHasBeenSet =
false;
287 bool m_roleNameHasBeenSet =
false;
290 bool m_latestAmiIdHasBeenSet =
false;
293 bool m_stateHasBeenSet =
false;
296 bool m_statusMessageHasBeenSet =
false;
299 bool m_descriptionHasBeenSet =
false;
301 int m_numberOfRecentAmisToKeep{0};
302 bool m_numberOfRecentAmisToKeepHasBeenSet =
false;
304 bool m_encrypted{
false};
305 bool m_encryptedHasBeenSet =
false;
308 bool m_kmsKeyIdHasBeenSet =
false;
311 bool m_replicationRunListHasBeenSet =
false;
ReplicationJob & WithDescription(DescriptionT &&value)
int GetNumberOfRecentAmisToKeep() const
ReplicationJob & WithNextReplicationRunStartTime(NextReplicationRunStartTimeT &&value)
ReplicationJob & WithServerType(ServerType value)
AWS_SMS_API ReplicationJob(Aws::Utils::Json::JsonView jsonValue)
void SetStatusMessage(StatusMessageT &&value)
ReplicationJob & WithLatestAmiId(LatestAmiIdT &&value)
const Aws::Utils::DateTime & GetSeedReplicationTime() const
bool FrequencyHasBeenSet() const
void SetState(ReplicationJobState value)
bool ReplicationJobIdHasBeenSet() const
ReplicationJob & WithFrequency(int value)
void SetRunOnce(bool value)
const VmServer & GetVmServer() const
const Aws::String & GetServerId() const
bool ReplicationRunListHasBeenSet() const
void SetNextReplicationRunStartTime(NextReplicationRunStartTimeT &&value)
void SetNumberOfRecentAmisToKeep(int value)
ReplicationJob & WithReplicationJobId(ReplicationJobIdT &&value)
void SetVmServer(VmServerT &&value)
void SetReplicationRunList(ReplicationRunListT &&value)
void SetLicenseType(LicenseType value)
ReplicationJob & WithState(ReplicationJobState value)
bool RunOnceHasBeenSet() const
void SetKmsKeyId(KmsKeyIdT &&value)
ReplicationJob & WithReplicationRunList(ReplicationRunListT &&value)
void SetRoleName(RoleNameT &&value)
const Aws::Vector< ReplicationRun > & GetReplicationRunList() const
bool StatusMessageHasBeenSet() const
bool DescriptionHasBeenSet() const
ReplicationJob & WithSeedReplicationTime(SeedReplicationTimeT &&value)
const Aws::String & GetDescription() const
ReplicationJob & WithServerId(ServerIdT &&value)
bool ServerTypeHasBeenSet() const
bool KmsKeyIdHasBeenSet() const
const Aws::Utils::DateTime & GetNextReplicationRunStartTime() const
ReplicationJob & WithVmServer(VmServerT &&value)
const Aws::String & GetRoleName() const
bool LicenseTypeHasBeenSet() const
bool ServerIdHasBeenSet() const
void SetLatestAmiId(LatestAmiIdT &&value)
bool LatestAmiIdHasBeenSet() const
ReplicationJobState GetState() const
ReplicationJob & WithRunOnce(bool value)
bool NumberOfRecentAmisToKeepHasBeenSet() const
bool SeedReplicationTimeHasBeenSet() const
ReplicationJob & WithKmsKeyId(KmsKeyIdT &&value)
bool EncryptedHasBeenSet() const
void SetFrequency(int value)
bool NextReplicationRunStartTimeHasBeenSet() const
bool StateHasBeenSet() const
const Aws::String & GetStatusMessage() const
AWS_SMS_API ReplicationJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReplicationJobId(ReplicationJobIdT &&value)
bool RoleNameHasBeenSet() const
void SetServerType(ServerType value)
AWS_SMS_API ReplicationJob()=default
ReplicationJob & WithStatusMessage(StatusMessageT &&value)
LicenseType GetLicenseType() const
ReplicationJob & WithLicenseType(LicenseType value)
const Aws::String & GetReplicationJobId() const
ReplicationJob & WithRoleName(RoleNameT &&value)
void SetSeedReplicationTime(SeedReplicationTimeT &&value)
const Aws::String & GetKmsKeyId() const
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServerId(ServerIdT &&value)
const Aws::String & GetLatestAmiId() const
void SetDescription(DescriptionT &&value)
ReplicationJob & WithEncrypted(bool value)
bool GetEncrypted() const
void SetEncrypted(bool value)
ReplicationJob & AddReplicationRunList(ReplicationRunListT &&value)
bool VmServerHasBeenSet() const
ServerType GetServerType() const
ReplicationJob & WithNumberOfRecentAmisToKeep(int 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