Class BatchCancelParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class BatchCancelParams implements Params
Batches may be canceled any time before processing ends. Once cancellation is initiated, the batch enters a
cancelingstate, at which time the system may complete any in-progress, non-interruptible requests before finalizing cancellation.The number of canceled requests is specified in
request_counts. To determine which requests were canceled, check the individual results within the batch. Note that cancellation may not result in any canceled requests if they were non-interruptible.Learn more about the Message Batches API in our /en/docs/build-with-claude/batch-processing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBatchCancelParams.BuilderA builder for BatchCancelParams.
-
Method Summary
Modifier and Type Method Description final StringmessageBatchId()ID of the Message Batch. final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final Map<String, JsonValue>_additionalBodyProperties()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. final StringgetPathParam(Integer index)final BatchCancelParams.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BatchCancelParams.Builderbuilder()Returns a mutable builder for constructing an instance of BatchCancelParams. -
-
Method Detail
-
messageBatchId
final String messageBatchId()
ID of the Message Batch.
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
getPathParam
final String getPathParam(Integer index)
-
toBuilder
final BatchCancelParams.Builder toBuilder()
-
builder
final static BatchCancelParams.Builder builder()
Returns a mutable builder for constructing an instance of BatchCancelParams.
The following fields are required:
.messageBatchId()
-
-
-
-