Aracılığıyla paylaş


UserAccessRight Class

  • java.lang.Object
    • com.azure.resourcemanager.databoxedge.models.UserAccessRight

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 UserAccessRight class.

Method Summary

Modifier and Type Method and Description
ShareAccessType accessType()

Get the accessType property: Type of access to be allowed for the user.

static UserAccessRight fromJson(JsonReader jsonReader)

Reads an instance of UserAccessRight from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String userId()

Get the userId property: User ID (already existing in the device).

void validate()

Validates the instance.

UserAccessRight withAccessType(ShareAccessType accessType)

Set the accessType property: Type of access to be allowed for the user.

UserAccessRight withUserId(String userId)

Set the userId property: User ID (already existing in the device).

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:

the accessType value.

fromJson

public static UserAccessRight fromJson(JsonReader jsonReader)

Reads an instance of UserAccessRight from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UserAccessRight if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userId

public String userId()

Get the userId property: User ID (already existing in the device).

Returns:

the userId value.

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:

accessType - the accessType value to set.

Returns:

the UserAccessRight object itself.

withUserId

public UserAccessRight withUserId(String userId)

Set the userId property: User ID (already existing in the device).

Parameters:

userId - the userId value to set.

Returns:

the UserAccessRight object itself.

Applies to