Class ResponseItem.ProgramOutput
-
- All Implemented Interfaces:
public final class ResponseItem.ProgramOutput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseItem.ProgramOutput.BuilderA builder for ProgramOutput.
public final classResponseItem.ProgramOutput.StatusThe terminal status of the program output item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the program output item. final StringcallId()The call ID of the program item. final Stringresult()The result produced by the program item. final ResponseItem.ProgramOutput.Statusstatus()The terminal status of the program output item. final JsonValue_type()The type of the item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<String>_result()Returns the raw JSON value of result. final JsonField<ResponseItem.ProgramOutput.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final ResponseItem.ProgramOutput.BuildertoBuilder()final ResponseItem.ProgramOutputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseItem.ProgramOutput.Builderbuilder()Returns a mutable builder for constructing an instance of ProgramOutput. -
-
Method Detail
-
status
final ResponseItem.ProgramOutput.Status status()
The terminal status of the program output item.
-
_type
final JsonValue _type()
The type of the item. Always
program_output.Expected to always return the following:
JsonValue.from("program_output")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_result
final JsonField<String> _result()
Returns the raw JSON value of result.
Unlike result, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseItem.ProgramOutput.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseItem.ProgramOutput.Builder toBuilder()
-
validate
final ResponseItem.ProgramOutput 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 ResponseItem.ProgramOutput.Builder builder()
Returns a mutable builder for constructing an instance of ProgramOutput.
The following fields are required:
.id() .callId() .result() .status()
-
-
-
-