Class ProcessorVersionCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.processorversion.requests.ProcessorVersionCreateRequest.Builder
-
- All Implemented Interfaces:
ProcessorVersionCreateRequest._FinalStage,ProcessorVersionCreateRequest.ReleaseTypeStage
- Enclosing class:
- ProcessorVersionCreateRequest
public static final class ProcessorVersionCreateRequest.Builder extends java.lang.Object implements ProcessorVersionCreateRequest.ReleaseTypeStage, ProcessorVersionCreateRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessorVersionCreateRequestbuild()ProcessorVersionCreateRequest._FinalStageconfig(ProcessorVersionCreateRequestConfig config)The configuration for this version of the processor.ProcessorVersionCreateRequest._FinalStageconfig(java.util.Optional<ProcessorVersionCreateRequestConfig> config)The configuration for this version of the processor.ProcessorVersionCreateRequest._FinalStagedescription(java.lang.String description)A description of the changes in this version.ProcessorVersionCreateRequest._FinalStagedescription(java.util.Optional<java.lang.String> description)A description of the changes in this version.ProcessorVersionCreateRequest.Builderfrom(ProcessorVersionCreateRequest other)ProcessorVersionCreateRequest._FinalStagereleaseType(ProcessorVersionCreateRequestReleaseType releaseType)The type of release for this version.
-
-
-
Method Detail
-
from
public ProcessorVersionCreateRequest.Builder from(ProcessorVersionCreateRequest other)
- Specified by:
fromin interfaceProcessorVersionCreateRequest.ReleaseTypeStage
-
releaseType
public ProcessorVersionCreateRequest._FinalStage releaseType(@NotNull ProcessorVersionCreateRequestReleaseType releaseType)
The type of release for this version. The two options are "major" and "minor", which will increment the version number accordingly.
The type of release for this version. The two options are "major" and "minor", which will increment the version number accordingly.
- Specified by:
releaseTypein interfaceProcessorVersionCreateRequest.ReleaseTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ProcessorVersionCreateRequest._FinalStage config(ProcessorVersionCreateRequestConfig config)
The configuration for this version of the processor. The type of configuration must match the processor type.
- Specified by:
configin interfaceProcessorVersionCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ProcessorVersionCreateRequest._FinalStage config(java.util.Optional<ProcessorVersionCreateRequestConfig> config)
The configuration for this version of the processor. The type of configuration must match the processor type.
- Specified by:
configin interfaceProcessorVersionCreateRequest._FinalStage
-
description
public ProcessorVersionCreateRequest._FinalStage description(java.lang.String description)
A description of the changes in this version. This helps track the evolution of the processor over time.
- Specified by:
descriptionin interfaceProcessorVersionCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public ProcessorVersionCreateRequest._FinalStage description(java.util.Optional<java.lang.String> description)
A description of the changes in this version. This helps track the evolution of the processor over time.
- Specified by:
descriptionin interfaceProcessorVersionCreateRequest._FinalStage
-
build
public ProcessorVersionCreateRequest build()
- Specified by:
buildin interfaceProcessorVersionCreateRequest._FinalStage
-
-