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 Details

    • DatabaseMigrationState

      public DatabaseMigrationState()
      Creates an instance of DatabaseMigrationState class.
  • Method Details

    • databaseName

      public String databaseName()
      Get the databaseName property: Name of database.
      Returns:
      the databaseName value.
    • withDatabaseName

      public DatabaseMigrationState withDatabaseName(String databaseName)
      Set the databaseName property: Name of database.
      Parameters:
      databaseName - the databaseName value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • migrationState

      public MigrationDatabaseState migrationState()
      Get the migrationState property: Migration state of a database.
      Returns:
      the migrationState value.
    • withMigrationState

      public DatabaseMigrationState withMigrationState(MigrationDatabaseState migrationState)
      Set the migrationState property: Migration state of a database.
      Parameters:
      migrationState - the migrationState value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • migrationOperation

      public String migrationOperation()
      Get the migrationOperation property: Migration operation of a database.
      Returns:
      the migrationOperation value.
    • withMigrationOperation

      public DatabaseMigrationState withMigrationOperation(String migrationOperation)
      Set the migrationOperation property: Migration operation of a database.
      Parameters:
      migrationOperation - the migrationOperation value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • startedOn

      public OffsetDateTime startedOn()
      Get the startedOn property: Start time of a migration state.
      Returns:
      the startedOn value.
    • withStartedOn

      public DatabaseMigrationState withStartedOn(OffsetDateTime startedOn)
      Set the startedOn property: Start time of a migration state.
      Parameters:
      startedOn - the startedOn value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • endedOn

      public OffsetDateTime endedOn()
      Get the endedOn property: End time of a migration state.
      Returns:
      the endedOn value.
    • withEndedOn

      public DatabaseMigrationState withEndedOn(OffsetDateTime endedOn)
      Set the endedOn property: End time of a migration state.
      Parameters:
      endedOn - the endedOn value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • fullLoadQueuedTables

      public Integer fullLoadQueuedTables()
      Get the fullLoadQueuedTables property: Number of tables queued for the migration of a database.
      Returns:
      the fullLoadQueuedTables value.
    • withFullLoadQueuedTables

      public DatabaseMigrationState withFullLoadQueuedTables(Integer fullLoadQueuedTables)
      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

      public Integer fullLoadErroredTables()
      Get the fullLoadErroredTables property: Number of tables encountering errors during the migration of a database.
      Returns:
      the fullLoadErroredTables value.
    • withFullLoadErroredTables

      public DatabaseMigrationState withFullLoadErroredTables(Integer fullLoadErroredTables)
      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

      public Integer fullLoadLoadingTables()
      Get the fullLoadLoadingTables property: Number of tables loading during the migration of a database.
      Returns:
      the fullLoadLoadingTables value.
    • withFullLoadLoadingTables

      public DatabaseMigrationState withFullLoadLoadingTables(Integer fullLoadLoadingTables)
      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

      public Integer fullLoadCompletedTables()
      Get the fullLoadCompletedTables property: Number of tables loaded during the migration of a database.
      Returns:
      the fullLoadCompletedTables value.
    • withFullLoadCompletedTables

      public DatabaseMigrationState withFullLoadCompletedTables(Integer fullLoadCompletedTables)
      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

      public Integer cdcUpdateCounter()
      Get the cdcUpdateCounter property: Change Data Capture update counter.
      Returns:
      the cdcUpdateCounter value.
    • withCdcUpdateCounter

      public DatabaseMigrationState withCdcUpdateCounter(Integer cdcUpdateCounter)
      Set the cdcUpdateCounter property: Change Data Capture update counter.
      Parameters:
      cdcUpdateCounter - the cdcUpdateCounter value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • cdcDeleteCounter

      public Integer cdcDeleteCounter()
      Get the cdcDeleteCounter property: Change Data Capture delete counter.
      Returns:
      the cdcDeleteCounter value.
    • withCdcDeleteCounter

      public DatabaseMigrationState withCdcDeleteCounter(Integer cdcDeleteCounter)
      Set the cdcDeleteCounter property: Change Data Capture delete counter.
      Parameters:
      cdcDeleteCounter - the cdcDeleteCounter value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • cdcInsertCounter

      public Integer cdcInsertCounter()
      Get the cdcInsertCounter property: Change Data Capture insert counter.
      Returns:
      the cdcInsertCounter value.
    • withCdcInsertCounter

      public DatabaseMigrationState withCdcInsertCounter(Integer cdcInsertCounter)
      Set the cdcInsertCounter property: Change Data Capture insert counter.
      Parameters:
      cdcInsertCounter - the cdcInsertCounter value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • appliedChanges

      public Integer appliedChanges()
      Get the appliedChanges property: Change Data Capture applied changes counter.
      Returns:
      the appliedChanges value.
    • withAppliedChanges

      public DatabaseMigrationState withAppliedChanges(Integer appliedChanges)
      Set the appliedChanges property: Change Data Capture applied changes counter.
      Parameters:
      appliedChanges - the appliedChanges value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • incomingChanges

      public Integer incomingChanges()
      Get the incomingChanges property: Change Data Capture incoming changes counter.
      Returns:
      the incomingChanges value.
    • withIncomingChanges

      public DatabaseMigrationState withIncomingChanges(Integer incomingChanges)
      Set the incomingChanges property: Change Data Capture incoming changes counter.
      Parameters:
      incomingChanges - the incomingChanges value to set.
      Returns:
      the DatabaseMigrationState object itself.
    • latency

      public Integer latency()
      Get the latency property: Lag in seconds between source and target during online phase.
      Returns:
      the latency value.
    • withLatency

      public DatabaseMigrationState withLatency(Integer latency)
      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

      public String message()
      Get the message property: Error message, if any, for the migration state.
      Returns:
      the message value.
    • withMessage

      public DatabaseMigrationState withMessage(String message)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.