Class ConversationCreatedEvent.Builder
-
- All Implemented Interfaces:
public final class ConversationCreatedEvent.Builder
A builder for ConversationCreatedEvent.
-
-
Method Summary
-
-
Method Detail
-
conversation
final ConversationCreatedEvent.Builder conversation(ConversationCreatedEvent.Conversation conversation)
The conversation resource.
-
conversation
final ConversationCreatedEvent.Builder conversation(JsonField<ConversationCreatedEvent.Conversation> conversation)
Sets Builder.conversation to an arbitrary JSON value.
You should usually call Builder.conversation with a well-typed Conversation value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final ConversationCreatedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ConversationCreatedEvent.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.
-
type
final ConversationCreatedEvent.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.created")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ConversationCreatedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationCreatedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationCreatedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationCreatedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationCreatedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationCreatedEvent build()
Returns an immutable instance of ConversationCreatedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.conversation() .eventId()
-
-
-
-