Class BackupResourceConfig
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceConfig
-
public final class BackupResourceConfig extends Object
The resource storage details.
-
-
Constructor Summary
Constructors Constructor Description BackupResourceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
crossRegionRestoreFlag()
Get the crossRegionRestoreFlag property: Opt in details of Cross Region Restore feature.DedupState
dedupState()
Get the dedupState property: Vault Dedup state.StorageType
storageModelType()
Get the storageModelType property: Storage type.StorageType
storageType()
Get the storageType property: Storage type.StorageTypeState
storageTypeState()
Get the storageTypeState property: Locked or Unlocked.void
validate()
Validates the instance.BackupResourceConfig
withCrossRegionRestoreFlag(Boolean crossRegionRestoreFlag)
Set the crossRegionRestoreFlag property: Opt in details of Cross Region Restore feature.BackupResourceConfig
withDedupState(DedupState dedupState)
Set the dedupState property: Vault Dedup state.BackupResourceConfig
withStorageModelType(StorageType storageModelType)
Set the storageModelType property: Storage type.BackupResourceConfig
withStorageType(StorageType storageType)
Set the storageType property: Storage type.BackupResourceConfig
withStorageTypeState(StorageTypeState storageTypeState)
Set the storageTypeState property: Locked or Unlocked.BackupResourceConfig
withXcoolState(XcoolState xcoolState)
Set the xcoolState property: Vault x-cool state.XcoolState
xcoolState()
Get the xcoolState property: Vault x-cool state.
-
-
-
Method Detail
-
storageModelType
public StorageType storageModelType()
Get the storageModelType property: Storage type.- Returns:
- the storageModelType value.
-
withStorageModelType
public BackupResourceConfig withStorageModelType(StorageType storageModelType)
Set the storageModelType property: Storage type.- Parameters:
storageModelType
- the storageModelType value to set.- Returns:
- the BackupResourceConfig object itself.
-
storageType
public StorageType storageType()
Get the storageType property: Storage type.- Returns:
- the storageType value.
-
withStorageType
public BackupResourceConfig withStorageType(StorageType storageType)
Set the storageType property: Storage type.- Parameters:
storageType
- the storageType value to set.- Returns:
- the BackupResourceConfig object itself.
-
storageTypeState
public StorageTypeState storageTypeState()
Get the storageTypeState property: Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.- Returns:
- the storageTypeState value.
-
withStorageTypeState
public BackupResourceConfig withStorageTypeState(StorageTypeState storageTypeState)
Set the storageTypeState property: Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.- Parameters:
storageTypeState
- the storageTypeState value to set.- Returns:
- the BackupResourceConfig object itself.
-
crossRegionRestoreFlag
public Boolean crossRegionRestoreFlag()
Get the crossRegionRestoreFlag property: Opt in details of Cross Region Restore feature.- Returns:
- the crossRegionRestoreFlag value.
-
withCrossRegionRestoreFlag
public BackupResourceConfig withCrossRegionRestoreFlag(Boolean crossRegionRestoreFlag)
Set the crossRegionRestoreFlag property: Opt in details of Cross Region Restore feature.- Parameters:
crossRegionRestoreFlag
- the crossRegionRestoreFlag value to set.- Returns:
- the BackupResourceConfig object itself.
-
dedupState
public DedupState dedupState()
Get the dedupState property: Vault Dedup state.- Returns:
- the dedupState value.
-
withDedupState
public BackupResourceConfig withDedupState(DedupState dedupState)
Set the dedupState property: Vault Dedup state.- Parameters:
dedupState
- the dedupState value to set.- Returns:
- the BackupResourceConfig object itself.
-
xcoolState
public XcoolState xcoolState()
Get the xcoolState property: Vault x-cool state.- Returns:
- the xcoolState value.
-
withXcoolState
public BackupResourceConfig withXcoolState(XcoolState xcoolState)
Set the xcoolState property: Vault x-cool state.- Parameters:
xcoolState
- the xcoolState value to set.- Returns:
- the BackupResourceConfig object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-