TableAccountSasResourceType Class
- java.
lang. Object - com.
azure. data. tables. sas. TableAccountSasResourceType
- com.
public final class TableAccountSasResourceType
This is a helper class to construct a string representing the resources accessible by an Account SAS. Setting a value to true means that any SAS which uses these permissions will grant access to that resource type. Once all the values are set, this should be serialized with 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 | Description |
---|---|
Table |
Creates a TableAccountSasResourceType with all fields set to false. |
Modifier and Type | Method and Description |
---|---|
boolean |
is Gets the access status for container level APIs, this grants access to Blob Containers, Tables, Queues, and File Shares. |
boolean |
is Get the access status for object level APIs, this grants access to Blobs, Table Entities, Queue Messages, Files. |
boolean |
is Get the access status for service level APIs. |
static
Table |
parse(String resource Creates an TableAccountSasResourceType from the specified resource types string. |
Table |
set Sets the access status for container level APIs, this grants access to Blob Containers, Tables, Queues, and File Shares. |
Table |
set Sets the access status for object level APIs, this grants access to Blobs, Table Entities, Queue Messages, Files. |
Table |
set Sets the access status for service level APIs. |
String |
to Converts the given resource types to a |
Methods inherited from java.lang.Object
TableAccountSasResourceType
public TableAccountSasResourceType()
Creates a TableAccountSasResourceType with all fields set to false.
isContainer
public boolean isContainer()
Gets the access status for container level APIs, this grants access to Blob Containers, Tables, Queues, and File Shares.
Returns:
isObject
public boolean isObject()
Get the access status for object level APIs, this grants access to Blobs, Table Entities, Queue Messages, Files.
Returns:
isService
public boolean isService()
Get the access status for service level APIs.
Returns:
parse
public static TableAccountSasResourceType parse(String resourceTypesString)
Creates an 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.
Parameters:
Returns:
String
.setContainer
public TableAccountSasResourceType setContainer(boolean container)
Sets the access status for container level APIs, this grants access to Blob Containers, Tables, Queues, and File Shares.
Parameters:
Returns:
setObject
public TableAccountSasResourceType setObject(boolean object)
Sets the access status for object level APIs, this grants access to Blobs, Table Entities, Queue Messages, Files.
Parameters:
Returns:
setService
public TableAccountSasResourceType setService(boolean service)
Sets the access status for service level APIs.
Parameters:
Returns:
toString
public String toString()
Converts the given resource types to a 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.
Overrides:
TableAccountSasResourceType.toString()Returns:
String
which represents the TableAccountSasResourceType.Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: