Package com.azure.storage.blob.models
Class BlockList
java.lang.Object
com.azure.storage.blob.models.BlockList
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlockList>
The BlockList model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockList
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of BlockList from the XmlReader.static BlockList
Reads an instance of BlockList from the XmlReader.Get the committedBlocks property: The CommittedBlocks property.Get the uncommittedBlocks property: The UncommittedBlocks property.setCommittedBlocks
(List<Block> committedBlocks) Set the committedBlocks property: The CommittedBlocks property.setUncommittedBlocks
(List<Block> uncommittedBlocks) Set the uncommittedBlocks property: The UncommittedBlocks property.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
BlockList
public BlockList()Creates an instance of BlockList class.
-
-
Method Details
-
getCommittedBlocks
Get the committedBlocks property: The CommittedBlocks property.- Returns:
- the committedBlocks value.
-
setCommittedBlocks
Set the committedBlocks property: The CommittedBlocks property.- Parameters:
committedBlocks
- the committedBlocks value to set.- Returns:
- the BlockList object itself.
-
getUncommittedBlocks
Get the uncommittedBlocks property: The UncommittedBlocks property.- Returns:
- the uncommittedBlocks value.
-
setUncommittedBlocks
Set the uncommittedBlocks property: The UncommittedBlocks property.- Parameters:
uncommittedBlocks
- the uncommittedBlocks value to set.- Returns:
- the BlockList object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<BlockList>
- 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<BlockList>
- Throws:
XMLStreamException
-
fromXml
Reads an instance of BlockList from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of BlockList 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 BlockList.
-
fromXml
public static BlockList fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of BlockList 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 BlockList 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 BlockList.
-