Class Message.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiagentruntime.model.Message.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Messagebuild()Message.Buildercontent(MessageContent content)Message.Buildercopy(Message model)Message.Builderrole(Message.Role role)The role of the sender of this message.Message.BuildertimeCreated(Date timeCreated)The date and time that the message was created in the format of an RFC3339 datetime string.
-
-
-
Method Detail
-
role
public Message.Builder role(Message.Role role)
The role of the sender of this message.- Parameters:
role- the value to set- Returns:
- this builder
-
content
public Message.Builder content(MessageContent content)
-
timeCreated
public Message.Builder timeCreated(Date timeCreated)
The date and time that the message was created in the format of an RFC3339 datetime string.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
build
public Message build()
-
copy
public Message.Builder copy(Message model)
-
-