Aracılığıyla paylaş


ShareAccessRight Class

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

Implements

public final class ShareAccessRight
implements JsonSerializable<ShareAccessRight>

Specifies the mapping between this particular user and the type of access he has on shares on this device.

Constructor Summary

Constructor Description
ShareAccessRight()

Creates an instance of ShareAccessRight class.

Method Summary

Modifier and Type Method and Description
ShareAccessType accessType()

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

static ShareAccessRight fromJson(JsonReader jsonReader)

Reads an instance of ShareAccessRight from the JsonReader.

String shareId()

Get the shareId property: The share ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ShareAccessRight withAccessType(ShareAccessType accessType)

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

ShareAccessRight withShareId(String shareId)

Set the shareId property: The share ID.

Methods inherited from java.lang.Object

Constructor Details

ShareAccessRight

public ShareAccessRight()

Creates an instance of ShareAccessRight class.

Method Details

accessType

public ShareAccessType accessType()

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

Returns:

the accessType value.

fromJson

public static ShareAccessRight fromJson(JsonReader jsonReader)

Reads an instance of ShareAccessRight from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ShareAccessRight 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.

shareId

public String shareId()

Get the shareId property: The share ID.

Returns:

the shareId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccessType

public ShareAccessRight withAccessType(ShareAccessType accessType)

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

Parameters:

accessType - the accessType value to set.

Returns:

the ShareAccessRight object itself.

withShareId

public ShareAccessRight withShareId(String shareId)

Set the shareId property: The share ID.

Parameters:

shareId - the shareId value to set.

Returns:

the ShareAccessRight object itself.

Applies to