Class AzureStorageContainer
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageContainer
-
public final class AzureStorageContainer extends ProtectionContainer
Azure Storage Account workload-specific container.
-
-
Constructor Summary
Constructors Constructor Description AzureStorageContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcquireStorageAccountLock
acquireStorageAccountLock()
Get the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.Long
protectedItemCount()
Get the protectedItemCount property: Number of items backed up in this container.String
resourceGroup()
Get the resourceGroup property: Resource group name of Recovery Services Vault.String
sourceResourceId()
Get the sourceResourceId property: Fully qualified ARM url.String
storageAccountVersion()
Get the storageAccountVersion property: Storage account version.void
validate()
Validates the instance.AzureStorageContainer
withAcquireStorageAccountLock(AcquireStorageAccountLock acquireStorageAccountLock)
Set the acquireStorageAccountLock property: Whether storage account lock is to be acquired for this container or not.AzureStorageContainer
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the container.AzureStorageContainer
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the container.AzureStorageContainer
withHealthStatus(String healthStatus)
Set the healthStatus property: Status of health of the container.AzureStorageContainer
withProtectableObjectType(String protectableObjectType)
Set the protectableObjectType property: Type of the protectable object associated with this container.AzureStorageContainer
withProtectedItemCount(Long protectedItemCount)
Set the protectedItemCount property: Number of items backed up in this container.AzureStorageContainer
withRegistrationStatus(String registrationStatus)
Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.AzureStorageContainer
withResourceGroup(String resourceGroup)
Set the resourceGroup property: Resource group name of Recovery Services Vault.AzureStorageContainer
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: Fully qualified ARM url.AzureStorageContainer
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
-
-
-
-
Method Detail
-
sourceResourceId
public String sourceResourceId()
Get the sourceResourceId property: Fully qualified ARM url.- Returns:
- the sourceResourceId value.
-
withSourceResourceId
public AzureStorageContainer withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: Fully qualified ARM url.- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the AzureStorageContainer object itself.
-
storageAccountVersion
public String storageAccountVersion()
Get the storageAccountVersion property: Storage account version.- Returns:
- the storageAccountVersion value.
-
withStorageAccountVersion
public AzureStorageContainer withStorageAccountVersion(String storageAccountVersion)
Set the storageAccountVersion property: Storage account version.- Parameters:
storageAccountVersion
- the storageAccountVersion value to set.- Returns:
- the AzureStorageContainer object itself.
-
resourceGroup
public String resourceGroup()
Get the resourceGroup property: Resource group name of Recovery Services Vault.- Returns:
- the resourceGroup value.
-
withResourceGroup
public AzureStorageContainer withResourceGroup(String resourceGroup)
Set the resourceGroup property: Resource group name of Recovery Services Vault.- Parameters:
resourceGroup
- the resourceGroup value to set.- Returns:
- the AzureStorageContainer object itself.
-
protectedItemCount
public Long protectedItemCount()
Get the protectedItemCount property: Number of items backed up in this container.- Returns:
- the protectedItemCount value.
-
withProtectedItemCount
public AzureStorageContainer withProtectedItemCount(Long protectedItemCount)
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
public AcquireStorageAccountLock 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
public AzureStorageContainer withFriendlyName(String friendlyName)
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
public AzureStorageContainer withBackupManagementType(BackupManagementType backupManagementType)
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
public AzureStorageContainer withRegistrationStatus(String registrationStatus)
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
public AzureStorageContainer withHealthStatus(String healthStatus)
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
public AzureStorageContainer withProtectableObjectType(String protectableObjectType)
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.
-
-