Class AzureStorageContainer
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageContainer
Azure Storage Account workload-specific container.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.Get the protectedItemCount property: Number of items backed up in this container.Get the resourceGroup property: Resource group name of Recovery Services Vault.Get the sourceResourceId property: Fully qualified ARM url.Get the storageAccountVersion property: Storage account version.void
validate()
Validates the instance.withAcquireStorageAccountLock
(AcquireStorageAccountLock acquireStorageAccountLock) Set the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.withBackupManagementType
(BackupManagementType backupManagementType) Set the backupManagementType property: Type of backup management for the container.withFriendlyName
(String friendlyName) Set the friendlyName property: Friendly name of the container.withHealthStatus
(String healthStatus) Set the healthStatus property: Status of health of the container.withProtectableObjectType
(String protectableObjectType) Set the protectableObjectType property: Type of the protectable object associated with this container.withProtectedItemCount
(Long protectedItemCount) Set the protectedItemCount property: Number of items backed up in this container.withRegistrationStatus
(String registrationStatus) Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.withResourceGroup
(String resourceGroup) Set the resourceGroup property: Resource group name of Recovery Services Vault.withSourceResourceId
(String sourceResourceId) Set the sourceResourceId property: Fully qualified ARM url.withStorageAccountVersion
(String storageAccountVersion) Set the storageAccountVersion property: Storage account version.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
backupManagementType, friendlyName, healthStatus, protectableObjectType, registrationStatus
-
Constructor Details
-
AzureStorageContainer
public AzureStorageContainer()Creates an instance of AzureStorageContainer class.
-
-
Method Details
-
sourceResourceId
Get the sourceResourceId property: Fully qualified ARM url.- Returns:
- the sourceResourceId value.
-
withSourceResourceId
Set the sourceResourceId property: Fully qualified ARM url.- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the AzureStorageContainer object itself.
-
storageAccountVersion
Get the storageAccountVersion property: Storage account version.- Returns:
- the storageAccountVersion value.
-
withStorageAccountVersion
Set the storageAccountVersion property: Storage account version.- Parameters:
storageAccountVersion
- the storageAccountVersion value to set.- Returns:
- the AzureStorageContainer object itself.
-
resourceGroup
Get the resourceGroup property: Resource group name of Recovery Services Vault.- Returns:
- the resourceGroup value.
-
withResourceGroup
Set the resourceGroup property: Resource group name of Recovery Services Vault.- Parameters:
resourceGroup
- the resourceGroup value to set.- Returns:
- the AzureStorageContainer object itself.
-
protectedItemCount
Get the protectedItemCount property: Number of items backed up in this container.- Returns:
- the protectedItemCount value.
-
withProtectedItemCount
Set the protectedItemCount property: Number of items backed up in this container.- Parameters:
protectedItemCount
- the protectedItemCount value to set.- Returns:
- the AzureStorageContainer object itself.
-
acquireStorageAccountLock
Get the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.- Returns:
- the acquireStorageAccountLock value.
-
withAcquireStorageAccountLock
public AzureStorageContainer withAcquireStorageAccountLock(AcquireStorageAccountLock acquireStorageAccountLock) Set the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.- Parameters:
acquireStorageAccountLock
- the acquireStorageAccountLock value to set.- Returns:
- the AzureStorageContainer object itself.
-
withFriendlyName
Set the friendlyName property: Friendly name of the container.- Overrides:
withFriendlyName
in classProtectionContainer
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the ProtectionContainer object itself.
-
withBackupManagementType
Set the backupManagementType property: Type of backup management for the container.- Overrides:
withBackupManagementType
in classProtectionContainer
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectionContainer object itself.
-
withRegistrationStatus
Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.- Overrides:
withRegistrationStatus
in classProtectionContainer
- Parameters:
registrationStatus
- the registrationStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
withHealthStatus
Set the healthStatus property: Status of health of the container.- Overrides:
withHealthStatus
in classProtectionContainer
- Parameters:
healthStatus
- the healthStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
withProtectableObjectType
Set the protectableObjectType property: Type of the protectable object associated with this container.- Overrides:
withProtectableObjectType
in classProtectionContainer
- Parameters:
protectableObjectType
- the protectableObjectType value to set.- Returns:
- the ProtectionContainer object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classProtectionContainer
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-