Class Conversation.Builder
-
- All Implemented Interfaces:
public final class Conversation.Builder
A builder for Conversation.
-
-
Method Summary
Modifier and Type Method Description final Conversation.Builder
id(String id)
The unique ID of the conversation. final Conversation.Builder
id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value. final Conversation.Builder
createdAt(Long createdAt)
The time at which the conversation was created, measured in seconds since the Unix epoch. final Conversation.Builder
createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value. final Conversation.Builder
metadata(JsonValue metadata)
Set of 16 key-value pairs that can be attached to an object. final Conversation.Builder
object_(JsonValue object_)
Sets the field to an arbitrary JSON value. final Conversation.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Conversation.Builder
putAdditionalProperty(String key, JsonValue value)
final Conversation.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Conversation.Builder
removeAdditionalProperty(String key)
final Conversation.Builder
removeAllAdditionalProperties(Set<String> keys)
final Conversation
build()
Returns an immutable instance of Conversation. -
-
Method Detail
-
id
final Conversation.Builder id(String id)
The unique ID of the conversation.
-
id
final Conversation.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final Conversation.Builder createdAt(Long createdAt)
The time at which the conversation was created, measured in seconds since the Unix epoch.
-
createdAt
final Conversation.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final Conversation.Builder metadata(JsonValue metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
object_
final Conversation.Builder object_(JsonValue object_)
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")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Conversation.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Conversation.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Conversation.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Conversation.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Conversation.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Conversation build()
Returns an immutable instance of Conversation.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .metadata()
-
-
-
-