Class ChatKitThread.Builder
-
- All Implemented Interfaces:
public final class ChatKitThread.Builder
A builder for ChatKitThread.
-
-
Method Summary
Modifier and Type Method Description final ChatKitThread.Builder
id(String id)
Identifier of the thread. final ChatKitThread.Builder
id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value. final ChatKitThread.Builder
createdAt(Long createdAt)
Unix timestamp (in seconds) for when the thread was created. final ChatKitThread.Builder
createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value. final ChatKitThread.Builder
object_(JsonValue object_)
Sets the field to an arbitrary JSON value. final ChatKitThread.Builder
status(ChatKitThread.Status status)
Current status for the thread. final ChatKitThread.Builder
status(JsonField<ChatKitThread.Status> status)
Sets Builder.status to an arbitrary JSON value. final ChatKitThread.Builder
status(ChatKitThread.Status.Locked locked)
Alias for calling status with Status.ofLocked(locked)
.final ChatKitThread.Builder
status(ChatKitThread.Status.Closed closed)
Alias for calling status with Status.ofClosed(closed)
.final ChatKitThread.Builder
statusActive()
Alias for calling status with Status.ofActive()
.final ChatKitThread.Builder
lockedStatus(String reason)
Alias for calling status with the following: Status.Locked.builder() .reason(reason) .build()
final ChatKitThread.Builder
lockedStatus(Optional<String> reason)
Alias for calling lockedStatus with reason.orElse(null)
.final ChatKitThread.Builder
closedStatus(String reason)
Alias for calling status with the following: Status.Closed.builder() .reason(reason) .build()
final ChatKitThread.Builder
closedStatus(Optional<String> reason)
Alias for calling closedStatus with reason.orElse(null)
.final ChatKitThread.Builder
title(String title)
Optional human-readable title for the thread. final ChatKitThread.Builder
title(Optional<String> title)
Alias for calling Builder.title with title.orElse(null)
.final ChatKitThread.Builder
title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value. final ChatKitThread.Builder
user(String user)
Free-form string that identifies your end user who owns the thread. final ChatKitThread.Builder
user(JsonField<String> user)
Sets Builder.user to an arbitrary JSON value. final ChatKitThread.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ChatKitThread.Builder
putAdditionalProperty(String key, JsonValue value)
final ChatKitThread.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ChatKitThread.Builder
removeAdditionalProperty(String key)
final ChatKitThread.Builder
removeAllAdditionalProperties(Set<String> keys)
final ChatKitThread
build()
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
active
for 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()
-
-
-
-