public final class AccountSasResourceType extends Object
AccountSasSignatureValues object. It is possible to construct the resources string without this class, but the order
of the resources is particular and this class guarantees correctness.| Constructor and Description |
|---|
AccountSasResourceType()
Initializes an
AccountSasResourceType object with all fields set to false. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isContainer() |
boolean |
isObject() |
boolean |
isService() |
static AccountSasResourceType |
parse(String resourceTypesString)
Creates an
AccountSasResourceType from the specified resource types string. |
AccountSasResourceType |
setContainer(boolean container)
Sets the access status for container level APIs, this grants access to Blob Containers, Tables, Queues, and File
Shares.
|
AccountSasResourceType |
setObject(boolean object)
Sets the access status for object level APIs, this grants access to Blobs, Table Entities, Queue Messages,
Files.
|
AccountSasResourceType |
setService(boolean service)
Sets the access status for service level APIs.
|
String |
toString()
Converts the given resource types to a
String. |
public AccountSasResourceType()
AccountSasResourceType object with all fields set to false.public static AccountSasResourceType parse(String resourceTypesString)
AccountSasResourceType from the specified resource types string. This method will throw an
IllegalArgumentException if it encounters a character that does not correspond to a valid resource type.resourceTypesString - A String which represents the AccountSASResourceTypes.AccountSasResourceType generated from the given String.IllegalArgumentException - If resourceTypesString contains a character other than s, c, or o.public boolean isService()
public AccountSasResourceType setService(boolean service)
service - Access status to setpublic boolean isContainer()
public AccountSasResourceType setContainer(boolean container)
container - Access status to setpublic boolean isObject()
public AccountSasResourceType setObject(boolean object)
object - Access status to setCopyright © 2020 Microsoft Corporation. All rights reserved.