Package com.openai.models.responses
Class ResponseCreatedEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseCreatedEvent.Builder
A builder for ResponseCreatedEvent.
-
-
Method Summary
Modifier and Type Method Description final ResponseCreatedEvent.Builder
response(Response response)
The response that was created. final ResponseCreatedEvent.Builder
response(JsonField<Response> response)
The response that was created. final ResponseCreatedEvent.Builder
type(JsonValue type)
The type of the event. final ResponseCreatedEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseCreatedEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseCreatedEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseCreatedEvent.Builder
removeAdditionalProperty(String key)
final ResponseCreatedEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseCreatedEvent
build()
-
-
Method Detail
-
response
final ResponseCreatedEvent.Builder response(Response response)
The response that was created.
-
response
final ResponseCreatedEvent.Builder response(JsonField<Response> response)
The response that was created.
-
type
final ResponseCreatedEvent.Builder type(JsonValue type)
The type of the event. Always
response.created
.
-
additionalProperties
final ResponseCreatedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseCreatedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseCreatedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseCreatedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseCreatedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseCreatedEvent build()
-
-
-
-