public final class ServiceSasParameters extends Object
| Constructor and Description |
|---|
ServiceSasParameters() |
| Modifier and Type | Method and Description |
|---|---|
String |
cacheControl()
Get the cacheControl property: The response header override for cache control.
|
String |
canonicalizedResource()
Get the canonicalizedResource property: The canonical path to the signed resource.
|
String |
contentDisposition()
Get the contentDisposition property: The response header override for content disposition.
|
String |
contentEncoding()
Get the contentEncoding property: The response header override for content encoding.
|
String |
contentLanguage()
Get the contentLanguage property: The response header override for content language.
|
String |
contentType()
Get the contentType property: The response header override for content type.
|
String |
identifier()
Get the identifier property: A unique value up to 64 characters in length that correlates to an access policy
specified for the container, queue, or table.
|
String |
ipAddressOrRange()
Get the ipAddressOrRange property: An IP address or a range of IP addresses from which to accept requests.
|
String |
keyToSign()
Get the keyToSign property: The key to sign the account SAS token with.
|
String |
partitionKeyEnd()
Get the partitionKeyEnd property: The end of partition key.
|
String |
partitionKeyStart()
Get the partitionKeyStart property: The start of partition key.
|
Permissions |
permissions()
Get the permissions property: The signed permissions for the service SAS.
|
HttpProtocol |
protocols()
Get the protocols property: The protocol permitted for a request made with the account SAS.
|
SignedResource |
resource()
Get the resource property: The signed services accessible with the service SAS.
|
String |
rowKeyEnd()
Get the rowKeyEnd property: The end of row key.
|
String |
rowKeyStart()
Get the rowKeyStart property: The start of row key.
|
OffsetDateTime |
sharedAccessExpiryTime()
Get the sharedAccessExpiryTime property: The time at which the shared access signature becomes invalid.
|
OffsetDateTime |
sharedAccessStartTime()
Get the sharedAccessStartTime property: The time at which the SAS becomes valid.
|
void |
validate()
Validates the instance.
|
ServiceSasParameters |
withCacheControl(String cacheControl)
Set the cacheControl property: The response header override for cache control.
|
ServiceSasParameters |
withCanonicalizedResource(String canonicalizedResource)
Set the canonicalizedResource property: The canonical path to the signed resource.
|
ServiceSasParameters |
withContentDisposition(String contentDisposition)
Set the contentDisposition property: The response header override for content disposition.
|
ServiceSasParameters |
withContentEncoding(String contentEncoding)
Set the contentEncoding property: The response header override for content encoding.
|
ServiceSasParameters |
withContentLanguage(String contentLanguage)
Set the contentLanguage property: The response header override for content language.
|
ServiceSasParameters |
withContentType(String contentType)
Set the contentType property: The response header override for content type.
|
ServiceSasParameters |
withIdentifier(String identifier)
Set the identifier property: A unique value up to 64 characters in length that correlates to an access policy
specified for the container, queue, or table.
|
ServiceSasParameters |
withIpAddressOrRange(String ipAddressOrRange)
Set the ipAddressOrRange property: An IP address or a range of IP addresses from which to accept requests.
|
ServiceSasParameters |
withKeyToSign(String keyToSign)
Set the keyToSign property: The key to sign the account SAS token with.
|
ServiceSasParameters |
withPartitionKeyEnd(String partitionKeyEnd)
Set the partitionKeyEnd property: The end of partition key.
|
ServiceSasParameters |
withPartitionKeyStart(String partitionKeyStart)
Set the partitionKeyStart property: The start of partition key.
|
ServiceSasParameters |
withPermissions(Permissions permissions)
Set the permissions property: The signed permissions for the service SAS.
|
ServiceSasParameters |
withProtocols(HttpProtocol protocols)
Set the protocols property: The protocol permitted for a request made with the account SAS.
|
ServiceSasParameters |
withResource(SignedResource resource)
Set the resource property: The signed services accessible with the service SAS.
|
ServiceSasParameters |
withRowKeyEnd(String rowKeyEnd)
Set the rowKeyEnd property: The end of row key.
|
ServiceSasParameters |
withRowKeyStart(String rowKeyStart)
Set the rowKeyStart property: The start of row key.
|
ServiceSasParameters |
withSharedAccessExpiryTime(OffsetDateTime sharedAccessExpiryTime)
Set the sharedAccessExpiryTime property: The time at which the shared access signature becomes invalid.
|
ServiceSasParameters |
withSharedAccessStartTime(OffsetDateTime sharedAccessStartTime)
Set the sharedAccessStartTime property: The time at which the SAS becomes valid.
|
public String canonicalizedResource()
public ServiceSasParameters withCanonicalizedResource(String canonicalizedResource)
canonicalizedResource - the canonicalizedResource value to set.public SignedResource resource()
public ServiceSasParameters withResource(SignedResource resource)
resource - the resource value to set.public Permissions permissions()
public ServiceSasParameters withPermissions(Permissions permissions)
permissions - the permissions value to set.public String ipAddressOrRange()
public ServiceSasParameters withIpAddressOrRange(String ipAddressOrRange)
ipAddressOrRange - the ipAddressOrRange value to set.public HttpProtocol protocols()
public ServiceSasParameters withProtocols(HttpProtocol protocols)
protocols - the protocols value to set.public OffsetDateTime sharedAccessStartTime()
public ServiceSasParameters withSharedAccessStartTime(OffsetDateTime sharedAccessStartTime)
sharedAccessStartTime - the sharedAccessStartTime value to set.public OffsetDateTime sharedAccessExpiryTime()
public ServiceSasParameters withSharedAccessExpiryTime(OffsetDateTime sharedAccessExpiryTime)
sharedAccessExpiryTime - the sharedAccessExpiryTime value to set.public String identifier()
public ServiceSasParameters withIdentifier(String identifier)
identifier - the identifier value to set.public String partitionKeyStart()
public ServiceSasParameters withPartitionKeyStart(String partitionKeyStart)
partitionKeyStart - the partitionKeyStart value to set.public String partitionKeyEnd()
public ServiceSasParameters withPartitionKeyEnd(String partitionKeyEnd)
partitionKeyEnd - the partitionKeyEnd value to set.public String rowKeyStart()
public ServiceSasParameters withRowKeyStart(String rowKeyStart)
rowKeyStart - the rowKeyStart value to set.public String rowKeyEnd()
public ServiceSasParameters withRowKeyEnd(String rowKeyEnd)
rowKeyEnd - the rowKeyEnd value to set.public String keyToSign()
public ServiceSasParameters withKeyToSign(String keyToSign)
keyToSign - the keyToSign value to set.public String cacheControl()
public ServiceSasParameters withCacheControl(String cacheControl)
cacheControl - the cacheControl value to set.public String contentDisposition()
public ServiceSasParameters withContentDisposition(String contentDisposition)
contentDisposition - the contentDisposition value to set.public String contentEncoding()
public ServiceSasParameters withContentEncoding(String contentEncoding)
contentEncoding - the contentEncoding value to set.public String contentLanguage()
public ServiceSasParameters withContentLanguage(String contentLanguage)
contentLanguage - the contentLanguage value to set.public String contentType()
public ServiceSasParameters withContentType(String contentType)
contentType - the contentType value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.