Interface BatchService.WithRawResponse
-
- All Implemented Interfaces:
public interface BatchService.WithRawResponseA view of BatchService that provides access to raw HTTP responses for each method.
-
-
Method Summary
Modifier and Type Method Description HttpResponseFor<BetaMessageBatch>create(BatchCreateParams params)Returns a raw HTTP response for post /v1/messages/batches?beta=true, but is otherwise the same as BatchService.create.abstract HttpResponseFor<BetaMessageBatch>create(BatchCreateParams params, RequestOptions requestOptions)HttpResponseFor<BetaMessageBatch>retrieve(BatchRetrieveParams params)Returns a raw HTTP response for get /v1/messages/batches/{message_batch_id}?beta=true, but is otherwise the same as BatchService.retrieve.abstract HttpResponseFor<BetaMessageBatch>retrieve(BatchRetrieveParams params, RequestOptions requestOptions)HttpResponseFor<BatchListPage>list()Returns a raw HTTP response for get /v1/messages/batches?beta=true, but is otherwise the same as BatchService.list.abstract HttpResponseFor<BatchListPage>list(BatchListParams params, RequestOptions requestOptions)HttpResponseFor<BatchListPage>list(BatchListParams params)HttpResponseFor<BatchListPage>list(RequestOptions requestOptions)HttpResponseFor<BetaDeletedMessageBatch>delete(BatchDeleteParams params)Returns a raw HTTP response for delete /v1/messages/batches/{message_batch_id}?beta=true, but is otherwise the same as BatchService.delete.abstract HttpResponseFor<BetaDeletedMessageBatch>delete(BatchDeleteParams params, RequestOptions requestOptions)HttpResponseFor<BetaMessageBatch>cancel(BatchCancelParams params)Returns a raw HTTP response for post /v1/messages/batches/{message_batch_id}/cancel?beta=true, but is otherwise the same as BatchService.cancel.abstract HttpResponseFor<BetaMessageBatch>cancel(BatchCancelParams params, RequestOptions requestOptions)HttpResponseFor<StreamResponse<BetaMessageBatchIndividualResponse>>resultsStreaming(BatchResultsParams params)Returns a raw HTTP response for get /v1/messages/batches/{message_batch_id}/results?beta=true, but is otherwise the same as BatchService.resultsStreaming.abstract HttpResponseFor<StreamResponse<BetaMessageBatchIndividualResponse>>resultsStreaming(BatchResultsParams params, RequestOptions requestOptions)-
-
Method Detail
-
create
@MustBeClosed() HttpResponseFor<BetaMessageBatch> create(BatchCreateParams params)
Returns a raw HTTP response for
post /v1/messages/batches?beta=true, but is otherwise the same as BatchService.create.
-
create
@MustBeClosed() abstract HttpResponseFor<BetaMessageBatch> create(BatchCreateParams params, RequestOptions requestOptions)
-
retrieve
@MustBeClosed() HttpResponseFor<BetaMessageBatch> retrieve(BatchRetrieveParams params)
Returns a raw HTTP response for
get /v1/messages/batches/{message_batch_id}?beta=true, but is otherwise the same as BatchService.retrieve.
-
retrieve
@MustBeClosed() abstract HttpResponseFor<BetaMessageBatch> retrieve(BatchRetrieveParams params, RequestOptions requestOptions)
-
list
@MustBeClosed() HttpResponseFor<BatchListPage> list()
Returns a raw HTTP response for
get /v1/messages/batches?beta=true, but is otherwise the same as BatchService.list.
-
list
@MustBeClosed() abstract HttpResponseFor<BatchListPage> list(BatchListParams params, RequestOptions requestOptions)
-
list
@MustBeClosed() HttpResponseFor<BatchListPage> list(BatchListParams params)
-
list
@MustBeClosed() HttpResponseFor<BatchListPage> list(RequestOptions requestOptions)
-
delete
@MustBeClosed() HttpResponseFor<BetaDeletedMessageBatch> delete(BatchDeleteParams params)
Returns a raw HTTP response for
delete /v1/messages/batches/{message_batch_id}?beta=true, but is otherwise the same as BatchService.delete.
-
delete
@MustBeClosed() abstract HttpResponseFor<BetaDeletedMessageBatch> delete(BatchDeleteParams params, RequestOptions requestOptions)
-
cancel
@MustBeClosed() HttpResponseFor<BetaMessageBatch> cancel(BatchCancelParams params)
Returns a raw HTTP response for
post /v1/messages/batches/{message_batch_id}/cancel?beta=true, but is otherwise the same as BatchService.cancel.
-
cancel
@MustBeClosed() abstract HttpResponseFor<BetaMessageBatch> cancel(BatchCancelParams params, RequestOptions requestOptions)
-
resultsStreaming
@MustBeClosed() HttpResponseFor<StreamResponse<BetaMessageBatchIndividualResponse>> resultsStreaming(BatchResultsParams params)
Returns a raw HTTP response for
get /v1/messages/batches/{message_batch_id}/results?beta=true, but is otherwise the same as BatchService.resultsStreaming.
-
resultsStreaming
@MustBeClosed() abstract HttpResponseFor<StreamResponse<BetaMessageBatchIndividualResponse>> resultsStreaming(BatchResultsParams params, RequestOptions requestOptions)
-
-
-
-