Class ShareNfsSettingsEncryptionInTransit

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

public final class ShareNfsSettingsEncryptionInTransit extends Object implements com.azure.xml.XmlSerializable<ShareNfsSettingsEncryptionInTransit>
Enable or disable encryption in transit.
  • Constructor Details

    • ShareNfsSettingsEncryptionInTransit

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

    • isRequired

      public Boolean isRequired()
      Get the required property: If encryption in transit is required.
      Returns:
      the required value.
    • setRequired

      public ShareNfsSettingsEncryptionInTransit setRequired(Boolean required)
      Set the required property: If encryption in transit is required.
      Parameters:
      required - the required value to set.
      Returns:
      the ShareNfsSettingsEncryptionInTransit 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<ShareNfsSettingsEncryptionInTransit>
      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<ShareNfsSettingsEncryptionInTransit>
      Throws:
      XMLStreamException
    • fromXml

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

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