Class BackupPolicyMigrationState
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.BackupPolicyMigrationState
-
public final class BackupPolicyMigrationState extends Object
The object representing the state of the migration between the backup policies.
-
-
Constructor Summary
Constructors Constructor Description BackupPolicyMigrationState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimestartTime()Get the startTime property: Time at which the backup policy migration started (ISO-8601 format).BackupPolicyMigrationStatusstatus()Get the status property: Describes the status of migration between backup policy types.BackupPolicyTypetargetType()Get the targetType property: Describes the target backup policy type of the backup policy migration.voidvalidate()Validates the instance.BackupPolicyMigrationStatewithStartTime(OffsetDateTime startTime)Set the startTime property: Time at which the backup policy migration started (ISO-8601 format).BackupPolicyMigrationStatewithStatus(BackupPolicyMigrationStatus status)Set the status property: Describes the status of migration between backup policy types.BackupPolicyMigrationStatewithTargetType(BackupPolicyType targetType)Set the targetType property: Describes the target backup policy type of the backup policy migration.
-
-
-
Method Detail
-
status
public BackupPolicyMigrationStatus status()
Get the status property: Describes the status of migration between backup policy types.- Returns:
- the status value.
-
withStatus
public BackupPolicyMigrationState withStatus(BackupPolicyMigrationStatus status)
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
public BackupPolicyType targetType()
Get the targetType property: Describes the target backup policy type of the backup policy migration.- Returns:
- the targetType value.
-
withTargetType
public BackupPolicyMigrationState withTargetType(BackupPolicyType targetType)
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
public OffsetDateTime startTime()
Get the startTime property: Time at which the backup policy migration started (ISO-8601 format).- Returns:
- the startTime value.
-
withStartTime
public BackupPolicyMigrationState withStartTime(OffsetDateTime startTime)
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.
-
-