Class ConversationItemCreatedEvent.Builder
-
- All Implemented Interfaces:
public final class ConversationItemCreatedEvent.Builder
A builder for ConversationItemCreatedEvent.
-
-
Method Summary
-
-
Method Detail
-
eventId
final ConversationItemCreatedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ConversationItemCreatedEvent.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.
-
item
final ConversationItemCreatedEvent.Builder item(ConversationItem item)
The item to add to the conversation.
-
item
final ConversationItemCreatedEvent.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 ConversationItemCreatedEvent.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.created")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
previousItemId
final ConversationItemCreatedEvent.Builder previousItemId(String previousItemId)
The ID of the preceding item in the Conversation context, allows the client to understand the order of the conversation. Can be
null
if the item has no predecessor.
-
previousItemId
final ConversationItemCreatedEvent.Builder previousItemId(Optional<String> previousItemId)
Alias for calling Builder.previousItemId with
previousItemId.orElse(null)
.
-
previousItemId
final ConversationItemCreatedEvent.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 ConversationItemCreatedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemCreatedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemCreatedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemCreatedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemCreatedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemCreatedEvent build()
Returns an immutable instance of ConversationItemCreatedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.eventId() .item()
-
-
-
-