Attachment

public final class Attachment

Class representation of a Nylas attachment object

Constructors

Link copied to clipboard
public Attachment Attachment(@Json(name = "id") String id, @Json(name = "grant_id") String grantId, @Json(name = "filename") String filename, @Json(name = "content_type") String contentType, @Json(name = "size") Integer size, @Json(name = "is_inline") Boolean isInline, @Json(name = "content_id") String contentId, @Json(name = "content_disposition") Long contentDisposition)

Properties

Link copied to clipboard
private final Long 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 String grantId

Nylas grant ID that is now successfully created.

Link copied to clipboard
private final String id

Globally unique object identifier.

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 Long getContentDisposition()

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 String getGrantId()

Nylas grant ID that is now successfully created.

Link copied to clipboard
public final String getId()

Globally unique object identifier.

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.