Package com.azure.storage.queue.models
Class SendMessageResult
java.lang.Object
com.azure.storage.queue.models.SendMessageResult
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<SendMessageResult>
public final class SendMessageResult
extends Object
implements com.azure.xml.XmlSerializable<SendMessageResult>
The object returned in the QueueMessageList array when calling Put Message on a Queue.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SendMessageResult
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of SendMessageResult from the XmlReader.static SendMessageResult
Reads an instance of SendMessageResult from the XmlReader.Get the expirationTime property: The time that the Message will expire and be automatically deleted.Get the insertionTime property: The time the Message was inserted into the Queue.Get the messageId property: The Id of the Message.Get the popReceipt property: This value is required to delete the Message.Get the timeNextVisible property: The time that the message will again become visible in the Queue.setExpirationTime
(OffsetDateTime expirationTime) Set the expirationTime property: The time that the Message will expire and be automatically deleted.setInsertionTime
(OffsetDateTime insertionTime) Set the insertionTime property: The time the Message was inserted into the Queue.setMessageId
(String messageId) Set the messageId property: The Id of the Message.setPopReceipt
(String popReceipt) Set the popReceipt property: This value is required to delete the Message.setTimeNextVisible
(OffsetDateTime timeNextVisible) Set the timeNextVisible property: The time that the message will again become visible in the Queue.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
SendMessageResult
public SendMessageResult()Creates an instance of SendMessageResult class.
-
-
Method Details
-
getMessageId
Get the messageId property: The Id of the Message.- Returns:
- the messageId value.
-
setMessageId
Set the messageId property: The Id of the Message.- Parameters:
messageId
- the messageId value to set.- Returns:
- the SendMessageResult object itself.
-
getInsertionTime
Get the insertionTime property: The time the Message was inserted into the Queue.- Returns:
- the insertionTime value.
-
setInsertionTime
Set the insertionTime property: The time the Message was inserted into the Queue.- Parameters:
insertionTime
- the insertionTime value to set.- Returns:
- the SendMessageResult object itself.
-
getExpirationTime
Get the expirationTime property: The time that the Message will expire and be automatically deleted.- Returns:
- the expirationTime value.
-
setExpirationTime
Set the expirationTime property: The time that the Message will expire and be automatically deleted.- Parameters:
expirationTime
- the expirationTime value to set.- Returns:
- the SendMessageResult object itself.
-
getPopReceipt
Get the popReceipt property: This value is required to delete the Message. If deletion fails using this popreceipt then the message has been dequeued by another client.- Returns:
- the popReceipt value.
-
setPopReceipt
Set the popReceipt property: This value is required to delete the Message. If deletion fails using this popreceipt then the message has been dequeued by another client.- Parameters:
popReceipt
- the popReceipt value to set.- Returns:
- the SendMessageResult object itself.
-
getTimeNextVisible
Get the timeNextVisible property: The time that the message will again become visible in the Queue.- Returns:
- the timeNextVisible value.
-
setTimeNextVisible
Set the timeNextVisible property: The time that the message will again become visible in the Queue.- Parameters:
timeNextVisible
- the timeNextVisible value to set.- Returns:
- the SendMessageResult object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<SendMessageResult>
- 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<SendMessageResult>
- Throws:
XMLStreamException
-
fromXml
public static SendMessageResult fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException Reads an instance of SendMessageResult from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of SendMessageResult 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 SendMessageResult.
-
fromXml
public static SendMessageResult fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of SendMessageResult 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 SendMessageResult 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 SendMessageResult.
-