Class AccountSasParameters

java.lang.Object
com.microsoft.azure.management.storage.AccountSasParameters

public class AccountSasParameters extends Object
The parameters to list SAS credentials of a storage account.
  • Constructor Details

    • AccountSasParameters

      public AccountSasParameters()
  • Method Details

    • services

      public Services services()
      Get the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'.
      Returns:
      the services value
    • withServices

      public AccountSasParameters withServices(Services services)
      Set the signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: 'b', 'q', 't', 'f'.
      Parameters:
      services - the services value to set
      Returns:
      the AccountSasParameters object itself.
    • resourceTypes

      public SignedResourceTypes resourceTypes()
      Get the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'.
      Returns:
      the resourceTypes value
    • withResourceTypes

      public AccountSasParameters withResourceTypes(SignedResourceTypes resourceTypes)
      Set the signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: 's', 'c', 'o'.
      Parameters:
      resourceTypes - the resourceTypes value to set
      Returns:
      the AccountSasParameters object itself.
    • permissions

      public Permissions permissions()
      Get the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
      Returns:
      the permissions value
    • withPermissions

      public AccountSasParameters withPermissions(Permissions permissions)
      Set the signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: 'r', 'd', 'w', 'l', 'a', 'c', 'u', 'p'.
      Parameters:
      permissions - the permissions value to set
      Returns:
      the AccountSasParameters object itself.
    • iPAddressOrRange

      public String iPAddressOrRange()
      Get an IP address or a range of IP addresses from which to accept requests.
      Returns:
      the iPAddressOrRange value
    • withIPAddressOrRange

      public AccountSasParameters withIPAddressOrRange(String iPAddressOrRange)
      Set an IP address or a range of IP addresses from which to accept requests.
      Parameters:
      iPAddressOrRange - the iPAddressOrRange value to set
      Returns:
      the AccountSasParameters object itself.
    • protocols

      public HttpProtocol protocols()
      Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
      Returns:
      the protocols value
    • withProtocols

      public AccountSasParameters withProtocols(HttpProtocol protocols)
      Set the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.
      Parameters:
      protocols - the protocols value to set
      Returns:
      the AccountSasParameters object itself.
    • sharedAccessStartTime

      public org.joda.time.DateTime sharedAccessStartTime()
      Get the time at which the SAS becomes valid.
      Returns:
      the sharedAccessStartTime value
    • withSharedAccessStartTime

      public AccountSasParameters withSharedAccessStartTime(org.joda.time.DateTime sharedAccessStartTime)
      Set the time at which the SAS becomes valid.
      Parameters:
      sharedAccessStartTime - the sharedAccessStartTime value to set
      Returns:
      the AccountSasParameters object itself.
    • sharedAccessExpiryTime

      public org.joda.time.DateTime sharedAccessExpiryTime()
      Get the time at which the shared access signature becomes invalid.
      Returns:
      the sharedAccessExpiryTime value
    • withSharedAccessExpiryTime

      public AccountSasParameters withSharedAccessExpiryTime(org.joda.time.DateTime sharedAccessExpiryTime)
      Set the time at which the shared access signature becomes invalid.
      Parameters:
      sharedAccessExpiryTime - the sharedAccessExpiryTime value to set
      Returns:
      the AccountSasParameters object itself.
    • keyToSign

      public String keyToSign()
      Get the key to sign the account SAS token with.
      Returns:
      the keyToSign value
    • withKeyToSign

      public AccountSasParameters withKeyToSign(String keyToSign)
      Set the key to sign the account SAS token with.
      Parameters:
      keyToSign - the keyToSign value to set
      Returns:
      the AccountSasParameters object itself.