public final class PeekedMessageItem extends Object
| Constructor and Description |
|---|
PeekedMessageItem() |
| Modifier and Type | Method and Description |
|---|---|
com.azure.core.util.BinaryData |
getBody()
Get the body property: The content of the Message.
|
long |
getDequeueCount()
Get the dequeueCount property: The number of times the message has been dequeued.
|
OffsetDateTime |
getExpirationTime()
Get the expirationTime property: The time that the Message will expire and be automatically deleted.
|
OffsetDateTime |
getInsertionTime()
Get the insertionTime property: The time the Message was inserted into the Queue.
|
String |
getMessageId()
Get the messageId property: The Id of the Message.
|
String |
getMessageText()
Deprecated.
use
PeekedMessageItem.getBody() instead. |
PeekedMessageItem |
setBody(com.azure.core.util.BinaryData body)
Set the body property: The content of the Message.
|
PeekedMessageItem |
setDequeueCount(long dequeueCount)
Set the dequeueCount property: The number of times the message has been dequeued.
|
PeekedMessageItem |
setExpirationTime(OffsetDateTime expirationTime)
Set the expirationTime property: The time that the Message will expire and be automatically deleted.
|
PeekedMessageItem |
setInsertionTime(OffsetDateTime insertionTime)
Set the insertionTime property: The time the Message was inserted into the Queue.
|
PeekedMessageItem |
setMessageId(String messageId)
Set the messageId property: The Id of the Message.
|
PeekedMessageItem |
setMessageText(String messageText)
Deprecated.
use
PeekedMessageItem.setBody(BinaryData) instead. |
public String getMessageId()
public PeekedMessageItem setMessageId(String messageId)
messageId - the messageId value to set.public OffsetDateTime getInsertionTime()
public PeekedMessageItem setInsertionTime(OffsetDateTime insertionTime)
insertionTime - the insertionTime value to set.public OffsetDateTime getExpirationTime()
public PeekedMessageItem setExpirationTime(OffsetDateTime expirationTime)
expirationTime - the expirationTime value to set.public long getDequeueCount()
public PeekedMessageItem setDequeueCount(long dequeueCount)
dequeueCount - the dequeueCount value to set.@Deprecated public String getMessageText()
PeekedMessageItem.getBody() instead.@Deprecated public PeekedMessageItem setMessageText(String messageText)
PeekedMessageItem.setBody(BinaryData) instead.messageText - the messageText value to set.public com.azure.core.util.BinaryData getBody()
public PeekedMessageItem setBody(com.azure.core.util.BinaryData body)
body - the body value to set.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.