public final class QueueSASPermission
extends java.lang.Object
QueueServiceSASSignatureValues object. It is possible to construct the permissions string without this class, but
the order of the permissions is particular and this class guarantees correctness.| Constructor and Description |
|---|
QueueSASPermission()
Initializes a
QueueSASPermission object with all fields set to false. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAdd() |
boolean |
getProcess() |
boolean |
getRead() |
boolean |
getUpdate() |
static QueueSASPermission |
parse(java.lang.String permString)
Creates a
QueueSASPermission from the specified permissions string. |
QueueSASPermission |
setAdd(boolean add)
Sets the add permission status.
|
QueueSASPermission |
setProcess(boolean process)
Sets the process permission status.
|
QueueSASPermission |
setRead(boolean read)
Sets the read permission status.
|
QueueSASPermission |
setUpdate(boolean update)
Sets the update permission status.
|
java.lang.String |
toString()
Converts the given permissions to a
String. |
public QueueSASPermission()
QueueSASPermission object with all fields set to false.public static QueueSASPermission parse(java.lang.String permString)
QueueSASPermission from the specified permissions string. This method will throw an
IllegalArgumentException if it encounters a character that does not correspond to a valid permission.permString - A String which represents the QueueSASPermission.QueueSASPermission generated from the given String.java.lang.IllegalArgumentException - If permString contains a character other than r, a, u, or p.public boolean getRead()
public QueueSASPermission setRead(boolean read)
read - Permission status to setpublic boolean getAdd()
public QueueSASPermission setAdd(boolean add)
add - Permission status to setpublic boolean getUpdate()
public QueueSASPermission setUpdate(boolean update)
update - Permission status to setpublic boolean getProcess()
public QueueSASPermission setProcess(boolean process)
process - Permission status to setpublic java.lang.String toString()
String. Using this method will guarantee the permissions are in an
order accepted by the service.toString in class java.lang.ObjectString which represents the QueueSASPermission.Copyright © 2019 Microsoft Corporation. All rights reserved.