Class MessageBatchIndividualResponse.Builder
-
- All Implemented Interfaces:
public final class MessageBatchIndividualResponse.BuilderA builder for MessageBatchIndividualResponse.
-
-
Method Summary
-
-
Method Detail
-
customId
final MessageBatchIndividualResponse.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 MessageBatchIndividualResponse.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 MessageBatchIndividualResponse.Builder result(MessageBatchResult 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 MessageBatchIndividualResponse.Builder result(JsonField<MessageBatchResult> 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 MessageBatchIndividualResponse.Builder result(MessageBatchSucceededResult 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 MessageBatchIndividualResponse.Builder result(MessageBatchErroredResult 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 MessageBatchIndividualResponse.Builder result(MessageBatchCanceledResult 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 MessageBatchIndividualResponse.Builder result(MessageBatchExpiredResult 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 MessageBatchIndividualResponse.Builder succeededResult(Message 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 MessageBatchIndividualResponse.Builder erroredResult(ErrorResponse 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 MessageBatchIndividualResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MessageBatchIndividualResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MessageBatchIndividualResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MessageBatchIndividualResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MessageBatchIndividualResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MessageBatchIndividualResponse build()
-
-
-
-