Class ItemCreateParams.Body
-
- All Implemented Interfaces:
public final class ItemCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classItemCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<ResponseInputItem>items()The items to add to the conversation. final JsonField<List<ResponseInputItem>>_items()Returns the raw JSON value of items. final Map<String, JsonValue>_additionalProperties()final ItemCreateParams.Body.BuildertoBuilder()final ItemCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ItemCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
items
final List<ResponseInputItem> items()
The items to add to the conversation. You may add up to 20 items at a time.
-
_items
final JsonField<List<ResponseInputItem>> _items()
Returns the raw JSON value of items.
Unlike items, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ItemCreateParams.Body.Builder toBuilder()
-
validate
final ItemCreateParams.Body 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 ItemCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.items()
-
-
-
-