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 Summary
ConstructorsConstructorDescriptionCreates an instance of ShareNfsSettingsEncryptionInTransit class. -
Method Summary
Modifier and TypeMethodDescriptionfromXml(com.azure.xml.XmlReader xmlReader) Reads an instance of ShareNfsSettingsEncryptionInTransit from the XmlReader.Reads an instance of ShareNfsSettingsEncryptionInTransit from the XmlReader.Get the required property: If encryption in transit is required.setRequired(Boolean required) Set the required property: If encryption in transit is required.com.azure.xml.XmlWritertoXml(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
ShareNfsSettingsEncryptionInTransit
public ShareNfsSettingsEncryptionInTransit()Creates an instance of ShareNfsSettingsEncryptionInTransit class.
-
-
Method Details
-
isRequired
Get the required property: If encryption in transit is required.- Returns:
- the required value.
-
setRequired
Set the required property: If encryption in transit is required.- Parameters:
required- the required value to set.- Returns:
- the ShareNfsSettingsEncryptionInTransit object itself.
-
toXml
- Specified by:
toXmlin interfacecom.azure.xml.XmlSerializable<ShareNfsSettingsEncryptionInTransit>- 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<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.
-