Class BetaMessageBatch.Builder
-
- All Implemented Interfaces:
public final class BetaMessageBatch.BuilderA builder for BetaMessageBatch.
-
-
Method Summary
Modifier and Type Method Description final BetaMessageBatch.Builderid(String id)Unique object identifier. final BetaMessageBatch.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaMessageBatch.BuilderarchivedAt(OffsetDateTime archivedAt)RFC 3339 datetime string representing the time at which the Message Batch was archived and its results became unavailable. final BetaMessageBatch.BuilderarchivedAt(Optional<OffsetDateTime> archivedAt)Alias for calling Builder.archivedAt with archivedAt.orElse(null).final BetaMessageBatch.BuilderarchivedAt(JsonField<OffsetDateTime> archivedAt)Sets Builder.archivedAt to an arbitrary JSON value. final BetaMessageBatch.BuildercancelInitiatedAt(OffsetDateTime cancelInitiatedAt)RFC 3339 datetime string representing the time at which cancellation was initiated for the Message Batch. final BetaMessageBatch.BuildercancelInitiatedAt(Optional<OffsetDateTime> cancelInitiatedAt)Alias for calling Builder.cancelInitiatedAt with cancelInitiatedAt.orElse(null).final BetaMessageBatch.BuildercancelInitiatedAt(JsonField<OffsetDateTime> cancelInitiatedAt)Sets Builder.cancelInitiatedAt to an arbitrary JSON value. final BetaMessageBatch.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string representing the time at which the Message Batch was created. final BetaMessageBatch.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaMessageBatch.BuilderendedAt(OffsetDateTime endedAt)RFC 3339 datetime string representing the time at which processing for the Message Batch ended. final BetaMessageBatch.BuilderendedAt(Optional<OffsetDateTime> endedAt)Alias for calling Builder.endedAt with endedAt.orElse(null).final BetaMessageBatch.BuilderendedAt(JsonField<OffsetDateTime> endedAt)Sets Builder.endedAt to an arbitrary JSON value. final BetaMessageBatch.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 BetaMessageBatch.BuilderexpiresAt(JsonField<OffsetDateTime> expiresAt)Sets Builder.expiresAt to an arbitrary JSON value. final BetaMessageBatch.BuilderprocessingStatus(BetaMessageBatch.ProcessingStatus processingStatus)Processing status of the Message Batch. final BetaMessageBatch.BuilderprocessingStatus(JsonField<BetaMessageBatch.ProcessingStatus> processingStatus)Sets Builder.processingStatus to an arbitrary JSON value. final BetaMessageBatch.BuilderrequestCounts(BetaMessageBatchRequestCounts requestCounts)Tallies requests within the Message Batch, categorized by their status. final BetaMessageBatch.BuilderrequestCounts(JsonField<BetaMessageBatchRequestCounts> requestCounts)Sets Builder.requestCounts to an arbitrary JSON value. final BetaMessageBatch.BuilderresultsUrl(String resultsUrl)URL to a .jsonlfile containing the results of the Message Batch requests.final BetaMessageBatch.BuilderresultsUrl(Optional<String> resultsUrl)Alias for calling Builder.resultsUrl with resultsUrl.orElse(null).final BetaMessageBatch.BuilderresultsUrl(JsonField<String> resultsUrl)Sets Builder.resultsUrl to an arbitrary JSON value. final BetaMessageBatch.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaMessageBatch.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaMessageBatch.BuilderputAdditionalProperty(String key, JsonValue value)final BetaMessageBatch.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaMessageBatch.BuilderremoveAdditionalProperty(String key)final BetaMessageBatch.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaMessageBatchbuild()Returns an immutable instance of BetaMessageBatch. -
-
Method Detail
-
id
final BetaMessageBatch.Builder id(String id)
Unique object identifier.
The format and length of IDs may change over time.
-
id
final BetaMessageBatch.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaMessageBatch.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 BetaMessageBatch.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaMessageBatch.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cancelInitiatedAt
final BetaMessageBatch.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 BetaMessageBatch.Builder cancelInitiatedAt(Optional<OffsetDateTime> cancelInitiatedAt)
Alias for calling Builder.cancelInitiatedAt with
cancelInitiatedAt.orElse(null).
-
cancelInitiatedAt
final BetaMessageBatch.Builder cancelInitiatedAt(JsonField<OffsetDateTime> cancelInitiatedAt)
Sets Builder.cancelInitiatedAt to an arbitrary JSON value.
You should usually call Builder.cancelInitiatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaMessageBatch.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string representing the time at which the Message Batch was created.
-
createdAt
final BetaMessageBatch.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
endedAt
final BetaMessageBatch.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 BetaMessageBatch.Builder endedAt(Optional<OffsetDateTime> endedAt)
Alias for calling Builder.endedAt with
endedAt.orElse(null).
-
endedAt
final BetaMessageBatch.Builder endedAt(JsonField<OffsetDateTime> endedAt)
Sets Builder.endedAt to an arbitrary JSON value.
You should usually call Builder.endedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiresAt
final BetaMessageBatch.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 BetaMessageBatch.Builder expiresAt(JsonField<OffsetDateTime> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
processingStatus
final BetaMessageBatch.Builder processingStatus(BetaMessageBatch.ProcessingStatus processingStatus)
Processing status of the Message Batch.
-
processingStatus
final BetaMessageBatch.Builder processingStatus(JsonField<BetaMessageBatch.ProcessingStatus> processingStatus)
Sets Builder.processingStatus to an arbitrary JSON value.
You should usually call Builder.processingStatus with a well-typed ProcessingStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
requestCounts
final BetaMessageBatch.Builder requestCounts(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.
-
requestCounts
final BetaMessageBatch.Builder requestCounts(JsonField<BetaMessageBatchRequestCounts> requestCounts)
Sets Builder.requestCounts to an arbitrary JSON value.
You should usually call Builder.requestCounts with a well-typed BetaMessageBatchRequestCounts value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
resultsUrl
final BetaMessageBatch.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 BetaMessageBatch.Builder resultsUrl(Optional<String> resultsUrl)
Alias for calling Builder.resultsUrl with
resultsUrl.orElse(null).
-
resultsUrl
final BetaMessageBatch.Builder resultsUrl(JsonField<String> resultsUrl)
Sets Builder.resultsUrl to an arbitrary JSON value.
You should usually call Builder.resultsUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaMessageBatch.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("message_batch")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMessageBatch.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMessageBatch.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMessageBatch.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMessageBatch.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMessageBatch.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMessageBatch build()
Returns an immutable instance of BetaMessageBatch.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .cancelInitiatedAt() .createdAt() .endedAt() .expiresAt() .processingStatus() .requestCounts() .resultsUrl()
-
-
-
-