public static class PutMessagesResultEntry.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PutMessagesResultEntry |
build() |
PutMessagesResultEntry.Builder |
copy(PutMessagesResultEntry model) |
PutMessagesResultEntry.Builder |
error(String error)
The error code, in case the message was not successfully appended to the stream.
|
PutMessagesResultEntry.Builder |
errorMessage(String errorMessage)
A human-readable error message associated with the error code.
|
PutMessagesResultEntry.Builder |
offset(Long offset)
The offset of the message in the partition.
|
PutMessagesResultEntry.Builder |
partition(String partition)
The ID of the partition where the message was stored.
|
PutMessagesResultEntry.Builder |
timestamp(Date timestamp)
The timestamp indicating when the server appended the message to the stream.
|
public PutMessagesResultEntry.Builder partition(String partition)
The ID of the partition where the message was stored.
partition
- the value to setpublic PutMessagesResultEntry.Builder offset(Long offset)
The offset of the message in the partition.
offset
- the value to setpublic PutMessagesResultEntry.Builder timestamp(Date timestamp)
The timestamp indicating when the server appended the message to the stream.
timestamp
- the value to setpublic PutMessagesResultEntry.Builder error(String error)
The error code, in case the message was not successfully appended to the stream.
error
- the value to setpublic PutMessagesResultEntry.Builder errorMessage(String errorMessage)
A human-readable error message associated with the error code.
errorMessage
- the value to setpublic PutMessagesResultEntry build()
public PutMessagesResultEntry.Builder copy(PutMessagesResultEntry model)
Copyright © 2016–2024. All rights reserved.