Class BatchCreateParams.Request.Builder
-
- All Implemented Interfaces:
public final class BatchCreateParams.Request.BuilderA builder for Request.
-
-
Method Summary
-
-
Method Detail
-
customId
final BatchCreateParams.Request.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 BatchCreateParams.Request.Builder customId(JsonField<String> customId)
Sets Builder.customId to an arbitrary JSON value.
You should usually call Builder.customId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
params
final BatchCreateParams.Request.Builder params(BatchCreateParams.Request.Params params)
Messages API creation parameters for the individual request.
See the /en/api/messages for full documentation on available parameters.
-
params
final BatchCreateParams.Request.Builder params(JsonField<BatchCreateParams.Request.Params> params)
Sets Builder.params to an arbitrary JSON value.
You should usually call Builder.params with a well-typed Params value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BatchCreateParams.Request.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BatchCreateParams.Request.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BatchCreateParams.Request.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BatchCreateParams.Request.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BatchCreateParams.Request.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BatchCreateParams.Request build()
Returns an immutable instance of Request.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.customId() .params()
-
-
-
-