Package com.openai.models.webhooks
Class BatchCompletedWebhookEvent.Data.Builder
-
- All Implemented Interfaces:
public final class BatchCompletedWebhookEvent.Data.Builder
A builder for Data.
-
-
Method Summary
Modifier and Type Method Description final BatchCompletedWebhookEvent.Data.Builder
id(String id)
The unique ID of the batch API request. final BatchCompletedWebhookEvent.Data.Builder
id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value. final BatchCompletedWebhookEvent.Data.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final BatchCompletedWebhookEvent.Data.Builder
putAdditionalProperty(String key, JsonValue value)
final BatchCompletedWebhookEvent.Data.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final BatchCompletedWebhookEvent.Data.Builder
removeAdditionalProperty(String key)
final BatchCompletedWebhookEvent.Data.Builder
removeAllAdditionalProperties(Set<String> keys)
final BatchCompletedWebhookEvent.Data
build()
Returns an immutable instance of Data. -
-
Method Detail
-
id
final BatchCompletedWebhookEvent.Data.Builder id(String id)
The unique ID of the batch API request.
-
id
final BatchCompletedWebhookEvent.Data.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BatchCompletedWebhookEvent.Data.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BatchCompletedWebhookEvent.Data.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BatchCompletedWebhookEvent.Data.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BatchCompletedWebhookEvent.Data.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BatchCompletedWebhookEvent.Data.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BatchCompletedWebhookEvent.Data build()
Returns an immutable instance of Data.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id()
-
-
-
-