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