Partager via


ProtocolSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ProtocolSettings

Implements

public final class ProtocolSettings
implements JsonSerializable<ProtocolSettings>

Protocol settings for file service.

Constructor Summary

Constructor Description
ProtocolSettings()

Creates an instance of ProtocolSettings class.

Method Summary

Modifier and Type Method and Description
static ProtocolSettings fromJson(JsonReader jsonReader)

Reads an instance of ProtocolSettings from the JsonReader.

NfsSetting nfs()

Get the nfs property: Setting for NFS protocol.

SmbSetting smb()

Get the smb property: Setting for SMB protocol.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProtocolSettings withNfs(NfsSetting nfs)

Set the nfs property: Setting for NFS protocol.

ProtocolSettings withSmb(SmbSetting smb)

Set the smb property: Setting for SMB protocol.

Methods inherited from java.lang.Object

Constructor Details

ProtocolSettings

public ProtocolSettings()

Creates an instance of ProtocolSettings class.

Method Details

fromJson

public static ProtocolSettings fromJson(JsonReader jsonReader)

Reads an instance of ProtocolSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ProtocolSettings.

nfs

public NfsSetting nfs()

Get the nfs property: Setting for NFS protocol.

Returns:

the nfs value.

smb

public SmbSetting smb()

Get the smb property: Setting for SMB protocol.

Returns:

the smb value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNfs

public ProtocolSettings withNfs(NfsSetting nfs)

Set the nfs property: Setting for NFS protocol.

Parameters:

nfs - the nfs value to set.

Returns:

the ProtocolSettings object itself.

withSmb

public ProtocolSettings withSmb(SmbSetting smb)

Set the smb property: Setting for SMB protocol.

Parameters:

smb - the smb value to set.

Returns:

the ProtocolSettings object itself.

Applies to