Class ChatKitThreadItemList.Data.ChatKitTask.Builder
-
- All Implemented Interfaces:
public final class ChatKitThreadItemList.Data.ChatKitTask.Builder
A builder for ChatKitTask.
-
-
Method Summary
-
-
Method Detail
-
id
final ChatKitThreadItemList.Data.ChatKitTask.Builder id(String id)
Identifier of the thread item.
-
id
final ChatKitThreadItemList.Data.ChatKitTask.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 ChatKitThreadItemList.Data.ChatKitTask.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) for when the item was created.
-
createdAt
final ChatKitThreadItemList.Data.ChatKitTask.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.
-
heading
final ChatKitThreadItemList.Data.ChatKitTask.Builder heading(String heading)
Optional heading for the task. Defaults to null when not provided.
-
heading
final ChatKitThreadItemList.Data.ChatKitTask.Builder heading(Optional<String> heading)
Alias for calling Builder.heading with
heading.orElse(null)
.
-
heading
final ChatKitThreadItemList.Data.ChatKitTask.Builder heading(JsonField<String> heading)
Sets Builder.heading to an arbitrary JSON value.
You should usually call Builder.heading with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final ChatKitThreadItemList.Data.ChatKitTask.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("chatkit.thread_item")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
summary
final ChatKitThreadItemList.Data.ChatKitTask.Builder summary(String summary)
Optional summary that describes the task. Defaults to null when omitted.
-
summary
final ChatKitThreadItemList.Data.ChatKitTask.Builder summary(Optional<String> summary)
Alias for calling Builder.summary with
summary.orElse(null)
.
-
summary
final ChatKitThreadItemList.Data.ChatKitTask.Builder summary(JsonField<String> summary)
Sets Builder.summary to an arbitrary JSON value.
You should usually call Builder.summary with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
taskType
final ChatKitThreadItemList.Data.ChatKitTask.Builder taskType(ChatKitThreadItemList.Data.ChatKitTask.TaskType taskType)
Subtype for the task.
-
taskType
final ChatKitThreadItemList.Data.ChatKitTask.Builder taskType(JsonField<ChatKitThreadItemList.Data.ChatKitTask.TaskType> taskType)
Sets Builder.taskType to an arbitrary JSON value.
You should usually call Builder.taskType with a well-typed TaskType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
threadId
final ChatKitThreadItemList.Data.ChatKitTask.Builder threadId(String threadId)
Identifier of the parent thread.
-
threadId
final ChatKitThreadItemList.Data.ChatKitTask.Builder threadId(JsonField<String> threadId)
Sets Builder.threadId to an arbitrary JSON value.
You should usually call Builder.threadId 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 ChatKitThreadItemList.Data.ChatKitTask.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("chatkit.task")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatKitThreadItemList.Data.ChatKitTask.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatKitThreadItemList.Data.ChatKitTask.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatKitThreadItemList.Data.ChatKitTask.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatKitThreadItemList.Data.ChatKitTask.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatKitThreadItemList.Data.ChatKitTask.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatKitThreadItemList.Data.ChatKitTask build()
Returns an immutable instance of ChatKitTask.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .heading() .summary() .taskType() .threadId()
-
-
-
-