UserAccessRight Class
- java.
lang. Object - com.
azure. resourcemanager. databoxedge. models. UserAccessRight
- com.
Implements
public final class UserAccessRight
implements JsonSerializable<UserAccessRight>
The mapping between a particular user and the access type on the SMB share.
Constructor Summary
| Constructor | Description |
|---|---|
| UserAccessRight() |
Creates an instance of User |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Share |
accessType()
Get the access |
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
userId()
Get the user |
| void |
validate()
Validates the instance. |
|
User |
withAccessType(ShareAccessType accessType)
Set the access |
|
User |
withUserId(String userId)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
UserAccessRight
public UserAccessRight()
Creates an instance of UserAccessRight class.
Method Details
accessType
public ShareAccessType accessType()
Get the accessType property: Type of access to be allowed for the user.
Returns:
fromJson
public static UserAccessRight fromJson(JsonReader jsonReader)
Reads an instance of UserAccessRight from the JsonReader.
Parameters:
Returns:
Throws:
toJson
userId
public String userId()
Get the userId property: User ID (already existing in the device).
Returns:
validate
public void validate()
Validates the instance.
withAccessType
public UserAccessRight withAccessType(ShareAccessType accessType)
Set the accessType property: Type of access to be allowed for the user.
Parameters:
Returns:
withUserId
public UserAccessRight withUserId(String userId)
Set the userId property: User ID (already existing in the device).
Parameters:
Returns: