Package com.oracle.bmc.queue.model
Class GetMessage.Builder
- java.lang.Object
-
- com.oracle.bmc.queue.model.GetMessage.Builder
-
- Enclosing class:
- GetMessage
public static class GetMessage.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
id
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.
- Parameters:
id
- the value to set- Returns:
- this builder
-
content
public GetMessage.Builder content(String content)
The content of the message.- Parameters:
content
- the value to set- Returns:
- this builder
-
receipt
public 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.
- Parameters:
receipt
- the value to set- Returns:
- this builder
-
deliveryCount
public GetMessage.Builder deliveryCount(Integer deliveryCount)
The number of times that the message has been delivered to a consumer.- Parameters:
deliveryCount
- the value to set- Returns:
- this builder
-
visibleAfter
public 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
- Parameters:
visibleAfter
- the value to set- Returns:
- this builder
-
expireAfter
public 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
- Parameters:
expireAfter
- the value to set- Returns:
- this builder
-
createdAt
public GetMessage.Builder createdAt(Date createdAt)
The time when message was created in queue.Example: 2018-04-20T00:00:07.405Z
- Parameters:
createdAt
- the value to set- Returns:
- this builder
-
metadata
public GetMessage.Builder metadata(MessageMetadata metadata)
-
build
public GetMessage build()
-
copy
public GetMessage.Builder copy(GetMessage model)
-
-