public final class TableAccountSasService extends Object
toString() and set as the services field on an
TableAccountSasSignatureValues 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 |
|---|
TableAccountSasService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasBlobAccess() |
boolean |
hasFileAccess() |
boolean |
hasQueueAccess() |
boolean |
hasTableAccess() |
static TableAccountSasService |
parse(String servicesString)
Creates an
TableAccountSasService from the specified services string. |
TableAccountSasService |
setBlobAccess(boolean blob)
Sets the access status for blob resources.
|
TableAccountSasService |
setFileAccess(boolean file)
Sets the access status for file resources.
|
TableAccountSasService |
setQueueAccess(boolean queue)
Sets the access status for queue resources.
|
TableAccountSasService |
setTableAccess(boolean table)
Sets the access status for table resources.
|
String |
toString()
Converts the given services to a
String. |
public static TableAccountSasService parse(String servicesString)
TableAccountSasService 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 account services.TableAccountSasService generated from the given String.IllegalArgumentException - If servicesString contains a character other than b, f, q, or t.public boolean hasBlobAccess()
public TableAccountSasService setBlobAccess(boolean blob)
blob - The access status to set.TableAccountSasService object.public boolean hasFileAccess()
public TableAccountSasService setFileAccess(boolean file)
file - The access status to set.TableAccountSasService object.public boolean hasQueueAccess()
public TableAccountSasService setQueueAccess(boolean queue)
queue - The access status to set.TableAccountSasService object.public boolean hasTableAccess()
public TableAccountSasService setTableAccess(boolean table)
table - The access status to set.TableAccountSasService object.public String toString()
String. Using this method will guarantee the services are in an order
accepted by the service. If all services are set to false, an empty string is returned from this method.toString in class ObjectString which represents the account services.Copyright © 2021 Microsoft Corporation. All rights reserved.