Class MigrationSubstateDetails
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationSubstateDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrationSubstateDetails>
public final class MigrationSubstateDetails
extends Object
implements com.azure.json.JsonSerializable<MigrationSubstateDetails>
Details of migration substate.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrationSubstateDetails class. -
Method Summary
Modifier and TypeMethodDescriptionGet the currentSubState property: Substate of migration.Get the dbDetails property: Dictionary of <DatabaseMigrationState>.static MigrationSubstateDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MigrationSubstateDetails from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the validationDetails property: Details for the validation for migration.withDbDetails(Map<String, DatabaseMigrationState> dbDetails) Set the dbDetails property: Dictionary of <DatabaseMigrationState>.withValidationDetails(ValidationDetails validationDetails) Set the validationDetails property: Details for the validation for migration.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
-
MigrationSubstateDetails
public MigrationSubstateDetails()Creates an instance of MigrationSubstateDetails class.
-
-
Method Details
-
currentSubState
Get the currentSubState property: Substate of migration.- Returns:
- the currentSubState value.
-
dbDetails
Get the dbDetails property: Dictionary of <DatabaseMigrationState>.- Returns:
- the dbDetails value.
-
withDbDetails
Set the dbDetails property: Dictionary of <DatabaseMigrationState>.- Parameters:
dbDetails- the dbDetails value to set.- Returns:
- the MigrationSubstateDetails object itself.
-
validationDetails
Get the validationDetails property: Details for the validation for migration.- Returns:
- the validationDetails value.
-
withValidationDetails
Set the validationDetails property: Details for the validation for migration.- Parameters:
validationDetails- the validationDetails value to set.- Returns:
- the MigrationSubstateDetails 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<MigrationSubstateDetails>- Throws:
IOException
-
fromJson
public static MigrationSubstateDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MigrationSubstateDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MigrationSubstateDetails 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 MigrationSubstateDetails.
-