Class ResponseOutputItemAddedEvent
-
- All Implemented Interfaces:
public final class ResponseOutputItemAddedEventEmitted when a new output item is added.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseOutputItemAddedEvent.BuilderA builder for ResponseOutputItemAddedEvent.
-
Method Summary
Modifier and Type Method Description final ResponseOutputItemitem()The output item that was added. final LongoutputIndex()The index of the output item that was added. final LongsequenceNumber()The sequence number of this event. final JsonValue_type()The type of the event. final JsonField<ResponseOutputItem>_item()Returns the raw JSON value of item. final JsonField<Long>_outputIndex()Returns the raw JSON value of outputIndex. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final Map<String, JsonValue>_additionalProperties()final ResponseOutputItemAddedEvent.BuildertoBuilder()final ResponseOutputItemAddedEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseOutputItemAddedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseOutputItemAddedEvent. -
-
Method Detail
-
item
final ResponseOutputItem item()
The output item that was added.
-
outputIndex
final Long outputIndex()
The index of the output item that was added.
-
sequenceNumber
final Long sequenceNumber()
The sequence number of this event.
-
_type
final JsonValue _type()
The type of the event. Always
response.output_item.added.Expected to always return the following:
JsonValue.from("response.output_item.added")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_item
final JsonField<ResponseOutputItem> _item()
Returns the raw JSON value of item.
Unlike item, this method doesn't throw if the JSON field has an unexpected type.
-
_outputIndex
final JsonField<Long> _outputIndex()
Returns the raw JSON value of outputIndex.
Unlike outputIndex, this method doesn't throw if the JSON field has an unexpected type.
-
_sequenceNumber
final JsonField<Long> _sequenceNumber()
Returns the raw JSON value of sequenceNumber.
Unlike sequenceNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseOutputItemAddedEvent.Builder toBuilder()
-
validate
final ResponseOutputItemAddedEvent validate()
-
builder
final static ResponseOutputItemAddedEvent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseOutputItemAddedEvent.
The following fields are required:
.item() .outputIndex() .sequenceNumber()
-
-
-
-