public final class TableAccountSasResourceType extends Object
toString() and set as the resources field on an
TableAccountSasSignatureValues 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 |
|---|
TableAccountSasResourceType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isContainer()
Gets the access status for container level APIs, this grants access to Blob Containers, Tables, Queues, and
File Shares.
|
boolean |
isObject()
Get the access status for object level APIs, this grants access to Blobs, Table Entities, Queue Messages, Files.
|
boolean |
isService()
Get the access status for service level APIs.
|
static TableAccountSasResourceType |
parse(String resourceTypesString)
Creates an
TableAccountSasResourceType from the specified resource types string. |
TableAccountSasResourceType |
setContainer(boolean container)
Sets the access status for container level APIs, this grants access to Blob Containers, Tables, Queues, and File
Shares.
|
TableAccountSasResourceType |
setObject(boolean object)
Sets the access status for object level APIs, this grants access to Blobs, Table Entities, Queue Messages,
Files.
|
TableAccountSasResourceType |
setService(boolean service)
Sets the access status for service level APIs.
|
String |
toString()
Converts the given resource types to a
String. |
public static TableAccountSasResourceType parse(String resourceTypesString)
TableAccountSasResourceType 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
account resource types.TableAccountSasResourceType generated from the given String.IllegalArgumentException - If resourceTypesString contains a character other than s, c, or o.public boolean isService()
public TableAccountSasResourceType setService(boolean service)
service - The access status to set.TableAccountSasResourceType object.public boolean isContainer()
public TableAccountSasResourceType setContainer(boolean container)
container - The access status to set.TableAccountSasResourceType object.public boolean isObject()
public TableAccountSasResourceType setObject(boolean object)
object - The access status to set.TableAccountSasResourceType object.public String toString()
String. Using this method will guarantee the resource types are in
an order accepted by the service. If all resource types are set to false, an empty string is returned from this
method.toString in class ObjectString which represents the account resource types.Copyright © 2021 Microsoft Corporation. All rights reserved.