Class ShareFileRangeList
java.lang.Object
com.azure.storage.file.share.models.ShareFileRangeList
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<ShareFileRangeList>
public final class ShareFileRangeList
extends Object
implements com.azure.xml.XmlSerializable<ShareFileRangeList>
The list of file ranges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareFileRangeList
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of ShareFileRangeList from the XmlReader.static ShareFileRangeList
Reads an instance of ShareFileRangeList from the XmlReader.Get the clearRanges property: The ClearRanges property.Get the ranges property: The Ranges property.setClearRanges
(List<ClearRange> clearRanges) Set the clearRanges property: The ClearRanges property.Set the ranges property: The Ranges property.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
ShareFileRangeList
public ShareFileRangeList()Creates an instance of ShareFileRangeList class.
-
-
Method Details
-
getRanges
Get the ranges property: The Ranges property.- Returns:
- the ranges value.
-
setRanges
Set the ranges property: The Ranges property.- Parameters:
ranges
- the ranges value to set.- Returns:
- the ShareFileRangeList object itself.
-
getClearRanges
Get the clearRanges property: The ClearRanges property.- Returns:
- the clearRanges value.
-
setClearRanges
Set the clearRanges property: The ClearRanges property.- Parameters:
clearRanges
- the clearRanges value to set.- Returns:
- the ShareFileRangeList object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<ShareFileRangeList>
- 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<ShareFileRangeList>
- Throws:
XMLStreamException
-
fromXml
public static ShareFileRangeList fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException Reads an instance of ShareFileRangeList from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of ShareFileRangeList 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 ShareFileRangeList.
-
fromXml
public static ShareFileRangeList fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of ShareFileRangeList 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 ShareFileRangeList 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 ShareFileRangeList.
-