Class BetaManagedAgentsWorkflowRunResultError
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWorkflowRunResultErrorThe run failed or reached its time limit.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsWorkflowRunResultError.BuilderA builder for BetaManagedAgentsWorkflowRunResultError.
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsWorkflowRunErrorerror()Why the run did not finish. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("error")final JsonField<BetaManagedAgentsWorkflowRunError>_error()Returns the raw JSON value of error. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsWorkflowRunResultError.BuildertoBuilder()final BetaManagedAgentsWorkflowRunResultErrorvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWorkflowRunResultError.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsWorkflowRunResultError. final static BetaManagedAgentsWorkflowRunResultErrorof(BetaManagedAgentsWorkflowRunError error)Returns an immutable instance of BetaManagedAgentsWorkflowRunResultError with the required error set to the given value. final static BetaManagedAgentsWorkflowRunResultErrorof(BetaManagedAgentsTimeoutWorkflowRunError timeout)Alias for calling of with BetaManagedAgentsWorkflowRunError.ofTimeout(timeout).final static BetaManagedAgentsWorkflowRunResultErrorof(BetaManagedAgentsProgramWorkflowRunError program)Alias for calling of with BetaManagedAgentsWorkflowRunError.ofProgram(program).final static BetaManagedAgentsWorkflowRunResultErrorof(BetaManagedAgentsUnknownWorkflowRunError unknown)Alias for calling of with BetaManagedAgentsWorkflowRunError.ofUnknown(unknown).final static BetaManagedAgentsWorkflowRunResultErrorof(BetaManagedAgentsThreadLimitWorkflowRunError threadLimit)Alias for calling of with BetaManagedAgentsWorkflowRunError.ofThreadLimit(threadLimit).final static BetaManagedAgentsWorkflowRunResultErrorof(BetaManagedAgentsMaxWorkflowRunsWorkflowRunError maxWorkflowRuns)Alias for calling of with BetaManagedAgentsWorkflowRunError.ofMaxWorkflowRuns(maxWorkflowRuns).-
-
Method Detail
-
error
final BetaManagedAgentsWorkflowRunError error()
Why the run did not finish.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("error")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_error
final JsonField<BetaManagedAgentsWorkflowRunError> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsWorkflowRunResultError.Builder toBuilder()
-
validate
final BetaManagedAgentsWorkflowRunResultError 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 BetaManagedAgentsWorkflowRunResultError.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsWorkflowRunResultError.
The following fields are required:
.error()
-
of
final static BetaManagedAgentsWorkflowRunResultError of(BetaManagedAgentsWorkflowRunError error)
Returns an immutable instance of BetaManagedAgentsWorkflowRunResultError with the required error set to the given value.
-
of
final static BetaManagedAgentsWorkflowRunResultError of(BetaManagedAgentsTimeoutWorkflowRunError timeout)
Alias for calling of with
BetaManagedAgentsWorkflowRunError.ofTimeout(timeout).
-
of
final static BetaManagedAgentsWorkflowRunResultError of(BetaManagedAgentsProgramWorkflowRunError program)
Alias for calling of with
BetaManagedAgentsWorkflowRunError.ofProgram(program).
-
of
final static BetaManagedAgentsWorkflowRunResultError of(BetaManagedAgentsUnknownWorkflowRunError unknown)
Alias for calling of with
BetaManagedAgentsWorkflowRunError.ofUnknown(unknown).
-
of
final static BetaManagedAgentsWorkflowRunResultError of(BetaManagedAgentsThreadLimitWorkflowRunError threadLimit)
Alias for calling of with
BetaManagedAgentsWorkflowRunError.ofThreadLimit(threadLimit).
-
of
final static BetaManagedAgentsWorkflowRunResultError of(BetaManagedAgentsMaxWorkflowRunsWorkflowRunError maxWorkflowRuns)
Alias for calling of with
BetaManagedAgentsWorkflowRunError.ofMaxWorkflowRuns(maxWorkflowRuns).
-
-
-
-