Class ChatKitThread.Builder
-
- All Implemented Interfaces:
public final class ChatKitThread.BuilderA builder for ChatKitThread.
-
-
Method Summary
Modifier and Type Method Description final ChatKitThread.Builderid(String id)Identifier of the thread. final ChatKitThread.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ChatKitThread.BuildercreatedAt(Long createdAt)Unix timestamp (in seconds) for when the thread was created. final ChatKitThread.BuildercreatedAt(JsonField<Long> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final ChatKitThread.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final ChatKitThread.Builderstatus(ChatKitThread.Status status)Current status for the thread. final ChatKitThread.Builderstatus(JsonField<ChatKitThread.Status> status)Sets Builder.status to an arbitrary JSON value. final ChatKitThread.Builderstatus(ChatKitThread.Status.Locked locked)Alias for calling status with Status.ofLocked(locked).final ChatKitThread.Builderstatus(ChatKitThread.Status.Closed closed)Alias for calling status with Status.ofClosed(closed).final ChatKitThread.BuilderstatusActive()Alias for calling status with Status.ofActive().final ChatKitThread.BuilderlockedStatus(String reason)Alias for calling status with the following: Status.Locked.builder() .reason(reason) .build()final ChatKitThread.BuilderlockedStatus(Optional<String> reason)Alias for calling lockedStatus with reason.orElse(null).final ChatKitThread.BuilderclosedStatus(String reason)Alias for calling status with the following: Status.Closed.builder() .reason(reason) .build()final ChatKitThread.BuilderclosedStatus(Optional<String> reason)Alias for calling closedStatus with reason.orElse(null).final ChatKitThread.Buildertitle(String title)Optional human-readable title for the thread. final ChatKitThread.Buildertitle(Optional<String> title)Alias for calling Builder.title with title.orElse(null).final ChatKitThread.Buildertitle(JsonField<String> title)Sets Builder.title to an arbitrary JSON value. final ChatKitThread.Builderuser(String user)Free-form string that identifies your end user who owns the thread. final ChatKitThread.Builderuser(JsonField<String> user)Sets Builder.user to an arbitrary JSON value. final ChatKitThread.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ChatKitThread.BuilderputAdditionalProperty(String key, JsonValue value)final ChatKitThread.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ChatKitThread.BuilderremoveAdditionalProperty(String key)final ChatKitThread.BuilderremoveAllAdditionalProperties(Set<String> keys)final ChatKitThreadbuild()Returns an immutable instance of ChatKitThread. -
-
Method Detail
-
id
final ChatKitThread.Builder id(String id)
Identifier of the thread.
-
id
final ChatKitThread.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 ChatKitThread.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) for when the thread was created.
-
createdAt
final ChatKitThread.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.
-
object_
final ChatKitThread.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")This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final ChatKitThread.Builder status(ChatKitThread.Status status)
Current status for the thread. Defaults to
activefor newly created threads.
-
status
final ChatKitThread.Builder status(JsonField<ChatKitThread.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final ChatKitThread.Builder status(ChatKitThread.Status.Locked locked)
Alias for calling status with
Status.ofLocked(locked).
-
status
final ChatKitThread.Builder status(ChatKitThread.Status.Closed closed)
Alias for calling status with
Status.ofClosed(closed).
-
statusActive
final ChatKitThread.Builder statusActive()
Alias for calling status with
Status.ofActive().
-
lockedStatus
final ChatKitThread.Builder lockedStatus(String reason)
Alias for calling status with the following:
Status.Locked.builder() .reason(reason) .build()
-
lockedStatus
final ChatKitThread.Builder lockedStatus(Optional<String> reason)
Alias for calling lockedStatus with
reason.orElse(null).
-
closedStatus
final ChatKitThread.Builder closedStatus(String reason)
Alias for calling status with the following:
Status.Closed.builder() .reason(reason) .build()
-
closedStatus
final ChatKitThread.Builder closedStatus(Optional<String> reason)
Alias for calling closedStatus with
reason.orElse(null).
-
title
final ChatKitThread.Builder title(String title)
Optional human-readable title for the thread. Defaults to null when no title has been generated.
-
title
final ChatKitThread.Builder title(Optional<String> title)
Alias for calling Builder.title with
title.orElse(null).
-
title
final ChatKitThread.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
user
final ChatKitThread.Builder user(String user)
Free-form string that identifies your end user who owns the thread.
-
user
final ChatKitThread.Builder user(JsonField<String> user)
Sets Builder.user to an arbitrary JSON value.
You should usually call Builder.user 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 ChatKitThread.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatKitThread.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatKitThread.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatKitThread.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatKitThread.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatKitThread build()
Returns an immutable instance of ChatKitThread.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .status() .title() .user()
-
-
-
-