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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareNfsSettingsfromXml(com.azure.xml.XmlReader xmlReader) Reads an instance of ShareNfsSettings from the XmlReader.static ShareNfsSettingsReads an instance of ShareNfsSettings from the XmlReader.Get the encryptionInTransit property: Enable or disable encryption in transit.setEncryptionInTransit(ShareNfsSettingsEncryptionInTransit encryptionInTransit) Set the encryptionInTransit property: Enable or disable encryption in transit.com.azure.xml.XmlWritertoXml(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
ShareNfsSettings
public ShareNfsSettings()Creates an instance of ShareNfsSettings class.
-
-
Method Details
-
getEncryptionInTransit
Get the encryptionInTransit property: Enable or disable encryption in transit.- Returns:
- the encryptionInTransit value.
-
toXml
- Specified by:
toXmlin interfacecom.azure.xml.XmlSerializable<ShareNfsSettings>- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXmlin interfacecom.azure.xml.XmlSerializable<ShareNfsSettings>- Throws:
XMLStreamException
-
fromXml
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.
-