Class ClearRange

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

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

    Constructors
    Constructor
    Description
    Creates an instance of ClearRange class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static ClearRange
    fromXml(com.azure.xml.XmlReader xmlReader)
    Reads an instance of ClearRange from the XmlReader.
    static ClearRange
    fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName)
    Reads an instance of ClearRange from the XmlReader.
    long
    Get the end property: The End property.
    long
    Get the start property: The Start property.
    setEnd(long end)
    Set the end property: The End property.
    setStart(long start)
    Set the start property: The Start property.
    com.azure.xml.XmlWriter
    toXml(com.azure.xml.XmlWriter xmlWriter)
     
    com.azure.xml.XmlWriter
    toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClearRange

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

    • getStart

      public long getStart()
      Get the start property: The Start property.
      Returns:
      the start value.
    • setStart

      public ClearRange setStart(long start)
      Set the start property: The Start property.
      Parameters:
      start - the start value to set.
      Returns:
      the ClearRange object itself.
    • getEnd

      public long getEnd()
      Get the end property: The End property.
      Returns:
      the end value.
    • setEnd

      public ClearRange setEnd(long end)
      Set the end property: The End property.
      Parameters:
      end - the end value to set.
      Returns:
      the ClearRange 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<ClearRange>
      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<ClearRange>
      Throws:
      XMLStreamException
    • fromXml

      public static ClearRange fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of ClearRange from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of ClearRange 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 ClearRange.
    • fromXml

      public static ClearRange fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of ClearRange 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 ClearRange 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 ClearRange.