Class PermissionScope
java.lang.Object
com.azure.resourcemanager.storage.models.PermissionScope
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PermissionScope>
public final class PermissionScope
extends Object
implements com.azure.json.JsonSerializable<PermissionScope>
The PermissionScope model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionScopefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PermissionScope from the JsonReader.Get the permissions property: The permissions for the local user.Get the resourceName property: The name of resource, normally the container name or the file share name, used by the local user.service()Get the service property: The service used by the local user, e.g. blob, file.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPermissions(String permissions) Set the permissions property: The permissions for the local user.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.withService(String service) Set the service property: The service used by the local user, e.g. blob, file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PermissionScope
public PermissionScope()Creates an instance of PermissionScope class.
-
-
Method Details
-
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:
- the permissions value.
-
withPermissions
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:
permissions- the permissions value to set.- Returns:
- the PermissionScope object itself.
-
service
Get the service property: The service used by the local user, e.g. blob, file.- Returns:
- the service value.
-
withService
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PermissionScope>- Throws:
IOException
-
fromJson
Reads an instance of PermissionScope from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PermissionScope if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the PermissionScope.
-