Class BetaMessageBatchIndividualResponse
-
- All Implemented Interfaces:
public final class BetaMessageBatchIndividualResponseThis is a single line in the response
.jsonlfile and does not represent the response as a whole.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMessageBatchIndividualResponse.BuilderA builder for BetaMessageBatchIndividualResponse.
-
Method Summary
Modifier and Type Method Description final StringcustomId()Developer-provided ID created for each request in a Message Batch. final BetaMessageBatchResultresult()Processing result for this request. final JsonField<String>_customId()Returns the raw JSON value of customId. final JsonField<BetaMessageBatchResult>_result()Returns the raw JSON value of result. final Map<String, JsonValue>_additionalProperties()final BetaMessageBatchIndividualResponse.BuildertoBuilder()final BetaMessageBatchIndividualResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMessageBatchIndividualResponse.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMessageBatchIndividualResponse. -
-
Method Detail
-
customId
final 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 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.
-
_customId
final JsonField<String> _customId()
Returns the raw JSON value of customId.
Unlike customId, this method doesn't throw if the JSON field has an unexpected type.
-
_result
final JsonField<BetaMessageBatchResult> _result()
Returns the raw JSON value of result.
Unlike result, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMessageBatchIndividualResponse.Builder toBuilder()
-
validate
final BetaMessageBatchIndividualResponse validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaMessageBatchIndividualResponse.Builder builder()
Returns a mutable builder for constructing an instance of BetaMessageBatchIndividualResponse.
The following fields are required:
.customId() .result()
-
-
-
-