Class BetaMessageBatch
-
- All Implemented Interfaces:
public final class BetaMessageBatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMessageBatch.BuilderA builder for BetaMessageBatch.
public final classBetaMessageBatch.ProcessingStatusProcessing status of the Message Batch.
public final classBetaMessageBatch.TypeObject type.
For Message Batches, this is always
"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 BetaMessageBatch.ProcessingStatusprocessingStatus()Processing status of the Message Batch. final BetaMessageBatchRequestCountsrequestCounts()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 BetaMessageBatch.Typetype()Object type. final JsonField<String>_id()Unique object identifier. final JsonField<OffsetDateTime>_archivedAt()RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable. final JsonField<OffsetDateTime>_cancelInitiatedAt()RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. final JsonField<OffsetDateTime>_createdAt()RFC 3339 datetime string representing the time at which the Message Batch was created. final JsonField<OffsetDateTime>_endedAt()RFC 3339 datetime string representing the time at which processing for the Message Batch ended. final JsonField<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. final JsonField<BetaMessageBatch.ProcessingStatus>_processingStatus()Processing status of the Message Batch. final JsonField<BetaMessageBatchRequestCounts>_requestCounts()Tallies requests within the Message Batch, categorized by their status. final JsonField<String>_resultsUrl()URL to a .jsonlfile containing the results of the Message Batch requests.final JsonField<BetaMessageBatch.Type>_type()Object type. final Map<String, JsonValue>_additionalProperties()final BetaMessageBatchvalidate()final BetaMessageBatch.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMessageBatch.Builderbuilder()-
-
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 BetaMessageBatch.ProcessingStatus processingStatus()
Processing status of the Message Batch.
-
requestCounts
final BetaMessageBatchRequestCounts 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 BetaMessageBatch.Type type()
Object type.
For Message Batches, this is always
"message_batch".
-
_id
final JsonField<String> _id()
Unique object identifier.
The format and length of IDs may change over time.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable.
-
_cancelInitiatedAt
final JsonField<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 JsonField<OffsetDateTime> _createdAt()
RFC 3339 datetime string representing the time at which the Message Batch was created.
-
_endedAt
final JsonField<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 JsonField<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 JsonField<BetaMessageBatch.ProcessingStatus> _processingStatus()
Processing status of the Message Batch.
-
_requestCounts
final JsonField<BetaMessageBatchRequestCounts> _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 JsonField<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 JsonField<BetaMessageBatch.Type> _type()
Object type.
For Message Batches, this is always
"message_batch".
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final BetaMessageBatch validate()
-
toBuilder
final BetaMessageBatch.Builder toBuilder()
-
builder
final static BetaMessageBatch.Builder builder()
-
-
-
-