Package com.openai.models.responses
Class ResponseInputItem.ItemReference
-
- All Implemented Interfaces:
public final class ResponseInputItem.ItemReferenceAn internal identifier for an item to reference.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.ItemReference.BuilderA builder for ItemReference.
public final classResponseInputItem.ItemReference.TypeThe type of item to reference. Always
item_reference.
-
Method Summary
Modifier and Type Method Description final Stringid()The ID of the item to reference. final Optional<ResponseInputItem.ItemReference.Type>type()The type of item to reference. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<ResponseInputItem.ItemReference.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final ResponseInputItem.ItemReference.BuildertoBuilder()final ResponseInputItem.ItemReferencevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputItem.ItemReference.Builderbuilder()Returns a mutable builder for constructing an instance of ItemReference. -
-
Method Detail
-
type
final Optional<ResponseInputItem.ItemReference.Type> type()
The type of item to reference. Always
item_reference.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<ResponseInputItem.ItemReference.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.ItemReference.Builder toBuilder()
-
validate
final ResponseInputItem.ItemReference validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseInputItem.ItemReference.Builder builder()
Returns a mutable builder for constructing an instance of ItemReference.
The following fields are required:
.id()
-
-
-
-