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 Details

    • AzureStorageContainer

      public AzureStorageContainer()
      Creates an instance of AzureStorageContainer class.
  • Method Details

    • 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 class ProtectionContainer
      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 class ProtectionContainer
      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 class ProtectionContainer
      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 class ProtectionContainer
      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 class ProtectionContainer
      Parameters:
      protectableObjectType - the protectableObjectType value to set.
      Returns:
      the ProtectionContainer object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ProtectionContainer
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.