Package com.oracle.bmc.streaming.model
Class Message.Builder
- java.lang.Object
- 
- com.oracle.bmc.streaming.model.Message.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Messagebuild()Message.Buildercopy(Message model)Message.Builderkey(byte[] key)The key associated with the message, expressed as a byte array.Message.Builderoffset(Long offset)The offset of the message, which uniquely identifies it within the partition.Message.Builderpartition(String partition)The ID of the partition where the message is stored.Message.Builderstream(String stream)The name of the stream that the message belongs to.Message.Buildertimestamp(Date timestamp)The timestamp indicating when the server appended the message to the stream.Message.Buildervalue(byte[] value)The value associated with the message, expressed as a byte array.
 
- 
- 
- 
Method Detail- 
streampublic Message.Builder stream(String stream) The name of the stream that the message belongs to.- Parameters:
- stream- the value to set
- Returns:
- this builder
 
 - 
partitionpublic Message.Builder partition(String partition) The ID of the partition where the message is stored.- Parameters:
- partition- the value to set
- Returns:
- this builder
 
 - 
keypublic Message.Builder key(byte[] key) The key associated with the message, expressed as a byte array.- Parameters:
- key- the value to set
- Returns:
- this builder
 
 - 
valuepublic Message.Builder value(byte[] value) The value associated with the message, expressed as a byte array.- Parameters:
- value- the value to set
- Returns:
- this builder
 
 - 
offsetpublic Message.Builder offset(Long offset) The offset of the message, which uniquely identifies it within the partition.- Parameters:
- offset- the value to set
- Returns:
- this builder
 
 - 
timestamppublic Message.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
 
 - 
buildpublic Message build() 
 - 
copypublic Message.Builder copy(Message model) 
 
- 
 
-