Class SplitterVersion.Builder
- java.lang.Object
-
- ai.extend.types.SplitterVersion.Builder
-
- All Implemented Interfaces:
SplitterVersion._FinalStage,SplitterVersion.ConfigStage,SplitterVersion.CreatedAtStage,SplitterVersion.IdStage,SplitterVersion.SplitterIdStage,SplitterVersion.VersionStage
- Enclosing class:
- SplitterVersion
public static final class SplitterVersion.Builder extends java.lang.Object implements SplitterVersion.IdStage, SplitterVersion.VersionStage, SplitterVersion.ConfigStage, SplitterVersion.SplitterIdStage, SplitterVersion.CreatedAtStage, SplitterVersion._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitterVersionbuild()SplitterVersion.SplitterIdStageconfig(SplitConfig config)The configuration settings for this version of the splitter.SplitterVersion._FinalStagecreatedAt(java.time.OffsetDateTime createdAt)SplitterVersion._FinalStagedescription(Nullable<java.lang.String> description)A description of this version of the splitter.SplitterVersion._FinalStagedescription(java.lang.String description)A description of this version of the splitter.SplitterVersion._FinalStagedescription(java.util.Optional<java.lang.String> description)A description of this version of the splitter.SplitterVersion.Builderfrom(SplitterVersion other)SplitterVersion.VersionStageid(java.lang.String id)The unique identifier for this version of the splitter.SplitterVersion.CreatedAtStagesplitterId(java.lang.String splitterId)The ID of the splitter that this version belongs to.SplitterVersion.ConfigStageversion(java.lang.String version)The version number or identifier for this specific version of the splitter.
-
-
-
Method Detail
-
from
public SplitterVersion.Builder from(SplitterVersion other)
- Specified by:
fromin interfaceSplitterVersion.IdStage
-
id
public SplitterVersion.VersionStage id(@NotNull java.lang.String id)
The unique identifier for this version of the splitter.
Example:
"splv_xK9mLPqRtN3vS8wF5hB2cQ"The unique identifier for this version of the splitter.
Example:
"splv_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
idin interfaceSplitterVersion.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
public SplitterVersion.ConfigStage version(@NotNull java.lang.String version)
The version number or identifier for this specific version of the splitter. The draft version will have version="draft".
Examples:
"1.0","2.1","draft"The version number or identifier for this specific version of the splitter. The draft version will have version="draft".
Examples:
"1.0","2.1","draft"- Specified by:
versionin interfaceSplitterVersion.VersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public SplitterVersion.SplitterIdStage config(@NotNull SplitConfig config)
The configuration settings for this version of the splitter.
The configuration settings for this version of the splitter.
- Specified by:
configin interfaceSplitterVersion.ConfigStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
splitterId
public SplitterVersion.CreatedAtStage splitterId(@NotNull java.lang.String splitterId)
The ID of the splitter that this version belongs to.
Example:
"spl_Xj8mK2pL9nR4vT7qY5wZ"The ID of the splitter that this version belongs to.
Example:
"spl_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
splitterIdin interfaceSplitterVersion.SplitterIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public SplitterVersion._FinalStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceSplitterVersion.CreatedAtStage
-
description
public SplitterVersion._FinalStage description(Nullable<java.lang.String> description)
A description of this version of the splitter.
Example:
"Updated split rules for multi-invoice packets"- Specified by:
descriptionin interfaceSplitterVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public SplitterVersion._FinalStage description(java.lang.String description)
A description of this version of the splitter.
Example:
"Updated split rules for multi-invoice packets"- Specified by:
descriptionin interfaceSplitterVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public SplitterVersion._FinalStage description(java.util.Optional<java.lang.String> description)
A description of this version of the splitter.
Example:
"Updated split rules for multi-invoice packets"- Specified by:
descriptionin interfaceSplitterVersion._FinalStage
-
build
public SplitterVersion build()
- Specified by:
buildin interfaceSplitterVersion._FinalStage
-
-