CreateAttachmentRequest

public final class CreateAttachmentRequest

Class representing a Nylas attachment object.

Constructors

Link copied to clipboard
public CreateAttachmentRequest CreateAttachmentRequest(@Json(name = "filename") String filename, @Json(name = "content_type") String contentType, InputStream content, @Json(name = "size") Integer size, @Json(name = "is_inline") Boolean isInline, @Json(name = "content_id") String contentId, @Json(name = "content_disposition") String contentDisposition)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final transient InputStream content

The content of the attachment.

Link copied to clipboard
private final String contentDisposition

The content disposition if the attachment is located inline.

Link copied to clipboard
private final String contentId

The content ID of the attachment.

Link copied to clipboard
private final String contentType

The content type of the attachment.

Link copied to clipboard
private final String filename

The filename of the attachment.

Link copied to clipboard
private final Boolean isInline

If it's an inline attachment.

Link copied to clipboard
private final Integer size

The size of the attachment in bytes.

Functions

Link copied to clipboard
public final InputStream getContent()

The content of the attachment.

Link copied to clipboard

The content disposition if the attachment is located inline.

Link copied to clipboard
public final String getContentId()

The content ID of the attachment.

Link copied to clipboard
public final String getContentType()

The content type of the attachment.

Link copied to clipboard
public final String getFilename()

The filename of the attachment.

Link copied to clipboard
public final Integer getSize()

The size of the attachment in bytes.

Link copied to clipboard
public final Boolean isInline()

If it's an inline attachment.