Class AutoStorageProperties

java.lang.Object
com.azure.resourcemanager.batch.models.AutoStorageBaseProperties
com.azure.resourcemanager.batch.models.AutoStorageProperties

public final class AutoStorageProperties extends AutoStorageBaseProperties
Contains information about the auto-storage account associated with a Batch account.
  • Constructor Details

    • AutoStorageProperties

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

    • lastKeySync

      public OffsetDateTime lastKeySync()
      Get the lastKeySync property: The UTC time at which storage keys were last synchronized with the Batch account.
      Returns:
      the lastKeySync value.
    • withLastKeySync

      public AutoStorageProperties withLastKeySync(OffsetDateTime lastKeySync)
      Set the lastKeySync property: The UTC time at which storage keys were last synchronized with the Batch account.
      Parameters:
      lastKeySync - the lastKeySync value to set.
      Returns:
      the AutoStorageProperties object itself.
    • withStorageAccountId

      public AutoStorageProperties withStorageAccountId(String storageAccountId)
      Set the storageAccountId property: The resource ID of the storage account to be used for auto-storage account.
      Overrides:
      withStorageAccountId in class AutoStorageBaseProperties
      Parameters:
      storageAccountId - the storageAccountId value to set.
      Returns:
      the AutoStorageBaseProperties object itself.
    • withAuthenticationMode

      public AutoStorageProperties withAuthenticationMode(AutoStorageAuthenticationMode authenticationMode)
      Set the authenticationMode property: The authentication mode which the Batch service will use to manage the auto-storage account.
      Overrides:
      withAuthenticationMode in class AutoStorageBaseProperties
      Parameters:
      authenticationMode - the authenticationMode value to set.
      Returns:
      the AutoStorageBaseProperties object itself.
    • withNodeIdentityReference

      public AutoStorageProperties withNodeIdentityReference(ComputeNodeIdentityReference nodeIdentityReference)
      Set the nodeIdentityReference property: The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.
      Overrides:
      withNodeIdentityReference in class AutoStorageBaseProperties
      Parameters:
      nodeIdentityReference - the nodeIdentityReference value to set.
      Returns:
      the AutoStorageBaseProperties object itself.
    • validate

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