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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareProtocolSettings
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of ShareProtocolSettings from the XmlReader.static ShareProtocolSettings
Reads an instance of ShareProtocolSettings from the XmlReader.getSmb()
Get the smb property: Settings for SMB protocol.setSmb
(ShareSmbSettings smb) Set the smb property: Settings for SMB protocol.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
ShareProtocolSettings
public ShareProtocolSettings()Creates an instance of ShareProtocolSettings class.
-
-
Method Details
-
getSmb
Get the smb property: Settings for SMB protocol.- Returns:
- the smb value.
-
toXml
- Specified by:
toXml
in interfacecom.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 interfacecom.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.
-