Package com.openai.models.responses
Class ResponseRefusalDoneEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseRefusalDoneEvent.Builder
A builder for ResponseRefusalDoneEvent.
-
-
Method Summary
Modifier and Type Method Description final ResponseRefusalDoneEvent.Builder
contentIndex(Long contentIndex)
The index of the content part that the refusal text is finalized. final ResponseRefusalDoneEvent.Builder
contentIndex(JsonField<Long> contentIndex)
The index of the content part that the refusal text is finalized. final ResponseRefusalDoneEvent.Builder
itemId(String itemId)
The ID of the output item that the refusal text is finalized. final ResponseRefusalDoneEvent.Builder
itemId(JsonField<String> itemId)
The ID of the output item that the refusal text is finalized. final ResponseRefusalDoneEvent.Builder
outputIndex(Long outputIndex)
The index of the output item that the refusal text is finalized. final ResponseRefusalDoneEvent.Builder
outputIndex(JsonField<Long> outputIndex)
The index of the output item that the refusal text is finalized. final ResponseRefusalDoneEvent.Builder
refusal(String refusal)
The refusal text that is finalized. final ResponseRefusalDoneEvent.Builder
refusal(JsonField<String> refusal)
The refusal text that is finalized. final ResponseRefusalDoneEvent.Builder
type(JsonValue type)
The type of the event. final ResponseRefusalDoneEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseRefusalDoneEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseRefusalDoneEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseRefusalDoneEvent.Builder
removeAdditionalProperty(String key)
final ResponseRefusalDoneEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseRefusalDoneEvent
build()
-
-
Method Detail
-
contentIndex
final ResponseRefusalDoneEvent.Builder contentIndex(Long contentIndex)
The index of the content part that the refusal text is finalized.
-
contentIndex
final ResponseRefusalDoneEvent.Builder contentIndex(JsonField<Long> contentIndex)
The index of the content part that the refusal text is finalized.
-
itemId
final ResponseRefusalDoneEvent.Builder itemId(String itemId)
The ID of the output item that the refusal text is finalized.
-
itemId
final ResponseRefusalDoneEvent.Builder itemId(JsonField<String> itemId)
The ID of the output item that the refusal text is finalized.
-
outputIndex
final ResponseRefusalDoneEvent.Builder outputIndex(Long outputIndex)
The index of the output item that the refusal text is finalized.
-
outputIndex
final ResponseRefusalDoneEvent.Builder outputIndex(JsonField<Long> outputIndex)
The index of the output item that the refusal text is finalized.
-
refusal
final ResponseRefusalDoneEvent.Builder refusal(String refusal)
The refusal text that is finalized.
-
refusal
final ResponseRefusalDoneEvent.Builder refusal(JsonField<String> refusal)
The refusal text that is finalized.
-
type
final ResponseRefusalDoneEvent.Builder type(JsonValue type)
The type of the event. Always
response.refusal.done
.
-
additionalProperties
final ResponseRefusalDoneEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseRefusalDoneEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseRefusalDoneEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseRefusalDoneEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseRefusalDoneEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseRefusalDoneEvent build()
-
-
-
-