Class ParseRunStatus.Builder
- java.lang.Object
-
- ai.extend.types.ParseRunStatus.Builder
-
- All Implemented Interfaces:
ParseRunStatus._FinalStage,ParseRunStatus.IdStage,ParseRunStatus.StatusStage
- Enclosing class:
- ParseRunStatus
public static final class ParseRunStatus.Builder extends java.lang.Object implements ParseRunStatus.IdStage, ParseRunStatus.StatusStage, ParseRunStatus._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseRunStatusbuild()ParseRunStatus._FinalStagefailureMessage(Nullable<java.lang.String> failureMessage)A human-readable description of the failure.ParseRunStatus._FinalStagefailureMessage(java.lang.String failureMessage)A human-readable description of the failure.ParseRunStatus._FinalStagefailureMessage(java.util.Optional<java.lang.String> failureMessage)A human-readable description of the failure.ParseRunStatus._FinalStagefailureReason(Nullable<java.lang.String> failureReason)The reason for failure.ParseRunStatus._FinalStagefailureReason(java.lang.String failureReason)The reason for failure.ParseRunStatus._FinalStagefailureReason(java.util.Optional<java.lang.String> failureReason)The reason for failure.ParseRunStatus.Builderfrom(ParseRunStatus other)ParseRunStatus.StatusStageid(java.lang.String id)A unique identifier for the parse run.ParseRunStatus._FinalStagemetadata(Nullable<java.util.Map<java.lang.String,java.lang.Object>> metadata)Any metadata that was provided when creating the parse run.ParseRunStatus._FinalStagemetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)Any metadata that was provided when creating the parse run.ParseRunStatus._FinalStagemetadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)Any metadata that was provided when creating the parse run.ParseRunStatus._FinalStagestatus(ParseRunStatusStatus status)The status of the parse run:
-
-
-
Method Detail
-
from
public ParseRunStatus.Builder from(ParseRunStatus other)
- Specified by:
fromin interfaceParseRunStatus.IdStage
-
id
public ParseRunStatus.StatusStage id(@NotNull java.lang.String id)
A unique identifier for the parse run.
Example:
"pr_xK9mLPqRtN3vS8wF5hB2cQ"A unique identifier for the parse run.
Example:
"pr_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
idin interfaceParseRunStatus.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public ParseRunStatus._FinalStage status(@NotNull ParseRunStatusStatus status)
The status of the parse run:
"PROCESSING"- The file is still being processed"PROCESSED"- The file was successfully processed"FAILED"- The processing failed (seefailureReasonfor details)
The status of the parse run:
"PROCESSING"- The file is still being processed"PROCESSED"- The file was successfully processed"FAILED"- The processing failed (seefailureReasonfor details)
- Specified by:
statusin interfaceParseRunStatus.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public ParseRunStatus._FinalStage metadata(Nullable<java.util.Map<java.lang.String,java.lang.Object>> metadata)
Any metadata that was provided when creating the parse run.
Availability: Present when metadata was provided during creation.
- Specified by:
metadatain interfaceParseRunStatus._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public ParseRunStatus._FinalStage metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Any metadata that was provided when creating the parse run.
Availability: Present when metadata was provided during creation.
- Specified by:
metadatain interfaceParseRunStatus._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public ParseRunStatus._FinalStage metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)
Any metadata that was provided when creating the parse run.
Availability: Present when metadata was provided during creation.
- Specified by:
metadatain interfaceParseRunStatus._FinalStage
-
failureMessage
public ParseRunStatus._FinalStage failureMessage(Nullable<java.lang.String> failureMessage)
A human-readable description of the failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureMessagein interfaceParseRunStatus._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureMessage
public ParseRunStatus._FinalStage failureMessage(java.lang.String failureMessage)
A human-readable description of the failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureMessagein interfaceParseRunStatus._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureMessage
public ParseRunStatus._FinalStage failureMessage(java.util.Optional<java.lang.String> failureMessage)
A human-readable description of the failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureMessagein interfaceParseRunStatus._FinalStage
-
failureReason
public ParseRunStatus._FinalStage failureReason(Nullable<java.lang.String> failureReason)
The reason for failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureReasonin interfaceParseRunStatus._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureReason
public ParseRunStatus._FinalStage failureReason(java.lang.String failureReason)
The reason for failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureReasonin interfaceParseRunStatus._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
failureReason
public ParseRunStatus._FinalStage failureReason(java.util.Optional<java.lang.String> failureReason)
The reason for failure.
Availability: Present when
statusis"FAILED".- Specified by:
failureReasonin interfaceParseRunStatus._FinalStage
-
build
public ParseRunStatus build()
- Specified by:
buildin interfaceParseRunStatus._FinalStage
-
-