Class ShareNfsSettings

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

public final class ShareNfsSettings extends Object implements com.azure.xml.XmlSerializable<ShareNfsSettings>
Settings for SMB protocol.
  • Constructor Details

    • ShareNfsSettings

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

    • getEncryptionInTransit

      public ShareNfsSettingsEncryptionInTransit getEncryptionInTransit()
      Get the encryptionInTransit property: Enable or disable encryption in transit.
      Returns:
      the encryptionInTransit value.
    • setEncryptionInTransit

      public ShareNfsSettings setEncryptionInTransit(ShareNfsSettingsEncryptionInTransit encryptionInTransit)
      Set the encryptionInTransit property: Enable or disable encryption in transit.
      Parameters:
      encryptionInTransit - the encryptionInTransit value to set.
      Returns:
      the ShareNfsSettings 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<ShareNfsSettings>
      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<ShareNfsSettings>
      Throws:
      XMLStreamException
    • fromXml

      public static ShareNfsSettings fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of ShareNfsSettings from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of ShareNfsSettings 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 ShareNfsSettings.
    • fromXml

      public static ShareNfsSettings fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of ShareNfsSettings 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 ShareNfsSettings 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 ShareNfsSettings.