BatchEventResult

public final class BatchEventResult

Class representation of the result of a single operation in an events batch request.

Constructors

Link copied to clipboard
public BatchEventResult BatchEventResult(@Json(name = "status") Integer status, @Json(name = "data") Event data, @Json(name = "error") NylasApiError error, @Json(name = "retry_after") Double retryAfter, @Json(name = "provider_event_created") Boolean providerEventCreated)

Properties

Link copied to clipboard
private final Event data

The created or updated event. Null for delete operations and failed operations.

Link copied to clipboard
private final NylasApiError error

The error, if this operation failed. Only NylasApiError.type, NylasApiError.message and NylasApiError.providerError are set; use status for this operation's HTTP status and BatchEventsResponse.requestId for the request ID.

Link copied to clipboard

True if the provider created the event before a later step failed. Retrying this operation would create a duplicate event.

Link copied to clipboard
private final Double retryAfter

Seconds to wait before retrying, if the provider throttled this operation.

Link copied to clipboard
private final Integer status

The HTTP status of this operation.

Functions

Link copied to clipboard
public final Event getData()

The created or updated event. Null for delete operations and failed operations.

Link copied to clipboard
public final NylasApiError getError()

The error, if this operation failed. Only NylasApiError.type, NylasApiError.message and NylasApiError.providerError are set; use status for this operation's HTTP status and BatchEventsResponse.requestId for the request ID.

Link copied to clipboard

True if the provider created the event before a later step failed. Retrying this operation would create a duplicate event.

Link copied to clipboard
public final Double getRetryAfter()

Seconds to wait before retrying, if the provider throttled this operation.

Link copied to clipboard
public final Integer getStatus()

The HTTP status of this operation.