Class BetaResponseInputItem.ItemReference
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ItemReferenceAn internal identifier for an item to reference.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.ItemReference.BuilderA builder for ItemReference.
public final classBetaResponseInputItem.ItemReference.AgentThe agent that produced this item.
public final classBetaResponseInputItem.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<BetaResponseInputItem.ItemReference.Agent>agent()The agent that produced this item. final Optional<BetaResponseInputItem.ItemReference.Type>type()The type of item to reference. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.ItemReference.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseInputItem.ItemReference.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.ItemReference.BuildertoBuilder()final BetaResponseInputItem.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 BetaResponseInputItem.ItemReference.Builderbuilder()Returns a mutable builder for constructing an instance of ItemReference. -
-
Method Detail
-
agent
final Optional<BetaResponseInputItem.ItemReference.Agent> agent()
The agent that produced this item.
-
type
final Optional<BetaResponseInputItem.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.
-
_agent
final JsonField<BetaResponseInputItem.ItemReference.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaResponseInputItem.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 BetaResponseInputItem.ItemReference.Builder toBuilder()
-
validate
final BetaResponseInputItem.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 BetaResponseInputItem.ItemReference.Builder builder()
Returns a mutable builder for constructing an instance of ItemReference.
The following fields are required:
.id()
-
-
-
-