Class SandboxSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaisandbox.model.SandboxSummary.Builder
-
- Enclosing class:
- SandboxSummary
public static class SandboxSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SandboxSummarybuild()SandboxSummary.Buildercopy(SandboxSummary model)SandboxSummary.BuilderdisplayName(String displayName)Display name for sandboxSandboxSummary.BuilderexpirationDuration(String expirationDuration)Deprecated.SandboxSummary.BuilderexpiresInMinutes(Integer expiresInMinutes)Number of minutes from creation until automatic sandbox expiration.SandboxSummary.Builderid(String id)Sandbox identifier.SandboxSummary.BuilderlifecycleState(Sandbox.LifecycleState lifecycleState)The current state of the Sandbox.SandboxSummary.BuilderprojectId(String projectId)GenerativeAiProject ID that sandbox belongs toSandboxSummary.BuilderpublishedPortAuthMode(Sandbox.PublishedPortAuthMode publishedPortAuthMode)Persisted published-port authorization mode.SandboxSummary.BuilderpublishedPorts(List<PublishedPort> publishedPorts)Published ports for the sandbox proxy endpoint.SandboxSummary.Builderruntime(String runtime)The sandbox runtime type.SandboxSummary.Buildershape(SandboxSummary.Shape shape)shape for sandboxSandboxSummary.BuildertimeCreated(Date timeCreated)The date and time the sandbox was created, in RFC 3339 format.SandboxSummary.BuildertimeExpires(Date timeExpires)The date and time the sandbox expires, in RFC 3339 format.SandboxSummary.BuildertimeStopped(Date timeStopped)The date and time the sandbox was stopped or expired, in RFC 3339 format.SandboxSummary.BuildertimeUpdated(Date timeUpdated)The date and time the sandbox was updated, in RFC 3339 format.SandboxSummary.BuilderwarmpoolName(String warmpoolName)Name of the source warm pool, when selected explicitly or automatically at creation.
-
-
-
Method Detail
-
id
public SandboxSummary.Builder id(String id)
Sandbox identifier.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public SandboxSummary.Builder displayName(String displayName)
Display name for sandbox- Parameters:
displayName- the value to set- Returns:
- this builder
-
projectId
public SandboxSummary.Builder projectId(String projectId)
GenerativeAiProject ID that sandbox belongs to- Parameters:
projectId- the value to set- Returns:
- this builder
-
lifecycleState
public SandboxSummary.Builder lifecycleState(Sandbox.LifecycleState lifecycleState)
The current state of the Sandbox.Allowed values are: - RUNNING - CREATING - UPDATING - DELETED - FAILED - SUSPENDING - SUSPENDED - RESUMING - STOPPING - STOPPED
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
warmpoolName
public SandboxSummary.Builder warmpoolName(String warmpoolName)
Name of the source warm pool, when selected explicitly or automatically at creation.The persisted association is retained on retries.
- Parameters:
warmpoolName- the value to set- Returns:
- this builder
-
runtime
public SandboxSummary.Builder runtime(String runtime)
The sandbox runtime type.For customer-provided containers, use a same-region Oracle Cloud Infrastructure Registry image reference.
- Parameters:
runtime- the value to set- Returns:
- this builder
-
publishedPortAuthMode
public SandboxSummary.Builder publishedPortAuthMode(Sandbox.PublishedPortAuthMode publishedPortAuthMode)
Persisted published-port authorization mode.Absent for legacy sandboxes.
- Parameters:
publishedPortAuthMode- the value to set- Returns:
- this builder
-
publishedPorts
public SandboxSummary.Builder publishedPorts(List<PublishedPort> publishedPorts)
Published ports for the sandbox proxy endpoint.- Parameters:
publishedPorts- the value to set- Returns:
- this builder
-
expiresInMinutes
public SandboxSummary.Builder expiresInMinutes(Integer expiresInMinutes)
Number of minutes from creation until automatic sandbox expiration.Use -1 to disable automatic expiration.
- Parameters:
expiresInMinutes- the value to set- Returns:
- this builder
-
expirationDuration
public SandboxSummary.Builder expirationDuration(String expirationDuration)
Deprecated.Use expiresInMinutes instead. Existing clients may pass -1 to disable automatic expiration.
- Parameters:
expirationDuration- the value to set- Returns:
- this builder
-
shape
public SandboxSummary.Builder shape(SandboxSummary.Shape shape)
shape for sandbox- Parameters:
shape- the value to set- Returns:
- this builder
-
timeCreated
public SandboxSummary.Builder timeCreated(Date timeCreated)
The date and time the sandbox was created, in RFC 3339 format.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public SandboxSummary.Builder timeUpdated(Date timeUpdated)
The date and time the sandbox was updated, in RFC 3339 format.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
timeExpires
public SandboxSummary.Builder timeExpires(Date timeExpires)
The date and time the sandbox expires, in RFC 3339 format.- Parameters:
timeExpires- the value to set- Returns:
- this builder
-
timeStopped
public SandboxSummary.Builder timeStopped(Date timeStopped)
The date and time the sandbox was stopped or expired, in RFC 3339 format.- Parameters:
timeStopped- the value to set- Returns:
- this builder
-
build
public SandboxSummary build()
-
copy
public SandboxSummary.Builder copy(SandboxSummary model)
-
-