Class PeriodicModeProperties
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.PeriodicModeProperties
-
public final class PeriodicModeProperties extends Object
Configuration values for periodic mode backup.
-
-
Constructor Summary
Constructors Constructor Description PeriodicModeProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerbackupIntervalInMinutes()Get the backupIntervalInMinutes property: An integer representing the interval in minutes between two backups.IntegerbackupRetentionIntervalInHours()Get the backupRetentionIntervalInHours property: An integer representing the time (in hours) that each backup is retained.BackupStorageRedundancybackupStorageRedundancy()Get the backupStorageRedundancy property: Enum to indicate type of backup residency.voidvalidate()Validates the instance.PeriodicModePropertieswithBackupIntervalInMinutes(Integer backupIntervalInMinutes)Set the backupIntervalInMinutes property: An integer representing the interval in minutes between two backups.PeriodicModePropertieswithBackupRetentionIntervalInHours(Integer backupRetentionIntervalInHours)Set the backupRetentionIntervalInHours property: An integer representing the time (in hours) that each backup is retained.PeriodicModePropertieswithBackupStorageRedundancy(BackupStorageRedundancy backupStorageRedundancy)Set the backupStorageRedundancy property: Enum to indicate type of backup residency.
-
-
-
Method Detail
-
backupIntervalInMinutes
public Integer backupIntervalInMinutes()
Get the backupIntervalInMinutes property: An integer representing the interval in minutes between two backups.- Returns:
- the backupIntervalInMinutes value.
-
withBackupIntervalInMinutes
public PeriodicModeProperties withBackupIntervalInMinutes(Integer backupIntervalInMinutes)
Set the backupIntervalInMinutes property: An integer representing the interval in minutes between two backups.- Parameters:
backupIntervalInMinutes- the backupIntervalInMinutes value to set.- Returns:
- the PeriodicModeProperties object itself.
-
backupRetentionIntervalInHours
public Integer backupRetentionIntervalInHours()
Get the backupRetentionIntervalInHours property: An integer representing the time (in hours) that each backup is retained.- Returns:
- the backupRetentionIntervalInHours value.
-
withBackupRetentionIntervalInHours
public PeriodicModeProperties withBackupRetentionIntervalInHours(Integer backupRetentionIntervalInHours)
Set the backupRetentionIntervalInHours property: An integer representing the time (in hours) that each backup is retained.- Parameters:
backupRetentionIntervalInHours- the backupRetentionIntervalInHours value to set.- Returns:
- the PeriodicModeProperties object itself.
-
backupStorageRedundancy
public BackupStorageRedundancy backupStorageRedundancy()
Get the backupStorageRedundancy property: Enum to indicate type of backup residency.- Returns:
- the backupStorageRedundancy value.
-
withBackupStorageRedundancy
public PeriodicModeProperties withBackupStorageRedundancy(BackupStorageRedundancy backupStorageRedundancy)
Set the backupStorageRedundancy property: Enum to indicate type of backup residency.- Parameters:
backupStorageRedundancy- the backupStorageRedundancy value to set.- Returns:
- the PeriodicModeProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-