Class ServiceSasParameters

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

public class ServiceSasParameters extends Object
The parameters to list service SAS credentials of a specific resource.
  • Constructor Details

    • ServiceSasParameters

      public ServiceSasParameters()
  • Method Details

    • canonicalizedResource

      public String canonicalizedResource()
      Get the canonical path to the signed resource.
      Returns:
      the canonicalizedResource value
    • withCanonicalizedResource

      public ServiceSasParameters withCanonicalizedResource(String canonicalizedResource)
      Set the canonical path to the signed resource.
      Parameters:
      canonicalizedResource - the canonicalizedResource value to set
      Returns:
      the ServiceSasParameters object itself.
    • resource

      public SignedResource resource()
      Get the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'.
      Returns:
      the resource value
    • withResource

      public ServiceSasParameters withResource(SignedResource resource)
      Set the signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: 'b', 'c', 'f', 's'.
      Parameters:
      resource - the resource value to set
      Returns:
      the ServiceSasParameters object itself.
    • permissions

      public Permissions permissions()
      Get the signed permissions for the service 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 ServiceSasParameters withPermissions(Permissions permissions)
      Set the signed permissions for the service 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 ServiceSasParameters 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 ServiceSasParameters 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 ServiceSasParameters 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 ServiceSasParameters 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 ServiceSasParameters object itself.
    • sharedAccessStartTime

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

      public ServiceSasParameters withSharedAccessStartTime(org.joda.time.DateTime sharedAccessStartTime)
      Set the time at which the SAS becomes valid.
      Parameters:
      sharedAccessStartTime - the sharedAccessStartTime value to set
      Returns:
      the ServiceSasParameters 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 ServiceSasParameters 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 ServiceSasParameters object itself.
    • identifier

      public String identifier()
      Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
      Returns:
      the identifier value
    • withIdentifier

      public ServiceSasParameters withIdentifier(String identifier)
      Set a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
      Parameters:
      identifier - the identifier value to set
      Returns:
      the ServiceSasParameters object itself.
    • partitionKeyStart

      public String partitionKeyStart()
      Get the start of partition key.
      Returns:
      the partitionKeyStart value
    • withPartitionKeyStart

      public ServiceSasParameters withPartitionKeyStart(String partitionKeyStart)
      Set the start of partition key.
      Parameters:
      partitionKeyStart - the partitionKeyStart value to set
      Returns:
      the ServiceSasParameters object itself.
    • partitionKeyEnd

      public String partitionKeyEnd()
      Get the end of partition key.
      Returns:
      the partitionKeyEnd value
    • withPartitionKeyEnd

      public ServiceSasParameters withPartitionKeyEnd(String partitionKeyEnd)
      Set the end of partition key.
      Parameters:
      partitionKeyEnd - the partitionKeyEnd value to set
      Returns:
      the ServiceSasParameters object itself.
    • rowKeyStart

      public String rowKeyStart()
      Get the start of row key.
      Returns:
      the rowKeyStart value
    • withRowKeyStart

      public ServiceSasParameters withRowKeyStart(String rowKeyStart)
      Set the start of row key.
      Parameters:
      rowKeyStart - the rowKeyStart value to set
      Returns:
      the ServiceSasParameters object itself.
    • rowKeyEnd

      public String rowKeyEnd()
      Get the end of row key.
      Returns:
      the rowKeyEnd value
    • withRowKeyEnd

      public ServiceSasParameters withRowKeyEnd(String rowKeyEnd)
      Set the end of row key.
      Parameters:
      rowKeyEnd - the rowKeyEnd value to set
      Returns:
      the ServiceSasParameters object itself.
    • keyToSign

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

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

      public String cacheControl()
      Get the response header override for cache control.
      Returns:
      the cacheControl value
    • withCacheControl

      public ServiceSasParameters withCacheControl(String cacheControl)
      Set the response header override for cache control.
      Parameters:
      cacheControl - the cacheControl value to set
      Returns:
      the ServiceSasParameters object itself.
    • contentDisposition

      public String contentDisposition()
      Get the response header override for content disposition.
      Returns:
      the contentDisposition value
    • withContentDisposition

      public ServiceSasParameters withContentDisposition(String contentDisposition)
      Set the response header override for content disposition.
      Parameters:
      contentDisposition - the contentDisposition value to set
      Returns:
      the ServiceSasParameters object itself.
    • contentEncoding

      public String contentEncoding()
      Get the response header override for content encoding.
      Returns:
      the contentEncoding value
    • withContentEncoding

      public ServiceSasParameters withContentEncoding(String contentEncoding)
      Set the response header override for content encoding.
      Parameters:
      contentEncoding - the contentEncoding value to set
      Returns:
      the ServiceSasParameters object itself.
    • contentLanguage

      public String contentLanguage()
      Get the response header override for content language.
      Returns:
      the contentLanguage value
    • withContentLanguage

      public ServiceSasParameters withContentLanguage(String contentLanguage)
      Set the response header override for content language.
      Parameters:
      contentLanguage - the contentLanguage value to set
      Returns:
      the ServiceSasParameters object itself.
    • contentType

      public String contentType()
      Get the response header override for content type.
      Returns:
      the contentType value
    • withContentType

      public ServiceSasParameters withContentType(String contentType)
      Set the response header override for content type.
      Parameters:
      contentType - the contentType value to set
      Returns:
      the ServiceSasParameters object itself.