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 Details

    • ProtocolSettings

      public ProtocolSettings()
      Creates an instance of ProtocolSettings class.
  • Method Details

    • smb

      public SmbSetting smb()
      Get the smb property: Setting for SMB protocol.
      Returns:
      the smb value.
    • 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.
    • nfs

      public NfsSetting nfs()
      Get the nfs property: Setting for NFS protocol.
      Returns:
      the nfs value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ProtocolSettings>
      Throws:
      IOException
    • fromJson

      public static ProtocolSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.