Class QueueItem

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

public final class QueueItem extends Object implements com.azure.xml.XmlSerializable<QueueItem>
An Azure Storage Queue.
  • Constructor Details

    • QueueItem

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

    • getName

      public String getName()
      Get the name property: The name of the Queue.
      Returns:
      the name value.
    • setName

      public QueueItem setName(String name)
      Set the name property: The name of the Queue.
      Parameters:
      name - the name value to set.
      Returns:
      the QueueItem object itself.
    • getMetadata

      public Map<String,String> getMetadata()
      Get the metadata property: Dictionary of <string>.
      Returns:
      the metadata value.
    • setMetadata

      public QueueItem setMetadata(Map<String,String> metadata)
      Set the metadata property: Dictionary of <string>.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the QueueItem 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<QueueItem>
      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<QueueItem>
      Throws:
      XMLStreamException
    • fromXml

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

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