Package com.azure.storage.queue.models
Class QueueItem
java.lang.Object
com.azure.storage.queue.models.QueueItem
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<QueueItem>
An Azure Storage Queue.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueueItem
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of QueueItem from the XmlReader.static QueueItem
Reads an instance of QueueItem from the XmlReader.Get the metadata property: Dictionary of <string>.getName()
Get the name property: The name of the Queue.setMetadata
(Map<String, String> metadata) Set the metadata property: Dictionary of <string>.Set the name property: The name of the Queue.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
QueueItem
public QueueItem()Creates an instance of QueueItem class.
-
-
Method Details
-
getName
Get the name property: The name of the Queue.- Returns:
- the name value.
-
setName
Set the name property: The name of the Queue.- Parameters:
name
- the name value to set.- Returns:
- the QueueItem object itself.
-
getMetadata
Get the metadata property: Dictionary of <string>.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: Dictionary of <string>.- Parameters:
metadata
- the metadata value to set.- Returns:
- the QueueItem object itself.
-
toXml
- Specified by:
toXml
in interfacecom.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 interfacecom.azure.xml.XmlSerializable<QueueItem>
- Throws:
XMLStreamException
-
fromXml
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.
-