public final class BlobSasPermission extends Object
Constructor and Description |
---|
BlobSasPermission()
Initializes a
BlobSasPermission object with all fields set to false. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasAddPermission() |
boolean |
hasCreatePermission() |
boolean |
hasDeletePermission() |
boolean |
hasReadPermission() |
boolean |
hasWritePermission() |
static BlobSasPermission |
parse(String permString)
Creates a
BlobSasPermission from the specified permissions string. |
BlobSasPermission |
setAddPermission(boolean hasAddPermission)
Sets the add permission status.
|
BlobSasPermission |
setCreatePermission(boolean hasCreatePermission)
Sets the create permission status.
|
BlobSasPermission |
setDeletePermission(boolean hasDeletePermission)
Sets the delete permission status.
|
BlobSasPermission |
setReadPermission(boolean hasReadPermission)
Sets the read permission status.
|
BlobSasPermission |
setWritePermission(boolean hasWritePermission)
Sets the write permission status.
|
String |
toString()
Converts the given permissions to a
String . |
public BlobSasPermission()
BlobSasPermission
object with all fields set to false.public static BlobSasPermission parse(String permString)
BlobSasPermission
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 BlobSasPermission
.BlobSasPermission
generated from the given String
.IllegalArgumentException
- If permString
contains a character other than r, a, c, w, or d.public boolean hasReadPermission()
public BlobSasPermission setReadPermission(boolean hasReadPermission)
hasReadPermission
- Permission status to setpublic boolean hasAddPermission()
public BlobSasPermission setAddPermission(boolean hasAddPermission)
hasAddPermission
- Permission status to setpublic boolean hasCreatePermission()
public BlobSasPermission setCreatePermission(boolean hasCreatePermission)
hasCreatePermission
- Permission status to setpublic boolean hasWritePermission()
public BlobSasPermission setWritePermission(boolean hasWritePermission)
hasWritePermission
- Permission status to setpublic boolean hasDeletePermission()
public BlobSasPermission setDeletePermission(boolean hasDeletePermission)
hasDeletePermission
- Permission status to setCopyright © 2019 Microsoft Corporation. All rights reserved.