Class BackupPolicyMigrationState
java.lang.Object
com.azure.resourcemanager.cosmos.models.BackupPolicyMigrationState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackupPolicyMigrationState>
public final class BackupPolicyMigrationState
extends Object
implements com.azure.json.JsonSerializable<BackupPolicyMigrationState>
The object representing the state of the migration between the backup policies.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BackupPolicyMigrationState class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BackupPolicyMigrationState
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BackupPolicyMigrationState from the JsonReader.Get the startTime property: Time at which the backup policy migration started (ISO-8601 format).status()
Get the status property: Describes the status of migration between backup policy types.Get the targetType property: Describes the target backup policy type of the backup policy migration.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withStartTime
(OffsetDateTime startTime) Set the startTime property: Time at which the backup policy migration started (ISO-8601 format).Set the status property: Describes the status of migration between backup policy types.withTargetType
(BackupPolicyType targetType) Set the targetType property: Describes the target backup policy type of the backup policy migration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BackupPolicyMigrationState
public BackupPolicyMigrationState()Creates an instance of BackupPolicyMigrationState class.
-
-
Method Details
-
status
Get the status property: Describes the status of migration between backup policy types.- Returns:
- the status value.
-
withStatus
Set the status property: Describes the status of migration between backup policy types.- Parameters:
status
- the status value to set.- Returns:
- the BackupPolicyMigrationState object itself.
-
targetType
Get the targetType property: Describes the target backup policy type of the backup policy migration.- Returns:
- the targetType value.
-
withTargetType
Set the targetType property: Describes the target backup policy type of the backup policy migration.- Parameters:
targetType
- the targetType value to set.- Returns:
- the BackupPolicyMigrationState object itself.
-
startTime
Get the startTime property: Time at which the backup policy migration started (ISO-8601 format).- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Time at which the backup policy migration started (ISO-8601 format).- Parameters:
startTime
- the startTime value to set.- Returns:
- the BackupPolicyMigrationState object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BackupPolicyMigrationState>
- Throws:
IOException
-
fromJson
public static BackupPolicyMigrationState fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackupPolicyMigrationState from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BackupPolicyMigrationState 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 BackupPolicyMigrationState.
-