Class PermissionScope
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.PermissionScope
-
public final class PermissionScope extends Object
The PermissionScope model.
-
-
Constructor Summary
Constructors Constructor Description PermissionScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringpermissions()Get the permissions property: The permissions for the local user.StringresourceName()Get the resourceName property: The name of resource, normally the container name or the file share name, used by the local user.Stringservice()Get the service property: The service used by the local user, e.g.voidvalidate()Validates the instance.PermissionScopewithPermissions(String permissions)Set the permissions property: The permissions for the local user.PermissionScopewithResourceName(String resourceName)Set the resourceName property: The name of resource, normally the container name or the file share name, used by the local user.PermissionScopewithService(String service)Set the service property: The service used by the local user, e.g.
-
-
-
Method Detail
-
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), and Create (c).- Returns:
- the permissions value.
-
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), and Create (c).- Parameters:
permissions- the permissions value to set.- Returns:
- the PermissionScope object itself.
-
service
public String service()
Get the service property: The service used by the local user, e.g. blob, file.- Returns:
- the service value.
-
withService
public PermissionScope withService(String service)
Set the service property: The service used by the local user, e.g. blob, file.- Parameters:
service- the service value to set.- Returns:
- the PermissionScope object itself.
-
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:
- the resourceName value.
-
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:
resourceName- the resourceName value to set.- Returns:
- the PermissionScope object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-