Class ConversationItemCreateEvent.Builder
-
- All Implemented Interfaces:
public final class ConversationItemCreateEvent.Builder
A builder for ConversationItemCreateEvent.
-
-
Method Summary
-
-
Method Detail
-
item
final ConversationItemCreateEvent.Builder item(ConversationItem item)
The item to add to the conversation.
-
item
final ConversationItemCreateEvent.Builder item(JsonField<ConversationItem> item)
Sets Builder.item to an arbitrary JSON value.
You should usually call Builder.item with a well-typed ConversationItem value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ConversationItemCreateEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("conversation.item.create")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final ConversationItemCreateEvent.Builder eventId(String eventId)
Optional client-generated ID used to identify this event.
-
eventId
final ConversationItemCreateEvent.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
previousItemId
final ConversationItemCreateEvent.Builder previousItemId(String previousItemId)
The ID of the preceding item after which the new item will be inserted. If not set, the new item will be appended to the end of the conversation. If set to
root
, the new item will be added to the beginning of the conversation. If set to an existing ID, it allows an item to be inserted mid-conversation. If the ID cannot be found, an error will be returned and the item will not be added.
-
previousItemId
final ConversationItemCreateEvent.Builder previousItemId(JsonField<String> previousItemId)
Sets Builder.previousItemId to an arbitrary JSON value.
You should usually call Builder.previousItemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ConversationItemCreateEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemCreateEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemCreateEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemCreateEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemCreateEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemCreateEvent build()
Returns an immutable instance of ConversationItemCreateEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.item()
-
-
-
-