Class MessageBatch.Builder
-
- All Implemented Interfaces:
public final class MessageBatch.BuilderA builder for MessageBatch.
-
-
Method Summary
Modifier and Type Method Description final MessageBatch.Builderid(String id)Unique object identifier. final MessageBatch.Builderid(JsonField<String> id)Unique object identifier. final MessageBatch.BuilderarchivedAt(OffsetDateTime archivedAt)RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable. final MessageBatch.BuilderarchivedAt(Optional<OffsetDateTime> archivedAt)RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable. final MessageBatch.BuilderarchivedAt(JsonField<OffsetDateTime> archivedAt)RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable. final MessageBatch.BuildercancelInitiatedAt(OffsetDateTime cancelInitiatedAt)RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. final MessageBatch.BuildercancelInitiatedAt(Optional<OffsetDateTime> cancelInitiatedAt)RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. final MessageBatch.BuildercancelInitiatedAt(JsonField<OffsetDateTime> cancelInitiatedAt)RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. final MessageBatch.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string representing the time at which the Message Batch was created. final MessageBatch.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)RFC 3339 datetime string representing the time at which the Message Batch was created. final MessageBatch.BuilderendedAt(OffsetDateTime endedAt)RFC 3339 datetime string representing the time at which processing for the Message Batch ended. final MessageBatch.BuilderendedAt(Optional<OffsetDateTime> endedAt)RFC 3339 datetime string representing the time at which processing for the Message Batch ended. final MessageBatch.BuilderendedAt(JsonField<OffsetDateTime> endedAt)RFC 3339 datetime string representing the time at which processing for the Message Batch ended. final MessageBatch.BuilderexpiresAt(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 MessageBatch.BuilderexpiresAt(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 MessageBatch.BuilderprocessingStatus(MessageBatch.ProcessingStatus processingStatus)Processing status of the Message Batch. final MessageBatch.BuilderprocessingStatus(JsonField<MessageBatch.ProcessingStatus> processingStatus)Processing status of the Message Batch. final MessageBatch.BuilderrequestCounts(MessageBatchRequestCounts requestCounts)Tallies requests within the Message Batch, categorized by their status. final MessageBatch.BuilderrequestCounts(JsonField<MessageBatchRequestCounts> requestCounts)Tallies requests within the Message Batch, categorized by their status. final MessageBatch.BuilderresultsUrl(String resultsUrl)URL to a .jsonlfile containing the results of the Message Batch requests.final MessageBatch.BuilderresultsUrl(Optional<String> resultsUrl)URL to a .jsonlfile containing the results of the Message Batch requests.final MessageBatch.BuilderresultsUrl(JsonField<String> resultsUrl)URL to a .jsonlfile containing the results of the Message Batch requests.final MessageBatch.Buildertype(MessageBatch.Type type)Object type. final MessageBatch.Buildertype(JsonField<MessageBatch.Type> type)Object type. final MessageBatch.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final MessageBatch.BuilderputAdditionalProperty(String key, JsonValue value)final MessageBatch.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final MessageBatch.BuilderremoveAdditionalProperty(String key)final MessageBatch.BuilderremoveAllAdditionalProperties(Set<String> keys)final MessageBatchbuild()-
-
Method Detail
-
id
final MessageBatch.Builder id(String id)
Unique object identifier.
The format and length of IDs may change over time.
-
id
final MessageBatch.Builder id(JsonField<String> id)
Unique object identifier.
The format and length of IDs may change over time.
-
archivedAt
final MessageBatch.Builder archivedAt(OffsetDateTime archivedAt)
RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable.
-
archivedAt
final MessageBatch.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable.
-
archivedAt
final MessageBatch.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable.
-
cancelInitiatedAt
final MessageBatch.Builder cancelInitiatedAt(OffsetDateTime cancelInitiatedAt)
RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. Specified only if cancellation was initiated.
-
cancelInitiatedAt
final MessageBatch.Builder cancelInitiatedAt(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.
-
cancelInitiatedAt
final MessageBatch.Builder cancelInitiatedAt(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 MessageBatch.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string representing the time at which the Message Batch was created.
-
createdAt
final MessageBatch.Builder createdAt(JsonField<OffsetDateTime> createdAt)
RFC 3339 datetime string representing the time at which the Message Batch was created.
-
endedAt
final MessageBatch.Builder endedAt(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.
-
endedAt
final MessageBatch.Builder endedAt(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.
-
endedAt
final MessageBatch.Builder endedAt(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 MessageBatch.Builder expiresAt(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.
-
expiresAt
final MessageBatch.Builder expiresAt(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 MessageBatch.Builder processingStatus(MessageBatch.ProcessingStatus processingStatus)
Processing status of the Message Batch.
-
processingStatus
final MessageBatch.Builder processingStatus(JsonField<MessageBatch.ProcessingStatus> processingStatus)
Processing status of the Message Batch.
-
requestCounts
final MessageBatch.Builder requestCounts(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.
-
requestCounts
final MessageBatch.Builder requestCounts(JsonField<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 MessageBatch.Builder resultsUrl(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.
-
resultsUrl
final MessageBatch.Builder resultsUrl(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.
-
resultsUrl
final MessageBatch.Builder resultsUrl(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 MessageBatch.Builder type(MessageBatch.Type type)
Object type.
For Message Batches, this is always
"message_batch".
-
type
final MessageBatch.Builder type(JsonField<MessageBatch.Type> type)
Object type.
For Message Batches, this is always
"message_batch".
-
additionalProperties
final MessageBatch.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MessageBatch.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MessageBatch.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MessageBatch.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MessageBatch.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MessageBatch build()
-
-
-
-