public final class AccountSasParameters extends Object
| Constructor and Description |
|---|
AccountSasParameters() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Permissions |
permissions()
Get the permissions property: The signed permissions for the account SAS.
|
HttpProtocol |
protocols()
Get the protocols property: The protocol permitted for a request made with the account SAS.
|
SignedResourceTypes |
resourceTypes()
Get the resourceTypes property: The signed resource types that are accessible with the account SAS.
|
Services |
services()
Get the services property: The signed services accessible with the account SAS.
|
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.
|
AccountSasParameters |
withIpAddressOrRange(String ipAddressOrRange)
Set the ipAddressOrRange property: An IP address or a range of IP addresses from which to accept requests.
|
AccountSasParameters |
withKeyToSign(String keyToSign)
Set the keyToSign property: The key to sign the account SAS token with.
|
AccountSasParameters |
withPermissions(Permissions permissions)
Set the permissions property: The signed permissions for the account SAS.
|
AccountSasParameters |
withProtocols(HttpProtocol protocols)
Set the protocols property: The protocol permitted for a request made with the account SAS.
|
AccountSasParameters |
withResourceTypes(SignedResourceTypes resourceTypes)
Set the resourceTypes property: The signed resource types that are accessible with the account SAS.
|
AccountSasParameters |
withServices(Services services)
Set the services property: The signed services accessible with the account SAS.
|
AccountSasParameters |
withSharedAccessExpiryTime(OffsetDateTime sharedAccessExpiryTime)
Set the sharedAccessExpiryTime property: The time at which the shared access signature becomes invalid.
|
AccountSasParameters |
withSharedAccessStartTime(OffsetDateTime sharedAccessStartTime)
Set the sharedAccessStartTime property: The time at which the SAS becomes valid.
|
public Services services()
public AccountSasParameters withServices(Services services)
services - the services value to set.public SignedResourceTypes resourceTypes()
public AccountSasParameters withResourceTypes(SignedResourceTypes resourceTypes)
resourceTypes - the resourceTypes value to set.public Permissions permissions()
public AccountSasParameters withPermissions(Permissions permissions)
permissions - the permissions value to set.public String ipAddressOrRange()
public AccountSasParameters withIpAddressOrRange(String ipAddressOrRange)
ipAddressOrRange - the ipAddressOrRange value to set.public HttpProtocol protocols()
public AccountSasParameters withProtocols(HttpProtocol protocols)
protocols - the protocols value to set.public OffsetDateTime sharedAccessStartTime()
public AccountSasParameters withSharedAccessStartTime(OffsetDateTime sharedAccessStartTime)
sharedAccessStartTime - the sharedAccessStartTime value to set.public OffsetDateTime sharedAccessExpiryTime()
public AccountSasParameters withSharedAccessExpiryTime(OffsetDateTime sharedAccessExpiryTime)
sharedAccessExpiryTime - the sharedAccessExpiryTime value to set.public String keyToSign()
public AccountSasParameters withKeyToSign(String keyToSign)
keyToSign - the keyToSign value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.