Class MessageBatch
-
- All Implemented Interfaces:
public final class MessageBatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageBatch.BuilderA builder for MessageBatch.
public final classMessageBatch.ProcessingStatusProcessing status of the Message Batch.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique object identifier. final Optional<OffsetDateTime>archivedAt()RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable. final Optional<OffsetDateTime>cancelInitiatedAt()RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. final OffsetDateTimecreatedAt()RFC 3339 datetime string representing the time at which the Message Batch was created. final Optional<OffsetDateTime>endedAt()RFC 3339 datetime string representing the time at which processing for the Message Batch ended. final OffsetDateTimeexpiresAt()RFC 3339 datetime string representing the time at which the Message Batch will expire and end processing, which is 24 hours after creation. final MessageBatch.ProcessingStatusprocessingStatus()Processing status of the Message Batch. final MessageBatchRequestCountsrequestCounts()Tallies requests within the Message Batch, categorized by their status. final Optional<String>resultsUrl()URL to a .jsonlfile containing the results of the Message Batch requests.final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<OffsetDateTime>_cancelInitiatedAt()Returns the raw JSON value of cancelInitiatedAt. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<OffsetDateTime>_endedAt()Returns the raw JSON value of endedAt. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<MessageBatch.ProcessingStatus>_processingStatus()Returns the raw JSON value of processingStatus. final JsonField<MessageBatchRequestCounts>_requestCounts()Returns the raw JSON value of requestCounts. final JsonField<String>_resultsUrl()Returns the raw JSON value of resultsUrl. final Map<String, JsonValue>_additionalProperties()final MessageBatch.BuildertoBuilder()final MessageBatchvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageBatch.Builderbuilder()Returns a mutable builder for constructing an instance of MessageBatch. -
-
Method Detail
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable.
-
cancelInitiatedAt
final Optional<OffsetDateTime> cancelInitiatedAt()
RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. Specified only if cancellation was initiated.
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string representing the time at which the Message Batch was created.
-
endedAt
final Optional<OffsetDateTime> endedAt()
RFC 3339 datetime string representing the time at which processing for the Message Batch ended. Specified only once processing ends.
Processing ends when every request in a Message Batch has either succeeded, errored, canceled, or expired.
-
expiresAt
final OffsetDateTime expiresAt()
RFC 3339 datetime string representing the time at which the Message Batch will expire and end processing, which is 24 hours after creation.
-
processingStatus
final MessageBatch.ProcessingStatus processingStatus()
Processing status of the Message Batch.
-
requestCounts
final MessageBatchRequestCounts requestCounts()
Tallies requests within the Message Batch, categorized by their status.
Requests start as
processingand move to one of the other statuses only once processing of the entire batch ends. The sum of all values always matches the total number of requests in the batch.
-
resultsUrl
final Optional<String> resultsUrl()
URL to a
.jsonlfile containing the results of the Message Batch requests. Specified only once processing ends.Results in the file are not guaranteed to be in the same order as requests. Use the
custom_idfield to match results to requests.
-
_type
final JsonValue _type()
Object type.
For Message Batches, this is always
"message_batch".Expected to always return the following:
JsonValue.from("message_batch")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_cancelInitiatedAt
final JsonField<OffsetDateTime> _cancelInitiatedAt()
Returns the raw JSON value of cancelInitiatedAt.
Unlike cancelInitiatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_endedAt
final JsonField<OffsetDateTime> _endedAt()
Returns the raw JSON value of endedAt.
Unlike endedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<OffsetDateTime> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_processingStatus
final JsonField<MessageBatch.ProcessingStatus> _processingStatus()
Returns the raw JSON value of processingStatus.
Unlike processingStatus, this method doesn't throw if the JSON field has an unexpected type.
-
_requestCounts
final JsonField<MessageBatchRequestCounts> _requestCounts()
Returns the raw JSON value of requestCounts.
Unlike requestCounts, this method doesn't throw if the JSON field has an unexpected type.
-
_resultsUrl
final JsonField<String> _resultsUrl()
Returns the raw JSON value of resultsUrl.
Unlike resultsUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageBatch.Builder toBuilder()
-
validate
final MessageBatch validate()
-
builder
final static MessageBatch.Builder builder()
Returns a mutable builder for constructing an instance of MessageBatch.
The following fields are required:
.id() .archivedAt() .cancelInitiatedAt() .createdAt() .endedAt() .expiresAt() .processingStatus() .requestCounts() .resultsUrl()
-
-
-
-