Package com.oracle.bmc.streaming.model
Class PutMessagesResultEntry.Builder
- java.lang.Object
-
- com.oracle.bmc.streaming.model.PutMessagesResultEntry.Builder
-
- Enclosing class:
- PutMessagesResultEntry
public static class PutMessagesResultEntry.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutMessagesResultEntrybuild()PutMessagesResultEntry.Buildercopy(PutMessagesResultEntry model)PutMessagesResultEntry.Buildererror(String error)The error code, in case the message was not successfully appended to the stream.PutMessagesResultEntry.BuildererrorMessage(String errorMessage)A human-readable error message associated with the error code.PutMessagesResultEntry.Builderoffset(Long offset)The offset of the message in the partition.PutMessagesResultEntry.Builderpartition(String partition)The ID of the partition where the message was stored.PutMessagesResultEntry.Buildertimestamp(Date timestamp)The timestamp indicating when the server appended the message to the stream.
-
-
-
Method Detail
-
partition
public PutMessagesResultEntry.Builder partition(String partition)
The ID of the partition where the message was stored.- Parameters:
partition- the value to set- Returns:
- this builder
-
offset
public PutMessagesResultEntry.Builder offset(Long offset)
The offset of the message in the partition.- Parameters:
offset- the value to set- Returns:
- this builder
-
timestamp
public PutMessagesResultEntry.Builder timestamp(Date timestamp)
The timestamp indicating when the server appended the message to the stream.- Parameters:
timestamp- the value to set- Returns:
- this builder
-
error
public PutMessagesResultEntry.Builder error(String error)
The error code, in case the message was not successfully appended to the stream.- Parameters:
error- the value to set- Returns:
- this builder
-
errorMessage
public PutMessagesResultEntry.Builder errorMessage(String errorMessage)
A human-readable error message associated with the error code.- Parameters:
errorMessage- the value to set- Returns:
- this builder
-
build
public PutMessagesResultEntry build()
-
copy
public PutMessagesResultEntry.Builder copy(PutMessagesResultEntry model)
-
-