PermissionScope Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. PermissionScope
- com.
Implements
public final class PermissionScope
implements JsonSerializable<PermissionScope>
The PermissionScope model.
Constructor Summary
Constructor | Description |
---|---|
PermissionScope() |
Creates an instance of Permission |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Permission |
fromJson(JsonReader jsonReader)
Reads an instance of Permission |
String |
permissions()
Get the permissions property: The permissions for the local user. |
String |
resourceName()
Get the resource |
String |
service()
Get the service property: The service used by the local user, e. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Permission |
withPermissions(String permissions)
Set the permissions property: The permissions for the local user. |
Permission |
withResourceName(String resourceName)
Set the resource |
Permission |
withService(String service)
Set the service property: The service used by the local user, e. |
Methods inherited from java.lang.Object
Constructor Details
PermissionScope
public PermissionScope()
Creates an instance of PermissionScope class.
Method Details
fromJson
public static PermissionScope fromJson(JsonReader jsonReader)
Reads an instance of PermissionScope from the JsonReader.
Parameters:
Returns:
Throws:
permissions
public String permissions()
Get the permissions property: The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), Create (c), Modify Ownership (o), and Modify Permissions (p).
Returns:
resourceName
public String resourceName()
Get the resourceName property: The name of resource, normally the container name or the file share name, used by the local user.
Returns:
service
public String service()
Get the service property: The service used by the local user, e.g. blob, file.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPermissions
public PermissionScope withPermissions(String permissions)
Set the permissions property: The permissions for the local user. Possible values include: Read (r), Write (w), Delete (d), List (l), Create (c), Modify Ownership (o), and Modify Permissions (p).
Parameters:
Returns:
withResourceName
public PermissionScope withResourceName(String resourceName)
Set the resourceName property: The name of resource, normally the container name or the file share name, used by the local user.
Parameters:
Returns:
withService
public PermissionScope withService(String service)
Set the service property: The service used by the local user, e.g. blob, file.
Parameters:
Returns:
Applies to
Azure SDK for Java