Class DatabaseMigrationState
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.DatabaseMigrationState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DatabaseMigrationState>
public final class DatabaseMigrationState
extends Object
implements com.azure.json.JsonSerializable<DatabaseMigrationState>
Migration state of a database.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DatabaseMigrationState class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appliedChanges property: Change Data Capture applied changes counter.Get the cdcDeleteCounter property: Change Data Capture delete counter.Get the cdcInsertCounter property: Change Data Capture insert counter.Get the cdcUpdateCounter property: Change Data Capture update counter.Get the databaseName property: Name of database.endedOn()Get the endedOn property: End time of a migration state.static DatabaseMigrationStatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseMigrationState from the JsonReader.Get the fullLoadCompletedTables property: Number of tables loaded during the migration of a database.Get the fullLoadErroredTables property: Number of tables encountering errors during the migration of a database.Get the fullLoadLoadingTables property: Number of tables loading during the migration of a database.Get the fullLoadQueuedTables property: Number of tables queued for the migration of a database.Get the incomingChanges property: Change Data Capture incoming changes counter.latency()Get the latency property: Lag in seconds between source and target during online phase.message()Get the message property: Error message, if any, for the migration state.Get the migrationOperation property: Migration operation of a database.Get the migrationState property: Migration state of a database.Get the startedOn property: Start time of a migration state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAppliedChanges(Integer appliedChanges) Set the appliedChanges property: Change Data Capture applied changes counter.withCdcDeleteCounter(Integer cdcDeleteCounter) Set the cdcDeleteCounter property: Change Data Capture delete counter.withCdcInsertCounter(Integer cdcInsertCounter) Set the cdcInsertCounter property: Change Data Capture insert counter.withCdcUpdateCounter(Integer cdcUpdateCounter) Set the cdcUpdateCounter property: Change Data Capture update counter.withDatabaseName(String databaseName) Set the databaseName property: Name of database.withEndedOn(OffsetDateTime endedOn) Set the endedOn property: End time of a migration state.withFullLoadCompletedTables(Integer fullLoadCompletedTables) Set the fullLoadCompletedTables property: Number of tables loaded during the migration of a database.withFullLoadErroredTables(Integer fullLoadErroredTables) Set the fullLoadErroredTables property: Number of tables encountering errors during the migration of a database.withFullLoadLoadingTables(Integer fullLoadLoadingTables) Set the fullLoadLoadingTables property: Number of tables loading during the migration of a database.withFullLoadQueuedTables(Integer fullLoadQueuedTables) Set the fullLoadQueuedTables property: Number of tables queued for the migration of a database.withIncomingChanges(Integer incomingChanges) Set the incomingChanges property: Change Data Capture incoming changes counter.withLatency(Integer latency) Set the latency property: Lag in seconds between source and target during online phase.withMessage(String message) Set the message property: Error message, if any, for the migration state.withMigrationOperation(String migrationOperation) Set the migrationOperation property: Migration operation of a database.withMigrationState(MigrationDatabaseState migrationState) Set the migrationState property: Migration state of a database.withStartedOn(OffsetDateTime startedOn) Set the startedOn property: Start time of a migration state.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DatabaseMigrationState
public DatabaseMigrationState()Creates an instance of DatabaseMigrationState class.
-
-
Method Details
-
databaseName
Get the databaseName property: Name of database.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: Name of database.- Parameters:
databaseName- the databaseName value to set.- Returns:
- the DatabaseMigrationState object itself.
-
migrationState
Get the migrationState property: Migration state of a database.- Returns:
- the migrationState value.
-
withMigrationState
Set the migrationState property: Migration state of a database.- Parameters:
migrationState- the migrationState value to set.- Returns:
- the DatabaseMigrationState object itself.
-
migrationOperation
Get the migrationOperation property: Migration operation of a database.- Returns:
- the migrationOperation value.
-
withMigrationOperation
Set the migrationOperation property: Migration operation of a database.- Parameters:
migrationOperation- the migrationOperation value to set.- Returns:
- the DatabaseMigrationState object itself.
-
startedOn
Get the startedOn property: Start time of a migration state.- Returns:
- the startedOn value.
-
withStartedOn
Set the startedOn property: Start time of a migration state.- Parameters:
startedOn- the startedOn value to set.- Returns:
- the DatabaseMigrationState object itself.
-
endedOn
Get the endedOn property: End time of a migration state.- Returns:
- the endedOn value.
-
withEndedOn
Set the endedOn property: End time of a migration state.- Parameters:
endedOn- the endedOn value to set.- Returns:
- the DatabaseMigrationState object itself.
-
fullLoadQueuedTables
Get the fullLoadQueuedTables property: Number of tables queued for the migration of a database.- Returns:
- the fullLoadQueuedTables value.
-
withFullLoadQueuedTables
Set the fullLoadQueuedTables property: Number of tables queued for the migration of a database.- Parameters:
fullLoadQueuedTables- the fullLoadQueuedTables value to set.- Returns:
- the DatabaseMigrationState object itself.
-
fullLoadErroredTables
Get the fullLoadErroredTables property: Number of tables encountering errors during the migration of a database.- Returns:
- the fullLoadErroredTables value.
-
withFullLoadErroredTables
Set the fullLoadErroredTables property: Number of tables encountering errors during the migration of a database.- Parameters:
fullLoadErroredTables- the fullLoadErroredTables value to set.- Returns:
- the DatabaseMigrationState object itself.
-
fullLoadLoadingTables
Get the fullLoadLoadingTables property: Number of tables loading during the migration of a database.- Returns:
- the fullLoadLoadingTables value.
-
withFullLoadLoadingTables
Set the fullLoadLoadingTables property: Number of tables loading during the migration of a database.- Parameters:
fullLoadLoadingTables- the fullLoadLoadingTables value to set.- Returns:
- the DatabaseMigrationState object itself.
-
fullLoadCompletedTables
Get the fullLoadCompletedTables property: Number of tables loaded during the migration of a database.- Returns:
- the fullLoadCompletedTables value.
-
withFullLoadCompletedTables
Set the fullLoadCompletedTables property: Number of tables loaded during the migration of a database.- Parameters:
fullLoadCompletedTables- the fullLoadCompletedTables value to set.- Returns:
- the DatabaseMigrationState object itself.
-
cdcUpdateCounter
Get the cdcUpdateCounter property: Change Data Capture update counter.- Returns:
- the cdcUpdateCounter value.
-
withCdcUpdateCounter
Set the cdcUpdateCounter property: Change Data Capture update counter.- Parameters:
cdcUpdateCounter- the cdcUpdateCounter value to set.- Returns:
- the DatabaseMigrationState object itself.
-
cdcDeleteCounter
Get the cdcDeleteCounter property: Change Data Capture delete counter.- Returns:
- the cdcDeleteCounter value.
-
withCdcDeleteCounter
Set the cdcDeleteCounter property: Change Data Capture delete counter.- Parameters:
cdcDeleteCounter- the cdcDeleteCounter value to set.- Returns:
- the DatabaseMigrationState object itself.
-
cdcInsertCounter
Get the cdcInsertCounter property: Change Data Capture insert counter.- Returns:
- the cdcInsertCounter value.
-
withCdcInsertCounter
Set the cdcInsertCounter property: Change Data Capture insert counter.- Parameters:
cdcInsertCounter- the cdcInsertCounter value to set.- Returns:
- the DatabaseMigrationState object itself.
-
appliedChanges
Get the appliedChanges property: Change Data Capture applied changes counter.- Returns:
- the appliedChanges value.
-
withAppliedChanges
Set the appliedChanges property: Change Data Capture applied changes counter.- Parameters:
appliedChanges- the appliedChanges value to set.- Returns:
- the DatabaseMigrationState object itself.
-
incomingChanges
Get the incomingChanges property: Change Data Capture incoming changes counter.- Returns:
- the incomingChanges value.
-
withIncomingChanges
Set the incomingChanges property: Change Data Capture incoming changes counter.- Parameters:
incomingChanges- the incomingChanges value to set.- Returns:
- the DatabaseMigrationState object itself.
-
latency
Get the latency property: Lag in seconds between source and target during online phase.- Returns:
- the latency value.
-
withLatency
Set the latency property: Lag in seconds between source and target during online phase.- Parameters:
latency- the latency value to set.- Returns:
- the DatabaseMigrationState object itself.
-
message
Get the message property: Error message, if any, for the migration state.- Returns:
- the message value.
-
withMessage
Set the message property: Error message, if any, for the migration state.- Parameters:
message- the message value to set.- Returns:
- the DatabaseMigrationState object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DatabaseMigrationState>- Throws:
IOException
-
fromJson
public static DatabaseMigrationState fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DatabaseMigrationState from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DatabaseMigrationState if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DatabaseMigrationState.
-