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 |
container()
Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.
|
boolean |
object()
Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.
|
static AccountSASResourceType |
parse(String resourceTypesString)
Creates an
AccountSASResourceType from the specified resource types string. |
boolean |
service()
Permission to access service level APIs granted.
|
String |
toString()
Converts the given resource types to a
String . |
AccountSASResourceType |
withContainer(boolean container)
Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.
|
AccountSASResourceType |
withObject(boolean object)
Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.
|
AccountSASResourceType |
withService(boolean service)
Permission to access service level APIs granted.
|
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
.public boolean service()
public AccountSASResourceType withService(boolean service)
public boolean container()
public AccountSASResourceType withContainer(boolean container)
public boolean object()
public AccountSASResourceType withObject(boolean object)
This documentation was released into the public domain.