Class BetaMessageBatchIndividualResponse.Builder
-
- All Implemented Interfaces:
public final class BetaMessageBatchIndividualResponse.BuilderA builder for BetaMessageBatchIndividualResponse.
-
-
Method Summary
-
-
Method Detail
-
customId
final BetaMessageBatchIndividualResponse.Builder customId(String customId)
Developer-provided ID created for each request in a Message Batch. Useful for matching results to requests, as results may be given out of request order.
Must be unique for each request within the Message Batch.
-
customId
final BetaMessageBatchIndividualResponse.Builder customId(JsonField<String> customId)
Developer-provided ID created for each request in a Message Batch. Useful for matching results to requests, as results may be given out of request order.
Must be unique for each request within the Message Batch.
-
result
final BetaMessageBatchIndividualResponse.Builder result(BetaMessageBatchResult result)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
result
final BetaMessageBatchIndividualResponse.Builder result(JsonField<BetaMessageBatchResult> result)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
result
final BetaMessageBatchIndividualResponse.Builder result(BetaMessageBatchSucceededResult succeeded)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
result
final BetaMessageBatchIndividualResponse.Builder result(BetaMessageBatchErroredResult errored)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
result
final BetaMessageBatchIndividualResponse.Builder result(BetaMessageBatchCanceledResult canceled)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
result
final BetaMessageBatchIndividualResponse.Builder result(BetaMessageBatchExpiredResult expired)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
succeededResult
final BetaMessageBatchIndividualResponse.Builder succeededResult(BetaMessage message)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
erroredResult
final BetaMessageBatchIndividualResponse.Builder erroredResult(BetaErrorResponse error)
Processing result for this request.
Contains a Message output if processing was successful, an error response if processing failed, or the reason why processing was not attempted, such as cancellation or expiration.
-
additionalProperties
final BetaMessageBatchIndividualResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMessageBatchIndividualResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMessageBatchIndividualResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMessageBatchIndividualResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMessageBatchIndividualResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMessageBatchIndividualResponse build()
-
-
-
-