Class StorageAccount

java.lang.Object
com.azure.resourcemanager.mediaservices.models.StorageAccount

public final class StorageAccount extends Object
The storage account details.
  • Constructor Details

    • StorageAccount

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

    • id

      public String id()
      Get the id property: The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts.
      Returns:
      the id value.
    • withId

      public StorageAccount withId(String id)
      Set the id property: The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts.
      Parameters:
      id - the id value to set.
      Returns:
      the StorageAccount object itself.
    • type

      public StorageAccountType type()
      Get the type property: The type of the storage account.
      Returns:
      the type value.
    • withType

      public StorageAccount withType(StorageAccountType type)
      Set the type property: The type of the storage account.
      Parameters:
      type - the type value to set.
      Returns:
      the StorageAccount object itself.
    • identity

      public ResourceIdentity identity()
      Get the identity property: The storage account identity.
      Returns:
      the identity value.
    • withIdentity

      public StorageAccount withIdentity(ResourceIdentity identity)
      Set the identity property: The storage account identity.
      Parameters:
      identity - the identity value to set.
      Returns:
      the StorageAccount object itself.
    • status

      public String status()
      Get the status property: The current status of the storage account mapping.
      Returns:
      the status value.
    • validate

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