/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DatabaseMigrationService { namespace Model { /** *

Provides information that describes a replication task created by the * CreateReplicationTask operation.

See Also:

AWS * API Reference

*/ class ReplicationTask { public: AWS_DATABASEMIGRATIONSERVICE_API ReplicationTask(); AWS_DATABASEMIGRATIONSERVICE_API ReplicationTask(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API ReplicationTask& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline const Aws::String& GetReplicationTaskIdentifier() const{ return m_replicationTaskIdentifier; } /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline bool ReplicationTaskIdentifierHasBeenSet() const { return m_replicationTaskIdentifierHasBeenSet; } /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline void SetReplicationTaskIdentifier(const Aws::String& value) { m_replicationTaskIdentifierHasBeenSet = true; m_replicationTaskIdentifier = value; } /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline void SetReplicationTaskIdentifier(Aws::String&& value) { m_replicationTaskIdentifierHasBeenSet = true; m_replicationTaskIdentifier = std::move(value); } /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline void SetReplicationTaskIdentifier(const char* value) { m_replicationTaskIdentifierHasBeenSet = true; m_replicationTaskIdentifier.assign(value); } /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline ReplicationTask& WithReplicationTaskIdentifier(const Aws::String& value) { SetReplicationTaskIdentifier(value); return *this;} /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline ReplicationTask& WithReplicationTaskIdentifier(Aws::String&& value) { SetReplicationTaskIdentifier(std::move(value)); return *this;} /** *

The user-assigned replication task identifier or name.

*

Constraints:

  • Must contain 1-255 alphanumeric characters or * hyphens.

  • First character must be a letter.

  • *

    Cannot end with a hyphen or contain two consecutive hyphens.

*/ inline ReplicationTask& WithReplicationTaskIdentifier(const char* value) { SetReplicationTaskIdentifier(value); return *this;} /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline const Aws::String& GetSourceEndpointArn() const{ return m_sourceEndpointArn; } /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline bool SourceEndpointArnHasBeenSet() const { return m_sourceEndpointArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline void SetSourceEndpointArn(const Aws::String& value) { m_sourceEndpointArnHasBeenSet = true; m_sourceEndpointArn = value; } /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline void SetSourceEndpointArn(Aws::String&& value) { m_sourceEndpointArnHasBeenSet = true; m_sourceEndpointArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline void SetSourceEndpointArn(const char* value) { m_sourceEndpointArnHasBeenSet = true; m_sourceEndpointArn.assign(value); } /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline ReplicationTask& WithSourceEndpointArn(const Aws::String& value) { SetSourceEndpointArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline ReplicationTask& WithSourceEndpointArn(Aws::String&& value) { SetSourceEndpointArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that uniquely identifies the endpoint.

*/ inline ReplicationTask& WithSourceEndpointArn(const char* value) { SetSourceEndpointArn(value); return *this;} /** *

The ARN that uniquely identifies the endpoint.

*/ inline const Aws::String& GetTargetEndpointArn() const{ return m_targetEndpointArn; } /** *

The ARN that uniquely identifies the endpoint.

*/ inline bool TargetEndpointArnHasBeenSet() const { return m_targetEndpointArnHasBeenSet; } /** *

The ARN that uniquely identifies the endpoint.

*/ inline void SetTargetEndpointArn(const Aws::String& value) { m_targetEndpointArnHasBeenSet = true; m_targetEndpointArn = value; } /** *

The ARN that uniquely identifies the endpoint.

*/ inline void SetTargetEndpointArn(Aws::String&& value) { m_targetEndpointArnHasBeenSet = true; m_targetEndpointArn = std::move(value); } /** *

The ARN that uniquely identifies the endpoint.

*/ inline void SetTargetEndpointArn(const char* value) { m_targetEndpointArnHasBeenSet = true; m_targetEndpointArn.assign(value); } /** *

The ARN that uniquely identifies the endpoint.

*/ inline ReplicationTask& WithTargetEndpointArn(const Aws::String& value) { SetTargetEndpointArn(value); return *this;} /** *

The ARN that uniquely identifies the endpoint.

*/ inline ReplicationTask& WithTargetEndpointArn(Aws::String&& value) { SetTargetEndpointArn(std::move(value)); return *this;} /** *

The ARN that uniquely identifies the endpoint.

*/ inline ReplicationTask& WithTargetEndpointArn(const char* value) { SetTargetEndpointArn(value); return *this;} /** *

The ARN of the replication instance.

*/ inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; } /** *

The ARN of the replication instance.

*/ inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; } /** *

The ARN of the replication instance.

*/ inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; } /** *

The ARN of the replication instance.

*/ inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); } /** *

The ARN of the replication instance.

*/ inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); } /** *

The ARN of the replication instance.

*/ inline ReplicationTask& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;} /** *

The ARN of the replication instance.

*/ inline ReplicationTask& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(std::move(value)); return *this;} /** *

The ARN of the replication instance.

*/ inline ReplicationTask& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;} /** *

The type of migration.

*/ inline const MigrationTypeValue& GetMigrationType() const{ return m_migrationType; } /** *

The type of migration.

*/ inline bool MigrationTypeHasBeenSet() const { return m_migrationTypeHasBeenSet; } /** *

The type of migration.

*/ inline void SetMigrationType(const MigrationTypeValue& value) { m_migrationTypeHasBeenSet = true; m_migrationType = value; } /** *

The type of migration.

*/ inline void SetMigrationType(MigrationTypeValue&& value) { m_migrationTypeHasBeenSet = true; m_migrationType = std::move(value); } /** *

The type of migration.

*/ inline ReplicationTask& WithMigrationType(const MigrationTypeValue& value) { SetMigrationType(value); return *this;} /** *

The type of migration.

*/ inline ReplicationTask& WithMigrationType(MigrationTypeValue&& value) { SetMigrationType(std::move(value)); return *this;} /** *

Table mappings specified in the task.

*/ inline const Aws::String& GetTableMappings() const{ return m_tableMappings; } /** *

Table mappings specified in the task.

*/ inline bool TableMappingsHasBeenSet() const { return m_tableMappingsHasBeenSet; } /** *

Table mappings specified in the task.

*/ inline void SetTableMappings(const Aws::String& value) { m_tableMappingsHasBeenSet = true; m_tableMappings = value; } /** *

Table mappings specified in the task.

*/ inline void SetTableMappings(Aws::String&& value) { m_tableMappingsHasBeenSet = true; m_tableMappings = std::move(value); } /** *

Table mappings specified in the task.

*/ inline void SetTableMappings(const char* value) { m_tableMappingsHasBeenSet = true; m_tableMappings.assign(value); } /** *

Table mappings specified in the task.

*/ inline ReplicationTask& WithTableMappings(const Aws::String& value) { SetTableMappings(value); return *this;} /** *

Table mappings specified in the task.

*/ inline ReplicationTask& WithTableMappings(Aws::String&& value) { SetTableMappings(std::move(value)); return *this;} /** *

Table mappings specified in the task.

*/ inline ReplicationTask& WithTableMappings(const char* value) { SetTableMappings(value); return *this;} /** *

The settings for the replication task.

*/ inline const Aws::String& GetReplicationTaskSettings() const{ return m_replicationTaskSettings; } /** *

The settings for the replication task.

*/ inline bool ReplicationTaskSettingsHasBeenSet() const { return m_replicationTaskSettingsHasBeenSet; } /** *

The settings for the replication task.

*/ inline void SetReplicationTaskSettings(const Aws::String& value) { m_replicationTaskSettingsHasBeenSet = true; m_replicationTaskSettings = value; } /** *

The settings for the replication task.

*/ inline void SetReplicationTaskSettings(Aws::String&& value) { m_replicationTaskSettingsHasBeenSet = true; m_replicationTaskSettings = std::move(value); } /** *

The settings for the replication task.

*/ inline void SetReplicationTaskSettings(const char* value) { m_replicationTaskSettingsHasBeenSet = true; m_replicationTaskSettings.assign(value); } /** *

The settings for the replication task.

*/ inline ReplicationTask& WithReplicationTaskSettings(const Aws::String& value) { SetReplicationTaskSettings(value); return *this;} /** *

The settings for the replication task.

*/ inline ReplicationTask& WithReplicationTaskSettings(Aws::String&& value) { SetReplicationTaskSettings(std::move(value)); return *this;} /** *

The settings for the replication task.

*/ inline ReplicationTask& WithReplicationTaskSettings(const char* value) { SetReplicationTaskSettings(value); return *this;} /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline ReplicationTask& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline ReplicationTask& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the replication task. This response parameter can return one of * the following values:

