Class BlockList

java.lang.Object
com.azure.storage.blob.models.BlockList
All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlockList>

public final class BlockList extends Object implements com.azure.xml.XmlSerializable<BlockList>
The BlockList model.
  • Constructor Details

    • BlockList

      public BlockList()
      Creates an instance of BlockList class.
  • Method Details

    • getCommittedBlocks

      public List<Block> getCommittedBlocks()
      Get the committedBlocks property: The CommittedBlocks property.
      Returns:
      the committedBlocks value.
    • setCommittedBlocks

      public BlockList setCommittedBlocks(List<Block> committedBlocks)
      Set the committedBlocks property: The CommittedBlocks property.
      Parameters:
      committedBlocks - the committedBlocks value to set.
      Returns:
      the BlockList object itself.
    • getUncommittedBlocks

      public List<Block> getUncommittedBlocks()
      Get the uncommittedBlocks property: The UncommittedBlocks property.
      Returns:
      the uncommittedBlocks value.
    • setUncommittedBlocks

      public BlockList setUncommittedBlocks(List<Block> uncommittedBlocks)
      Set the uncommittedBlocks property: The UncommittedBlocks property.
      Parameters:
      uncommittedBlocks - the uncommittedBlocks value to set.
      Returns:
      the BlockList object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.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 interface com.azure.xml.XmlSerializable<BlockList>
      Throws:
      XMLStreamException
    • fromXml

      public static BlockList fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      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.