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.

SmbSetting smb()

Get the smb property: Setting for SMB protocol.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

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.

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