public static class GetMessage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GetMessage |
build() |
GetMessage.Builder |
content(String content)
The content of the message.
|
GetMessage.Builder |
copy(GetMessage model) |
GetMessage.Builder |
createdAt(Date createdAt)
The time when message was created in queue.
|
GetMessage.Builder |
deliveryCount(Integer deliveryCount)
The number of times that the message has been delivered to a consumer.
|
GetMessage.Builder |
expireAfter(Date expireAfter)
The time after which the message will be automatically deleted, expressed in RFC
3339 timestamp format.
|
GetMessage.Builder |
id(Long id)
The ID of the message.
|
GetMessage.Builder |
metadata(MessageMetadata metadata) |
GetMessage.Builder |
receipt(String receipt)
A receipt is a base64urlencode opaque token, uniquely representing a message.
|
GetMessage.Builder |
visibleAfter(Date visibleAfter)
The time after which the message will be visible to other consumers, expressed in RFC
3339 timestamp format.
|
public GetMessage.Builder id(Long id)
The ID of the message. This ID is only used for tracing and debugging purposes and isn’t used as a parameter in any request.
id
- the value to setpublic GetMessage.Builder content(String content)
The content of the message.
content
- the value to setpublic GetMessage.Builder receipt(String receipt)
A receipt is a base64urlencode opaque token, uniquely representing a message. The receipt can be used to delete a message or update its visibility.
receipt
- the value to setpublic GetMessage.Builder deliveryCount(Integer deliveryCount)
The number of times that the message has been delivered to a consumer.
deliveryCount
- the value to setpublic GetMessage.Builder visibleAfter(Date visibleAfter)
The time after which the message will be visible to other consumers, expressed in RFC 3339 timestamp format.
Example: 2018-04-20T00:00:07.405Z
visibleAfter
- the value to setpublic GetMessage.Builder expireAfter(Date expireAfter)
The time after which the message will be automatically deleted, expressed in RFC 3339 timestamp format.
Example: 2018-04-20T00:00:07.405Z
expireAfter
- the value to setpublic GetMessage.Builder createdAt(Date createdAt)
The time when message was created in queue.
Example: 2018-04-20T00:00:07.405Z
createdAt
- the value to setpublic GetMessage.Builder metadata(MessageMetadata metadata)
public GetMessage build()
public GetMessage.Builder copy(GetMessage model)
Copyright © 2016–2024. All rights reserved.