Class ProtocolSettings
java.lang.Object
com.azure.resourcemanager.storage.models.ProtocolSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProtocolSettings>
public final class ProtocolSettings
extends Object
implements com.azure.json.JsonSerializable<ProtocolSettings>
Protocol settings for file service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProtocolSettings from the JsonReader.nfs()Get the nfs property: Setting for NFS protocol.smb()Get the smb property: Setting for SMB protocol.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNfs(NfsSetting nfs) Set the nfs property: Setting for NFS protocol.withSmb(SmbSetting smb) Set the smb property: Setting for SMB protocol.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ProtocolSettings
public ProtocolSettings()Creates an instance of ProtocolSettings class.
-
-
Method Details
-
smb
-
withSmb
Set the smb property: Setting for SMB protocol.- Parameters:
smb- the smb value to set.- Returns:
- the ProtocolSettings object itself.
-
nfs
-
withNfs
Set the nfs property: Setting for NFS protocol.- Parameters:
nfs- the nfs value to set.- Returns:
- the ProtocolSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ProtocolSettings>- Throws:
IOException
-
fromJson
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.
-