Package com.openai.models.webhooks
Class ResponseCompletedWebhookEvent.Data.Builder
-
- All Implemented Interfaces:
public final class ResponseCompletedWebhookEvent.Data.Builder
A builder for Data.
-
-
Method Summary
Modifier and Type Method Description final ResponseCompletedWebhookEvent.Data.Builder
id(String id)
The unique ID of the model response. final ResponseCompletedWebhookEvent.Data.Builder
id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value. final ResponseCompletedWebhookEvent.Data.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseCompletedWebhookEvent.Data.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseCompletedWebhookEvent.Data.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseCompletedWebhookEvent.Data.Builder
removeAdditionalProperty(String key)
final ResponseCompletedWebhookEvent.Data.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseCompletedWebhookEvent.Data
build()
Returns an immutable instance of Data. -
-
Method Detail
-
id
final ResponseCompletedWebhookEvent.Data.Builder id(String id)
The unique ID of the model response.
-
id
final ResponseCompletedWebhookEvent.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 ResponseCompletedWebhookEvent.Data.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseCompletedWebhookEvent.Data.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseCompletedWebhookEvent.Data.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseCompletedWebhookEvent.Data.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseCompletedWebhookEvent.Data.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseCompletedWebhookEvent.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()
-
-
-
-