Class ChatKitAttachment
-
- All Implemented Interfaces:
public final class ChatKitAttachment
Attachment metadata included on thread items.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatKitAttachment.Builder
A builder for ChatKitAttachment.
public final class
ChatKitAttachment.Type
Attachment discriminator.
-
Method Summary
Modifier and Type Method Description final String
id()
Identifier for the attachment. final String
mimeType()
MIME type of the attachment. final String
name()
Original display name for the attachment. final Optional<String>
previewUrl()
Preview URL for rendering the attachment inline. final ChatKitAttachment.Type
type()
Attachment discriminator. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<String>
_mimeType()
Returns the raw JSON value of mimeType. final JsonField<String>
_name()
Returns the raw JSON value of name. final JsonField<String>
_previewUrl()
Returns the raw JSON value of previewUrl. final JsonField<ChatKitAttachment.Type>
_type()
Returns the raw JSON value of type. final Map<String, JsonValue>
_additionalProperties()
final ChatKitAttachment.Builder
toBuilder()
final ChatKitAttachment
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatKitAttachment.Builder
builder()
Returns a mutable builder for constructing an instance of ChatKitAttachment. -
-
Method Detail
-
previewUrl
final Optional<String> previewUrl()
Preview URL for rendering the attachment inline.
-
type
final ChatKitAttachment.Type type()
Attachment discriminator.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_mimeType
final JsonField<String> _mimeType()
Returns the raw JSON value of mimeType.
Unlike mimeType, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_previewUrl
final JsonField<String> _previewUrl()
Returns the raw JSON value of previewUrl.
Unlike previewUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<ChatKitAttachment.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatKitAttachment.Builder toBuilder()
-
validate
final ChatKitAttachment validate()
-
builder
final static ChatKitAttachment.Builder builder()
Returns a mutable builder for constructing an instance of ChatKitAttachment.
The following fields are required:
.id() .mimeType() .name() .previewUrl() .type()
-
-
-
-