Aracılığıyla paylaş


ClientAccessRight Class

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

Implements

public final class ClientAccessRight
implements JsonSerializable<ClientAccessRight>

The mapping between a particular client IP and the type of access client has on the NFS share.

Constructor Summary

Constructor Description
ClientAccessRight()

Creates an instance of ClientAccessRight class.

Method Summary

Modifier and Type Method and Description
ClientPermissionType accessPermission()

Get the accessPermission property: Type of access to be allowed for the client.

String client()

Get the client property: IP of the client.

static ClientAccessRight fromJson(JsonReader jsonReader)

Reads an instance of ClientAccessRight from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClientAccessRight withAccessPermission(ClientPermissionType accessPermission)

Set the accessPermission property: Type of access to be allowed for the client.

ClientAccessRight withClient(String client)

Set the client property: IP of the client.

Methods inherited from java.lang.Object

Constructor Details

ClientAccessRight

public ClientAccessRight()

Creates an instance of ClientAccessRight class.

Method Details

accessPermission

public ClientPermissionType accessPermission()

Get the accessPermission property: Type of access to be allowed for the client.

Returns:

the accessPermission value.

client

public String client()

Get the client property: IP of the client.

Returns:

the client value.

fromJson

public static ClientAccessRight fromJson(JsonReader jsonReader)

Reads an instance of ClientAccessRight from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClientAccessRight 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:

validate

public void validate()

Validates the instance.

withAccessPermission

public ClientAccessRight withAccessPermission(ClientPermissionType accessPermission)

Set the accessPermission property: Type of access to be allowed for the client.

Parameters:

accessPermission - the accessPermission value to set.

Returns:

the ClientAccessRight object itself.

withClient

public ClientAccessRight withClient(String client)

Set the client property: IP of the client.

Parameters:

client - the client value to set.

Returns:

the ClientAccessRight object itself.

Applies to