*/ inline ReplicationTask& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The last error (failure) message generated for the replication task.

*/ inline const Aws::String& GetLastFailureMessage() const{ return m_lastFailureMessage; } /** *

The last error (failure) message generated for the replication task.

*/ inline bool LastFailureMessageHasBeenSet() const { return m_lastFailureMessageHasBeenSet; } /** *

The last error (failure) message generated for the replication task.

*/ inline void SetLastFailureMessage(const Aws::String& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = value; } /** *

The last error (failure) message generated for the replication task.

*/ inline void SetLastFailureMessage(Aws::String&& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = std::move(value); } /** *

The last error (failure) message generated for the replication task.

*/ inline void SetLastFailureMessage(const char* value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage.assign(value); } /** *

The last error (failure) message generated for the replication task.

*/ inline ReplicationTask& WithLastFailureMessage(const Aws::String& value) { SetLastFailureMessage(value); return *this;} /** *

The last error (failure) message generated for the replication task.

*/ inline ReplicationTask& WithLastFailureMessage(Aws::String&& value) { SetLastFailureMessage(std::move(value)); return *this;} /** *

The last error (failure) message generated for the replication task.

*/ inline ReplicationTask& WithLastFailureMessage(const char* value) { SetLastFailureMessage(value); return *this;} /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline const Aws::String& GetStopReason() const{ return m_stopReason; } /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline bool StopReasonHasBeenSet() const { return m_stopReasonHasBeenSet; } /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline void SetStopReason(const Aws::String& value) { m_stopReasonHasBeenSet = true; m_stopReason = value; } /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline void SetStopReason(Aws::String&& value) { m_stopReasonHasBeenSet = true; m_stopReason = std::move(value); } /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline void SetStopReason(const char* value) { m_stopReasonHasBeenSet = true; m_stopReason.assign(value); } /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline ReplicationTask& WithStopReason(const Aws::String& value) { SetStopReason(value); return *this;} /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline ReplicationTask& WithStopReason(Aws::String&& value) { SetStopReason(std::move(value)); return *this;} /** *

The reason the replication task was stopped. This response parameter can * return one of the following values:

  • "Stop Reason * NORMAL"

  • "Stop Reason RECOVERABLE_ERROR" *

  • "Stop Reason FATAL_ERROR"

  • * "Stop Reason FULL_LOAD_ONLY_FINISHED"

  • * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with * cached changes not applied

  • "Stop Reason * STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes * applied

  • "Stop Reason * EXPRESS_LICENSE_LIMITS_REACHED"

  • "Stop Reason * STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied

    *
  • "Stop Reason STOPPED_DUE_TO_LOW_MEMORY"

  • *
  • "Stop Reason STOPPED_DUE_TO_LOW_DISK"

  • * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for * stopping task

  • "Stop Reason * STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task

    *
  • "Stop Reason RECONFIGURATION_RESTART"

  • *
  • "Stop Reason RECYCLE_TASK"

*/ inline ReplicationTask& WithStopReason(const char* value) { SetStopReason(value); return *this;} /** *

The date the replication task was created.

*/ inline const Aws::Utils::DateTime& GetReplicationTaskCreationDate() const{ return m_replicationTaskCreationDate; } /** *

The date the replication task was created.

*/ inline bool ReplicationTaskCreationDateHasBeenSet() const { return m_replicationTaskCreationDateHasBeenSet; } /** *

The date the replication task was created.

*/ inline void SetReplicationTaskCreationDate(const Aws::Utils::DateTime& value) { m_replicationTaskCreationDateHasBeenSet = true; m_replicationTaskCreationDate = value; } /** *

The date the replication task was created.

*/ inline void SetReplicationTaskCreationDate(Aws::Utils::DateTime&& value) { m_replicationTaskCreationDateHasBeenSet = true; m_replicationTaskCreationDate = std::move(value); } /** *

The date the replication task was created.

*/ inline ReplicationTask& WithReplicationTaskCreationDate(const Aws::Utils::DateTime& value) { SetReplicationTaskCreationDate(value); return *this;} /** *

The date the replication task was created.

*/ inline ReplicationTask& WithReplicationTaskCreationDate(Aws::Utils::DateTime&& value) { SetReplicationTaskCreationDate(std::move(value)); return *this;} /** *

The date the replication task is scheduled to start.

*/ inline const Aws::Utils::DateTime& GetReplicationTaskStartDate() const{ return m_replicationTaskStartDate; } /** *

The date the replication task is scheduled to start.

*/ inline bool ReplicationTaskStartDateHasBeenSet() const { return m_replicationTaskStartDateHasBeenSet; } /** *

The date the replication task is scheduled to start.

*/ inline void SetReplicationTaskStartDate(const Aws::Utils::DateTime& value) { m_replicationTaskStartDateHasBeenSet = true; m_replicationTaskStartDate = value; } /** *

The date the replication task is scheduled to start.

*/ inline void SetReplicationTaskStartDate(Aws::Utils::DateTime&& value) { m_replicationTaskStartDateHasBeenSet = true; m_replicationTaskStartDate = std::move(value); } /** *

The date the replication task is scheduled to start.

*/ inline ReplicationTask& WithReplicationTaskStartDate(const Aws::Utils::DateTime& value) { SetReplicationTaskStartDate(value); return *this;} /** *

The date the replication task is scheduled to start.

*/ inline ReplicationTask& WithReplicationTaskStartDate(Aws::Utils::DateTime&& value) { SetReplicationTaskStartDate(std::move(value)); return *this;} /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline const Aws::String& GetCdcStartPosition() const{ return m_cdcStartPosition; } /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline bool CdcStartPositionHasBeenSet() const { return m_cdcStartPositionHasBeenSet; } /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline void SetCdcStartPosition(const Aws::String& value) { m_cdcStartPositionHasBeenSet = true; m_cdcStartPosition = value; } /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline void SetCdcStartPosition(Aws::String&& value) { m_cdcStartPositionHasBeenSet = true; m_cdcStartPosition = std::move(value); } /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline void SetCdcStartPosition(const char* value) { m_cdcStartPositionHasBeenSet = true; m_cdcStartPosition.assign(value); } /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline ReplicationTask& WithCdcStartPosition(const Aws::String& value) { SetCdcStartPosition(value); return *this;} /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline ReplicationTask& WithCdcStartPosition(Aws::String&& value) { SetCdcStartPosition(std::move(value)); return *this;} /** *

Indicates when you want a change data capture (CDC) operation to start. Use * either CdcStartPosition or CdcStartTime to specify * when you want the CDC operation to start. Specifying both values results in an * error.

The value can be in date, checkpoint, or LSN/SCN format.

*

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint * Example: --cdc-start-position * "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

*

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

*/ inline ReplicationTask& WithCdcStartPosition(const char* value) { SetCdcStartPosition(value); return *this;} /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline const Aws::String& GetCdcStopPosition() const{ return m_cdcStopPosition; } /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline bool CdcStopPositionHasBeenSet() const { return m_cdcStopPositionHasBeenSet; } /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline void SetCdcStopPosition(const Aws::String& value) { m_cdcStopPositionHasBeenSet = true; m_cdcStopPosition = value; } /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline void SetCdcStopPosition(Aws::String&& value) { m_cdcStopPositionHasBeenSet = true; m_cdcStopPosition = std::move(value); } /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline void SetCdcStopPosition(const char* value) { m_cdcStopPositionHasBeenSet = true; m_cdcStopPosition.assign(value); } /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline ReplicationTask& WithCdcStopPosition(const Aws::String& value) { SetCdcStopPosition(value); return *this;} /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline ReplicationTask& WithCdcStopPosition(Aws::String&& value) { SetCdcStopPosition(std::move(value)); return *this;} /** *

Indicates when you want a change data capture (CDC) operation to stop. The * value can be either server time or commit time.

Server time example: * --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time * example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12“

*/ inline ReplicationTask& WithCdcStopPosition(const char* value) { SetCdcStopPosition(value); return *this;} /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline const Aws::String& GetRecoveryCheckpoint() const{ return m_recoveryCheckpoint; } /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline bool RecoveryCheckpointHasBeenSet() const { return m_recoveryCheckpointHasBeenSet; } /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline void SetRecoveryCheckpoint(const Aws::String& value) { m_recoveryCheckpointHasBeenSet = true; m_recoveryCheckpoint = value; } /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline void SetRecoveryCheckpoint(Aws::String&& value) { m_recoveryCheckpointHasBeenSet = true; m_recoveryCheckpoint = std::move(value); } /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline void SetRecoveryCheckpoint(const char* value) { m_recoveryCheckpointHasBeenSet = true; m_recoveryCheckpoint.assign(value); } /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline ReplicationTask& WithRecoveryCheckpoint(const Aws::String& value) { SetRecoveryCheckpoint(value); return *this;} /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline ReplicationTask& WithRecoveryCheckpoint(Aws::String&& value) { SetRecoveryCheckpoint(std::move(value)); return *this;} /** *

Indicates the last checkpoint that occurred during a change data capture * (CDC) operation. You can provide this value to the CdcStartPosition * parameter to start a CDC operation that begins at that checkpoint.

*/ inline ReplicationTask& WithRecoveryCheckpoint(const char* value) { SetRecoveryCheckpoint(value); return *this;} /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline const Aws::String& GetReplicationTaskArn() const{ return m_replicationTaskArn; } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline bool ReplicationTaskArnHasBeenSet() const { return m_replicationTaskArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline void SetReplicationTaskArn(const Aws::String& value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn = value; } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline void SetReplicationTaskArn(Aws::String&& value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline void SetReplicationTaskArn(const char* value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline ReplicationTask& WithReplicationTaskArn(const Aws::String& value) { SetReplicationTaskArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline ReplicationTask& WithReplicationTaskArn(Aws::String&& value) { SetReplicationTaskArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline ReplicationTask& WithReplicationTaskArn(const char* value) { SetReplicationTaskArn(value); return *this;} /** *

The statistics for the task, including elapsed time, tables loaded, and table * errors.

*/ inline const ReplicationTaskStats& GetReplicationTaskStats() const{ return m_replicationTaskStats; } /** *

The statistics for the task, including elapsed time, tables loaded, and table * errors.

*/ inline bool ReplicationTaskStatsHasBeenSet() const { return m_replicationTaskStatsHasBeenSet; } /** *

The statistics for the task, including elapsed time, tables loaded, and table * errors.

*/ inline void SetReplicationTaskStats(const ReplicationTaskStats& value) { m_replicationTaskStatsHasBeenSet = true; m_replicationTaskStats = value; } /** *

The statistics for the task, including elapsed time, tables loaded, and table * errors.

*/ inline void SetReplicationTaskStats(ReplicationTaskStats&& value) { m_replicationTaskStatsHasBeenSet = true; m_replicationTaskStats = std::move(value); } /** *

The statistics for the task, including elapsed time, tables loaded, and table * errors.

*/ inline ReplicationTask& WithReplicationTaskStats(const ReplicationTaskStats& value) { SetReplicationTaskStats(value); return *this;} /** *

The statistics for the task, including elapsed time, tables loaded, and table * errors.

*/ inline ReplicationTask& WithReplicationTaskStats(ReplicationTaskStats&& value) { SetReplicationTaskStats(std::move(value)); return *this;} /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline const Aws::String& GetTaskData() const{ return m_taskData; } /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline bool TaskDataHasBeenSet() const { return m_taskDataHasBeenSet; } /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline void SetTaskData(const Aws::String& value) { m_taskDataHasBeenSet = true; m_taskData = value; } /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline void SetTaskData(Aws::String&& value) { m_taskDataHasBeenSet = true; m_taskData = std::move(value); } /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline void SetTaskData(const char* value) { m_taskDataHasBeenSet = true; m_taskData.assign(value); } /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline ReplicationTask& WithTaskData(const Aws::String& value) { SetTaskData(value); return *this;} /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline ReplicationTask& WithTaskData(Aws::String&& value) { SetTaskData(std::move(value)); return *this;} /** *

Supplemental information that the task requires to migrate the data for * certain source and target endpoints. For more information, see Specifying * Supplemental Data for Task Settings in the Database Migration Service * User Guide.

*/ inline ReplicationTask& WithTaskData(const char* value) { SetTaskData(value); return *this;} /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline const Aws::String& GetTargetReplicationInstanceArn() const{ return m_targetReplicationInstanceArn; } /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline bool TargetReplicationInstanceArnHasBeenSet() const { return m_targetReplicationInstanceArnHasBeenSet; } /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline void SetTargetReplicationInstanceArn(const Aws::String& value) { m_targetReplicationInstanceArnHasBeenSet = true; m_targetReplicationInstanceArn = value; } /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline void SetTargetReplicationInstanceArn(Aws::String&& value) { m_targetReplicationInstanceArnHasBeenSet = true; m_targetReplicationInstanceArn = std::move(value); } /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline void SetTargetReplicationInstanceArn(const char* value) { m_targetReplicationInstanceArnHasBeenSet = true; m_targetReplicationInstanceArn.assign(value); } /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline ReplicationTask& WithTargetReplicationInstanceArn(const Aws::String& value) { SetTargetReplicationInstanceArn(value); return *this;} /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline ReplicationTask& WithTargetReplicationInstanceArn(Aws::String&& value) { SetTargetReplicationInstanceArn(std::move(value)); return *this;} /** *

The ARN of the replication instance to which this task is moved in response * to running the * MoveReplicationTask operation. Otherwise, this response * parameter isn't a member of the ReplicationTask object.

*/ inline ReplicationTask& WithTargetReplicationInstanceArn(const char* value) { SetTargetReplicationInstanceArn(value); return *this;} private: Aws::String m_replicationTaskIdentifier; bool m_replicationTaskIdentifierHasBeenSet = false; Aws::String m_sourceEndpointArn; bool m_sourceEndpointArnHasBeenSet = false; Aws::String m_targetEndpointArn; bool m_targetEndpointArnHasBeenSet = false; Aws::String m_replicationInstanceArn; bool m_replicationInstanceArnHasBeenSet = false; MigrationTypeValue m_migrationType; bool m_migrationTypeHasBeenSet = false; Aws::String m_tableMappings; bool m_tableMappingsHasBeenSet = false; Aws::String m_replicationTaskSettings; bool m_replicationTaskSettingsHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_lastFailureMessage; bool m_lastFailureMessageHasBeenSet = false; Aws::String m_stopReason; bool m_stopReasonHasBeenSet = false; Aws::Utils::DateTime m_replicationTaskCreationDate; bool m_replicationTaskCreationDateHasBeenSet = false; Aws::Utils::DateTime m_replicationTaskStartDate; bool m_replicationTaskStartDateHasBeenSet = false; Aws::String m_cdcStartPosition; bool m_cdcStartPositionHasBeenSet = false; Aws::String m_cdcStopPosition; bool m_cdcStopPositionHasBeenSet = false; Aws::String m_recoveryCheckpoint; bool m_recoveryCheckpointHasBeenSet = false; Aws::String m_replicationTaskArn; bool m_replicationTaskArnHasBeenSet = false; ReplicationTaskStats m_replicationTaskStats; bool m_replicationTaskStatsHasBeenSet = false; Aws::String m_taskData; bool m_taskDataHasBeenSet = false; Aws::String m_targetReplicationInstanceArn; bool m_targetReplicationInstanceArnHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws