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