Class BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWorkflowRunStatusEndedEvent.BuilderA builder for BetaManagedAgentsWorkflowRunStatusEndedEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsWorkflowRunStatusEndedEvent.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.
-
processedAt
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder processedAt(OffsetDateTime processedAt)
Timestamp when this event was processed.
-
processedAt
final BetaManagedAgentsWorkflowRunStatusEndedEvent.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.
-
result
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder result(BetaManagedAgentsWorkflowRunResult result)
How the run ended.
-
result
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder result(JsonField<BetaManagedAgentsWorkflowRunResult> result)
Sets Builder.result to an arbitrary JSON value.
You should usually call Builder.result with a well-typed BetaManagedAgentsWorkflowRunResult value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
result
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder result(BetaManagedAgentsWorkflowRunResultCompleted completed)
Alias for calling result with
BetaManagedAgentsWorkflowRunResult.ofCompleted(completed).
-
result
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder result(BetaManagedAgentsWorkflowRunResultError error)
Alias for calling result with
BetaManagedAgentsWorkflowRunResult.ofError(error).
-
result
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder result(BetaManagedAgentsWorkflowRunResultStopped stopped)
Alias for calling result with
BetaManagedAgentsWorkflowRunResult.ofStopped(stopped).
-
type
final BetaManagedAgentsWorkflowRunStatusEndedEvent.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.status_ended")This method is primarily for setting the field to an undocumented or not yet supported value.
-
workflowRunId
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder workflowRunId(String workflowRunId)
Identifier of the run. The same value is on all of the run's
workflow_run.*events.
-
workflowRunId
final BetaManagedAgentsWorkflowRunStatusEndedEvent.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 BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
errorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder errorResult(BetaManagedAgentsWorkflowRunError error)
Alias for calling result with the following:
BetaManagedAgentsWorkflowRunResultError.builder() .error(error) .build()
-
errorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder errorResult(BetaManagedAgentsTimeoutWorkflowRunError timeout)
Alias for calling errorResult with
BetaManagedAgentsWorkflowRunError.ofTimeout(timeout).
-
errorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder errorResult(BetaManagedAgentsProgramWorkflowRunError program)
Alias for calling errorResult with
BetaManagedAgentsWorkflowRunError.ofProgram(program).
-
errorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder errorResult(BetaManagedAgentsUnknownWorkflowRunError unknown)
Alias for calling errorResult with
BetaManagedAgentsWorkflowRunError.ofUnknown(unknown).
-
errorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder errorResult(BetaManagedAgentsThreadLimitWorkflowRunError threadLimit)
Alias for calling errorResult with
BetaManagedAgentsWorkflowRunError.ofThreadLimit(threadLimit).
-
errorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder errorResult(BetaManagedAgentsMaxWorkflowRunsWorkflowRunError maxWorkflowRuns)
Alias for calling errorResult with
BetaManagedAgentsWorkflowRunError.ofMaxWorkflowRuns(maxWorkflowRuns).
-
timeoutErrorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder timeoutErrorResult(String message)
Alias for calling errorResult with the following:
BetaManagedAgentsTimeoutWorkflowRunError.builder() .message(message) .build()
-
programErrorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder programErrorResult(String message)
Alias for calling errorResult with the following:
BetaManagedAgentsProgramWorkflowRunError.builder() .message(message) .build()
-
unknownErrorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder unknownErrorResult(String message)
Alias for calling errorResult with the following:
BetaManagedAgentsUnknownWorkflowRunError.builder() .message(message) .build()
-
threadLimitErrorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder threadLimitErrorResult(String message)
Alias for calling errorResult with the following:
BetaManagedAgentsThreadLimitWorkflowRunError.builder() .message(message) .build()
-
maxWorkflowRunsErrorResult
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder maxWorkflowRunsErrorResult(String message)
Alias for calling errorResult with the following:
BetaManagedAgentsMaxWorkflowRunsWorkflowRunError.builder() .message(message) .build()
-
putAdditionalProperty
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsWorkflowRunStatusEndedEvent build()
Returns an immutable instance of BetaManagedAgentsWorkflowRunStatusEndedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .processedAt() .result() .workflowRunId()
-
-
-
-