Package com.openai.models.responses
Class ResponseInputItem.ItemReference.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.ItemReference.Builder
A builder for ItemReference.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseInputItem.ItemReference.Builder id(String id)
The ID of the item to reference.
-
id
final ResponseInputItem.ItemReference.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.
-
type
final ResponseInputItem.ItemReference.Builder type(ResponseInputItem.ItemReference.Type type)
The type of item to reference. Always
item_reference
.
-
type
final ResponseInputItem.ItemReference.Builder type(Optional<ResponseInputItem.ItemReference.Type> type)
Alias for calling Builder.type with
type.orElse(null)
.
-
type
final ResponseInputItem.ItemReference.Builder type(JsonField<ResponseInputItem.ItemReference.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputItem.ItemReference.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.ItemReference.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.ItemReference.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.ItemReference.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.ItemReference.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.ItemReference build()
Returns an immutable instance of ItemReference.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id()
-
-
-
-