Class ServiceSasParameters
java.lang.Object
com.azure.resourcemanager.storage.models.ServiceSasParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceSasParameters>
public final class ServiceSasParameters
extends Object
implements com.azure.json.JsonSerializable<ServiceSasParameters>
The parameters to list service SAS credentials of a specific resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheControl property: The response header override for cache control.Get the canonicalizedResource property: The canonical path to the signed resource.Get the contentDisposition property: The response header override for content disposition.Get the contentEncoding property: The response header override for content encoding.Get the contentLanguage property: The response header override for content language.Get the contentType property: The response header override for content type.static ServiceSasParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceSasParameters from the JsonReader.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.Get the ipAddressOrRange property: An IP address or a range of IP addresses from which to accept requests.Get the keyToSign property: The key to sign the account SAS token with.Get the partitionKeyEnd property: The end of partition key.Get the partitionKeyStart property: The start of partition key.Get the permissions property: The signed permissions for the service SAS.Get the protocols property: The protocol permitted for a request made with the account SAS.resource()Get the resource property: The signed services accessible with the service SAS.Get the rowKeyEnd property: The end of row key.Get the rowKeyStart property: The start of row key.Get the sharedAccessExpiryTime property: The time at which the shared access signature becomes invalid.Get the sharedAccessStartTime property: The time at which the SAS becomes valid.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCacheControl(String cacheControl) Set the cacheControl property: The response header override for cache control.withCanonicalizedResource(String canonicalizedResource) Set the canonicalizedResource property: The canonical path to the signed resource.withContentDisposition(String contentDisposition) Set the contentDisposition property: The response header override for content disposition.withContentEncoding(String contentEncoding) Set the contentEncoding property: The response header override for content encoding.withContentLanguage(String contentLanguage) Set the contentLanguage property: The response header override for content language.withContentType(String contentType) Set the contentType property: The response header override for content type.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.withIpAddressOrRange(String ipAddressOrRange) Set the ipAddressOrRange property: An IP address or a range of IP addresses from which to accept requests.withKeyToSign(String keyToSign) Set the keyToSign property: The key to sign the account SAS token with.withPartitionKeyEnd(String partitionKeyEnd) Set the partitionKeyEnd property: The end of partition key.withPartitionKeyStart(String partitionKeyStart) Set the partitionKeyStart property: The start of partition key.withPermissions(Permissions permissions) Set the permissions property: The signed permissions for the service SAS.withProtocols(HttpProtocol protocols) Set the protocols property: The protocol permitted for a request made with the account SAS.withResource(SignedResource resource) Set the resource property: The signed services accessible with the service SAS.withRowKeyEnd(String rowKeyEnd) Set the rowKeyEnd property: The end of row key.withRowKeyStart(String rowKeyStart) Set the rowKeyStart property: The start of row key.withSharedAccessExpiryTime(OffsetDateTime sharedAccessExpiryTime) Set the sharedAccessExpiryTime property: The time at which the shared access signature becomes invalid.withSharedAccessStartTime(OffsetDateTime sharedAccessStartTime) Set the sharedAccessStartTime property: The time at which the SAS becomes valid.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServiceSasParameters
public ServiceSasParameters()Creates an instance of ServiceSasParameters class.
-
-
Method Details
-
canonicalizedResource
Get the canonicalizedResource property: The canonical path to the signed resource.- Returns:
- the canonicalizedResource value.
-
withCanonicalizedResource
Set the canonicalizedResource property: The canonical path to the signed resource.- Parameters:
canonicalizedResource- the canonicalizedResource value to set.- Returns:
- the ServiceSasParameters object itself.
-
resource
Get the resource property: The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s).- Returns:
- the resource value.
-
withResource
Set the resource property: The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s).- Parameters:
resource- the resource value to set.- Returns:
- the ServiceSasParameters object itself.
-
permissions
Get the permissions property: 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).- Returns:
- the permissions value.
-
withPermissions
Set the permissions property: 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).- Parameters:
permissions- the permissions value to set.- Returns:
- the ServiceSasParameters object itself.
-
ipAddressOrRange
Get the ipAddressOrRange property: An IP address or a range of IP addresses from which to accept requests.- Returns:
- the ipAddressOrRange value.
-
withIpAddressOrRange
Set the ipAddressOrRange property: 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 protocols property: The protocol permitted for a request made with the account SAS.- Returns:
- the protocols value.
-
withProtocols
Set the protocols property: The protocol permitted for a request made with the account SAS.- Parameters:
protocols- the protocols value to set.- Returns:
- the ServiceSasParameters object itself.
-
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.- Returns:
- the identifier value.
-
withIdentifier
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.- Parameters:
identifier- the identifier value to set.- Returns:
- the ServiceSasParameters object itself.
-
partitionKeyStart
Get the partitionKeyStart property: The start of partition key.- Returns:
- the partitionKeyStart value.
-
withPartitionKeyStart
Set the partitionKeyStart property: The start of partition key.- Parameters:
partitionKeyStart- the partitionKeyStart value to set.- Returns:
- the ServiceSasParameters object itself.
-
partitionKeyEnd
Get the partitionKeyEnd property: The end of partition key.- Returns:
- the partitionKeyEnd value.
-
withPartitionKeyEnd
Set the partitionKeyEnd property: The end of partition key.- Parameters:
partitionKeyEnd- the partitionKeyEnd value to set.- Returns:
- the ServiceSasParameters object itself.
-
rowKeyStart
Get the rowKeyStart property: The start of row key.- Returns:
- the rowKeyStart value.
-
withRowKeyStart
Set the rowKeyStart property: The start of row key.- Parameters:
rowKeyStart- the rowKeyStart value to set.- Returns:
- the ServiceSasParameters object itself.
-
rowKeyEnd
Get the rowKeyEnd property: The end of row key.- Returns:
- the rowKeyEnd value.
-
withRowKeyEnd
Set the rowKeyEnd property: The end of row key.- Parameters:
rowKeyEnd- the rowKeyEnd value to set.- Returns:
- the ServiceSasParameters object itself.
-
keyToSign
Get the keyToSign property: The key to sign the account SAS token with.- Returns:
- the keyToSign value.
-
withKeyToSign
Set the keyToSign property: The key to sign the account SAS token with.- Parameters:
keyToSign- the keyToSign value to set.- Returns:
- the ServiceSasParameters object itself.
-
cacheControl
Get the cacheControl property: The response header override for cache control.- Returns:
- the cacheControl value.
-
withCacheControl
Set the cacheControl property: The response header override for cache control.- Parameters:
cacheControl- the cacheControl value to set.- Returns:
- the ServiceSasParameters object itself.
-
contentDisposition
Get the contentDisposition property: The response header override for content disposition.- Returns:
- the contentDisposition value.
-
withContentDisposition
Set the contentDisposition property: The response header override for content disposition.- Parameters:
contentDisposition- the contentDisposition value to set.- Returns:
- the ServiceSasParameters object itself.
-
contentEncoding
Get the contentEncoding property: The response header override for content encoding.- Returns:
- the contentEncoding value.
-
withContentEncoding
Set the contentEncoding property: The response header override for content encoding.- Parameters:
contentEncoding- the contentEncoding value to set.- Returns:
- the ServiceSasParameters object itself.
-
contentLanguage
Get the contentLanguage property: The response header override for content language.- Returns:
- the contentLanguage value.
-
withContentLanguage
Set the contentLanguage property: The response header override for content language.- Parameters:
contentLanguage- the contentLanguage value to set.- Returns:
- the ServiceSasParameters object itself.
-
contentType
Get the contentType property: The response header override for content type.- Returns:
- the contentType value.
-
withContentType
Set the contentType property: The response header override for content type.- Parameters:
contentType- the contentType value to set.- Returns:
- the ServiceSasParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServiceSasParameters>- Throws:
IOException
-
fromJson
public static ServiceSasParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceSasParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceSasParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ServiceSasParameters.
-