Class ServiceSasParameters
java.lang.Object
com.microsoft.azure.management.storage.ServiceSasParameters
The parameters to list service SAS credentials of a specific resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the response header override for cache control.Get the canonical path to the signed resource.Get the response header override for content disposition.Get the response header override for content encoding.Get the response header override for content language.Get the response header override for content type.Get a unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.Get an IP address or a range of IP addresses from which to accept requests.Get the key to sign the account SAS token with.Get the end of partition key.Get the start of partition key.Get the signed permissions for the service SAS.Get the protocol permitted for a request made with the account SAS.resource()
Get the signed services accessible with the service SAS.Get the end of row key.Get the start of row key.org.joda.time.DateTime
Get the time at which the shared access signature becomes invalid.org.joda.time.DateTime
Get the time at which the SAS becomes valid.withCacheControl
(String cacheControl) Set the response header override for cache control.withCanonicalizedResource
(String canonicalizedResource) Set the canonical path to the signed resource.withContentDisposition
(String contentDisposition) Set the response header override for content disposition.withContentEncoding
(String contentEncoding) Set the response header override for content encoding.withContentLanguage
(String contentLanguage) Set the response header override for content language.withContentType
(String contentType) Set the response header override for content type.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.withIPAddressOrRange
(String iPAddressOrRange) Set an IP address or a range of IP addresses from which to accept requests.withKeyToSign
(String keyToSign) Set the key to sign the account SAS token with.withPartitionKeyEnd
(String partitionKeyEnd) Set the end of partition key.withPartitionKeyStart
(String partitionKeyStart) Set the start of partition key.withPermissions
(Permissions permissions) Set the signed permissions for the service SAS.withProtocols
(HttpProtocol protocols) Set the protocol permitted for a request made with the account SAS.withResource
(SignedResource resource) Set the signed services accessible with the service SAS.withRowKeyEnd
(String rowKeyEnd) Set the end of row key.withRowKeyStart
(String rowKeyStart) Set the start of row key.withSharedAccessExpiryTime
(org.joda.time.DateTime sharedAccessExpiryTime) Set the time at which the shared access signature becomes invalid.withSharedAccessStartTime
(org.joda.time.DateTime sharedAccessStartTime) Set the time at which the SAS becomes valid.
-
Constructor Details
-
ServiceSasParameters
public ServiceSasParameters()
-
-
Method Details
-
canonicalizedResource
Get the canonical path to the signed resource.- Returns:
- the canonicalizedResource value
-
withCanonicalizedResource
Set the canonical path to the signed resource.- Parameters:
canonicalizedResource
- the canonicalizedResource value to set- Returns:
- the ServiceSasParameters object itself.
-
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
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
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
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
Get an IP address or a range of IP addresses from which to accept requests.- Returns:
- the iPAddressOrRange value
-
withIPAddressOrRange
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
Get the protocol permitted for a request made with the account SAS. Possible values include: 'https,http', 'https'.- Returns:
- the protocols value
-
withProtocols
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.
-
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
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
Get the start of partition key.- Returns:
- the partitionKeyStart value
-
withPartitionKeyStart
Set the start of partition key.- Parameters:
partitionKeyStart
- the partitionKeyStart value to set- Returns:
- the ServiceSasParameters object itself.
-
partitionKeyEnd
Get the end of partition key.- Returns:
- the partitionKeyEnd value
-
withPartitionKeyEnd
Set the end of partition key.- Parameters:
partitionKeyEnd
- the partitionKeyEnd value to set- Returns:
- the ServiceSasParameters object itself.
-
rowKeyStart
Get the start of row key.- Returns:
- the rowKeyStart value
-
withRowKeyStart
Set the start of row key.- Parameters:
rowKeyStart
- the rowKeyStart value to set- Returns:
- the ServiceSasParameters object itself.
-
rowKeyEnd
Get the end of row key.- Returns:
- the rowKeyEnd value
-
withRowKeyEnd
Set the end of row key.- Parameters:
rowKeyEnd
- the rowKeyEnd value to set- Returns:
- the ServiceSasParameters object itself.
-
keyToSign
Get the key to sign the account SAS token with.- Returns:
- the keyToSign value
-
withKeyToSign
Set the key to sign the account SAS token with.- Parameters:
keyToSign
- the keyToSign value to set- Returns:
- the ServiceSasParameters object itself.
-
cacheControl
Get the response header override for cache control.- Returns:
- the cacheControl value
-
withCacheControl
Set the response header override for cache control.- Parameters:
cacheControl
- the cacheControl value to set- Returns:
- the ServiceSasParameters object itself.
-
contentDisposition
Get the response header override for content disposition.- Returns:
- the contentDisposition value
-
withContentDisposition
Set the response header override for content disposition.- Parameters:
contentDisposition
- the contentDisposition value to set- Returns:
- the ServiceSasParameters object itself.
-
contentEncoding
Get the response header override for content encoding.- Returns:
- the contentEncoding value
-
withContentEncoding
Set the response header override for content encoding.- Parameters:
contentEncoding
- the contentEncoding value to set- Returns:
- the ServiceSasParameters object itself.
-
contentLanguage
Get the response header override for content language.- Returns:
- the contentLanguage value
-
withContentLanguage
Set the response header override for content language.- Parameters:
contentLanguage
- the contentLanguage value to set- Returns:
- the ServiceSasParameters object itself.
-
contentType
Get the response header override for content type.- Returns:
- the contentType value
-
withContentType
Set the response header override for content type.- Parameters:
contentType
- the contentType value to set- Returns:
- the ServiceSasParameters object itself.
-