Class ShareProtocolSettings

java.lang.Object
com.azure.storage.file.share.models.ShareProtocolSettings
All Implemented Interfaces:
com.azure.xml.XmlSerializable<ShareProtocolSettings>

public final class ShareProtocolSettings extends Object implements com.azure.xml.XmlSerializable<ShareProtocolSettings>
Protocol settings.
  • Constructor Details

    • ShareProtocolSettings

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

    • getSmb

      public ShareSmbSettings getSmb()
      Get the smb property: Settings for SMB protocol.
      Returns:
      the smb value.
    • setSmb

      Set the smb property: Settings for SMB protocol.
      Parameters:
      smb - the smb value to set.
      Returns:
      the ShareProtocolSettings object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<ShareProtocolSettings>
      Throws:
      XMLStreamException
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<ShareProtocolSettings>
      Throws:
      XMLStreamException
    • fromXml

      public static ShareProtocolSettings fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of ShareProtocolSettings from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of ShareProtocolSettings if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the ShareProtocolSettings.
    • fromXml

      public static ShareProtocolSettings fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of ShareProtocolSettings from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.
      Returns:
      An instance of ShareProtocolSettings if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the ShareProtocolSettings.