Class ChatKitAttachment
-
- All Implemented Interfaces:
public final class ChatKitAttachmentAttachment metadata included on thread items.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatKitAttachment.BuilderA builder for ChatKitAttachment.
public final classChatKitAttachment.TypeAttachment discriminator.
-
Method Summary
Modifier and Type Method Description final Stringid()Identifier for the attachment. final StringmimeType()MIME type of the attachment. final Stringname()Original display name for the attachment. final Optional<String>previewUrl()Preview URL for rendering the attachment inline. final ChatKitAttachment.Typetype()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.BuildertoBuilder()final ChatKitAttachmentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatKitAttachment.Builderbuilder()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()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
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()
-
-
-
-