public final class AccountSasService extends Object
AccountSasSignatureValues object. It is possible to construct the services string without this class, but
the order of the services is particular and this class guarantees correctness.| Constructor and Description |
|---|
AccountSasService()
Initializes an
AccountSasService object with all fields set to false. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasBlobAccess() |
boolean |
hasFileAccess() |
boolean |
hasQueueAccess() |
boolean |
hasTableAccess() |
static AccountSasService |
parse(String servicesString)
Creates an
AccountSasService from the specified services string. |
AccountSasService |
setBlobAccess(boolean blob)
Sets the access status for blob resources.
|
AccountSasService |
setFileAccess(boolean file)
Sets the access status for file resources.
|
AccountSasService |
setQueueAccess(boolean queue)
Sets the access status for queue resources.
|
AccountSasService |
setTableAccess(boolean table)
Sets the access status for table resources.
|
String |
toString()
Converts the given services to a
String. |
public AccountSasService()
AccountSasService object with all fields set to false.public static AccountSasService parse(String servicesString)
AccountSasService from the specified services string. This method will throw an
IllegalArgumentException if it encounters a character that does not correspond to a valid service.servicesString - A String which represents the SharedAccessAccountServices.AccountSasService generated from the given String.IllegalArgumentException - If servicesString contains a character other than b, f, q, or t.public boolean hasBlobAccess()
public AccountSasService setBlobAccess(boolean blob)
blob - Access status to setpublic boolean hasFileAccess()
public AccountSasService setFileAccess(boolean file)
file - Access status to setpublic boolean hasQueueAccess()
public AccountSasService setQueueAccess(boolean queue)
queue - Access status to setpublic boolean hasTableAccess()
public AccountSasService setTableAccess(boolean table)
table - Access status to setCopyright © 2020 Microsoft Corporation. All rights reserved.