Class BetaManagedAgentsWorkflowRunErrorEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWorkflowRunErrorEvent.BuilderA builder for BetaManagedAgentsWorkflowRunErrorEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsWorkflowRunErrorEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsWorkflowRunErrorEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final BetaManagedAgentsWorkflowRunErrorEvent.Builder error(BetaManagedAgentsWorkflowRunError error)
Why the run did not finish, or was not created.
-
error
final BetaManagedAgentsWorkflowRunErrorEvent.Builder error(JsonField<BetaManagedAgentsWorkflowRunError> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed BetaManagedAgentsWorkflowRunError value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final BetaManagedAgentsWorkflowRunErrorEvent.Builder error(BetaManagedAgentsTimeoutWorkflowRunError timeout)
Alias for calling error with
BetaManagedAgentsWorkflowRunError.ofTimeout(timeout).
-
error
final BetaManagedAgentsWorkflowRunErrorEvent.Builder error(BetaManagedAgentsProgramWorkflowRunError program)
Alias for calling error with
BetaManagedAgentsWorkflowRunError.ofProgram(program).
-
error
final BetaManagedAgentsWorkflowRunErrorEvent.Builder error(BetaManagedAgentsUnknownWorkflowRunError unknown)
Alias for calling error with
BetaManagedAgentsWorkflowRunError.ofUnknown(unknown).
-
error
final BetaManagedAgentsWorkflowRunErrorEvent.Builder error(BetaManagedAgentsThreadLimitWorkflowRunError threadLimit)
Alias for calling error with
BetaManagedAgentsWorkflowRunError.ofThreadLimit(threadLimit).
-
error
final BetaManagedAgentsWorkflowRunErrorEvent.Builder error(BetaManagedAgentsMaxWorkflowRunsWorkflowRunError maxWorkflowRuns)
Alias for calling error with
BetaManagedAgentsWorkflowRunError.ofMaxWorkflowRuns(maxWorkflowRuns).
-
processedAt
final BetaManagedAgentsWorkflowRunErrorEvent.Builder processedAt(OffsetDateTime processedAt)
Timestamp when this event was processed.
-
processedAt
final BetaManagedAgentsWorkflowRunErrorEvent.Builder processedAt(JsonField<OffsetDateTime> processedAt)
Sets Builder.processedAt to an arbitrary JSON value.
You should usually call Builder.processedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsWorkflowRunErrorEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("workflow_run.error")This method is primarily for setting the field to an undocumented or not yet supported value.
-
workflowRunId
final BetaManagedAgentsWorkflowRunErrorEvent.Builder workflowRunId(String workflowRunId)
Identifier of the run that met the error, or
nullwhen the error kept a run from being created.
-
workflowRunId
final BetaManagedAgentsWorkflowRunErrorEvent.Builder workflowRunId(Optional<String> workflowRunId)
Alias for calling Builder.workflowRunId with
workflowRunId.orElse(null).
-
workflowRunId
final BetaManagedAgentsWorkflowRunErrorEvent.Builder workflowRunId(JsonField<String> workflowRunId)
Sets Builder.workflowRunId to an arbitrary JSON value.
You should usually call Builder.workflowRunId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsWorkflowRunErrorEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
timeoutError
final BetaManagedAgentsWorkflowRunErrorEvent.Builder timeoutError(String message)
Alias for calling error with the following:
BetaManagedAgentsTimeoutWorkflowRunError.builder() .message(message) .build()
-
programError
final BetaManagedAgentsWorkflowRunErrorEvent.Builder programError(String message)
Alias for calling error with the following:
BetaManagedAgentsProgramWorkflowRunError.builder() .message(message) .build()
-
unknownError
final BetaManagedAgentsWorkflowRunErrorEvent.Builder unknownError(String message)
Alias for calling error with the following:
BetaManagedAgentsUnknownWorkflowRunError.builder() .message(message) .build()
-
threadLimitError
final BetaManagedAgentsWorkflowRunErrorEvent.Builder threadLimitError(String message)
Alias for calling error with the following:
BetaManagedAgentsThreadLimitWorkflowRunError.builder() .message(message) .build()
-
maxWorkflowRunsError
final BetaManagedAgentsWorkflowRunErrorEvent.Builder maxWorkflowRunsError(String message)
Alias for calling error with the following:
BetaManagedAgentsMaxWorkflowRunsWorkflowRunError.builder() .message(message) .build()
-
putAdditionalProperty
final BetaManagedAgentsWorkflowRunErrorEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsWorkflowRunErrorEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsWorkflowRunErrorEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsWorkflowRunErrorEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsWorkflowRunErrorEvent build()
Returns an immutable instance of BetaManagedAgentsWorkflowRunErrorEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .error() .processedAt() .workflowRunId()
-
-
-
-