Class ItemCreateParams.Body
-
- All Implemented Interfaces:
public final class ItemCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ItemCreateParams.Body.Builder
A 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.Builder
toBuilder()
final ItemCreateParams.Body
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ItemCreateParams.Body.Builder
builder()
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()
-
builder
final static ItemCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.items()
-
-
-
-