public final class AccountSASSignatureValues extends Object
SASQueryParameters
exist because
the former is mutable and a logical representation while the latter is immutable and used to generate actual REST
requests.
Please see here for more conceptual information on SAS:
Please see here for further descriptions of the parameters, including which are required:
Constructor and Description |
---|
AccountSASSignatureValues()
Initializes an
AccountSASSignatureValues object with the version number set to the default and all
other values empty. |
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
expiryTime()
The time after which the SAS will no longer work.
|
SASQueryParameters |
generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
Generates a
SASQueryParameters object which contains all SAS query parameters needed to make an actual
REST request. |
IPRange |
ipRange()
|
String |
permissions()
Specifies which operations the SAS user may perform.
|
SASProtocol |
protocol()
|
String |
resourceTypes()
The values that indicate the resource types accessible with this SAS.
|
String |
services()
The values that indicate the services accessible with this SAS.
|
OffsetDateTime |
startTime()
When the SAS will take effect.
|
String |
version()
If null or empty, this defaults to the service version targeted by this version of the library.
|
AccountSASSignatureValues |
withExpiryTime(OffsetDateTime expiryTime)
The time after which the SAS will no longer work.
|
AccountSASSignatureValues |
withIpRange(IPRange ipRange)
|
AccountSASSignatureValues |
withPermissions(String permissions)
Specifies which operations the SAS user may perform.
|
AccountSASSignatureValues |
withProtocol(SASProtocol protocol)
|
AccountSASSignatureValues |
withResourceTypes(String resourceTypes)
The values that indicate the resource types accessible with this SAS.
|
AccountSASSignatureValues |
withServices(String services)
The values that indicate the services accessible with this SAS.
|
AccountSASSignatureValues |
withStartTime(OffsetDateTime startTime)
When the SAS will take effect.
|
AccountSASSignatureValues |
withVersion(String version)
If null or empty, this defaults to the service version targeted by this version of the library.
|
public AccountSASSignatureValues()
AccountSASSignatureValues
object with the version number set to the default and all
other values empty.public String version()
public AccountSASSignatureValues withVersion(String version)
public SASProtocol protocol()
public AccountSASSignatureValues withProtocol(SASProtocol protocol)
public OffsetDateTime startTime()
public AccountSASSignatureValues withStartTime(OffsetDateTime startTime)
public OffsetDateTime expiryTime()
public AccountSASSignatureValues withExpiryTime(OffsetDateTime expiryTime)
public String permissions()
AccountSASPermission
for help
constructing the permissions string.public AccountSASSignatureValues withPermissions(String permissions)
AccountSASPermission
for help
constructing the permissions string.public IPRange ipRange()
public AccountSASSignatureValues withIpRange(IPRange ipRange)
public String services()
AccountSASService
to
construct this value.public AccountSASSignatureValues withServices(String services)
AccountSASService
to
construct this value.public String resourceTypes()
AccountSASResourceType
to construct this value.public AccountSASSignatureValues withResourceTypes(String resourceTypes)
AccountSASResourceType
to construct this value.public SASQueryParameters generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
SASQueryParameters
object which contains all SAS query parameters needed to make an actual
REST request.sharedKeyCredentials
- Credentials for the storage account and corresponding primary or secondary key.SASQueryParameters
This documentation was released into the public domain.