Class BackupPolicy
java.lang.Object
com.azure.resourcemanager.cosmos.models.BackupPolicy
- Direct Known Subclasses:
ContinuousModeBackupPolicy,PeriodicModeBackupPolicy
The object representing the policy for taking backups on an account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the migrationState property: The object representing the state of the migration between the backup policies.voidvalidate()Validates the instance.withMigrationState(BackupPolicyMigrationState migrationState) Set the migrationState property: The object representing the state of the migration between the backup policies.
-
Constructor Details
-
BackupPolicy
public BackupPolicy()Creates an instance of BackupPolicy class.
-
-
Method Details
-
migrationState
Get the migrationState property: The object representing the state of the migration between the backup policies.- Returns:
- the migrationState value.
-
withMigrationState
Set the migrationState property: The object representing the state of the migration between the backup policies.- Parameters:
migrationState- the migrationState value to set.- Returns:
- the BackupPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-