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
-
-
-
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
-
extendWorkspaceId
public ProcessorVersionCreateRequest._FinalStage extendWorkspaceId(java.lang.String extendWorkspaceId)
The workspace ID to target. Required when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See Authentication for details on API key scopes.
- Specified by:
extendWorkspaceIdin interfaceProcessorVersionCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
extendWorkspaceId
public ProcessorVersionCreateRequest._FinalStage extendWorkspaceId(java.util.Optional<java.lang.String> extendWorkspaceId)
The workspace ID to target. Required when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See Authentication for details on API key scopes.
- Specified by:
extendWorkspaceIdin interfaceProcessorVersionCreateRequest._FinalStage
-
build
public ProcessorVersionCreateRequest build()
- Specified by:
buildin interfaceProcessorVersionCreateRequest._FinalStage
-
-