Class Sandbox.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaisandbox.model.Sandbox.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sandboxbuild()Sandbox.Buildercopy(Sandbox model)Sandbox.BuilderdisplayName(String displayName)Display name for sandboxSandbox.BuilderenvironmentVariables(List<EnvironmentVariable> environmentVariables)list of environments for sandboxSandbox.BuilderexpirationDuration(String expirationDuration)Deprecated.Sandbox.BuilderexpiresInMinutes(Integer expiresInMinutes)Number of minutes from creation until automatic sandbox expiration.Sandbox.Builderid(String id)Sandbox identifier.Sandbox.BuilderlifecycleState(Sandbox.LifecycleState lifecycleState)The current state of the Sandbox.Sandbox.BuilderprojectId(String projectId)GenerativeAiProject ID that sandbox belongs toSandbox.BuilderpublishedPortAuthMode(Sandbox.PublishedPortAuthMode publishedPortAuthMode)Persisted published-port authorization mode.Sandbox.BuilderpublishedPorts(List<PublishedPort> publishedPorts)Published ports for the sandbox proxy endpoint.Sandbox.Builderruntime(String runtime)The sandbox runtime type.Sandbox.Buildershape(Sandbox.Shape shape)shape for sandboxSandbox.BuildertimeCreated(Date timeCreated)The date and time the sandbox was created, in RFC 3339 format.Sandbox.BuildertimeExpires(Date timeExpires)The date and time the sandbox expires, in RFC 3339 format.Sandbox.BuildertimeStopped(Date timeStopped)The date and time the sandbox was stopped or expired, in RFC 3339 format.Sandbox.BuildertimeUpdated(Date timeUpdated)The date and time the sandbox was updated, in RFC 3339 format.Sandbox.BuilderwarmpoolName(String warmpoolName)Name of the source warm pool, when selected explicitly or automatically at creation.
-
-
-
Method Detail
-
id
public Sandbox.Builder id(String id)
Sandbox identifier.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public Sandbox.Builder displayName(String displayName)
Display name for sandbox- Parameters:
displayName- the value to set- Returns:
- this builder
-
projectId
public Sandbox.Builder projectId(String projectId)
GenerativeAiProject ID that sandbox belongs to- Parameters:
projectId- the value to set- Returns:
- this builder
-
lifecycleState
public Sandbox.Builder lifecycleState(Sandbox.LifecycleState lifecycleState)
The current state of the Sandbox.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
warmpoolName
public Sandbox.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 Sandbox.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 Sandbox.Builder publishedPortAuthMode(Sandbox.PublishedPortAuthMode publishedPortAuthMode)
Persisted published-port authorization mode.Absent for legacy sandboxes. Immutable after creation.
- Parameters:
publishedPortAuthMode- the value to set- Returns:
- this builder
-
publishedPorts
public Sandbox.Builder publishedPorts(List<PublishedPort> publishedPorts)
Published ports for the sandbox proxy endpoint.- Parameters:
publishedPorts- the value to set- Returns:
- this builder
-
environmentVariables
public Sandbox.Builder environmentVariables(List<EnvironmentVariable> environmentVariables)
list of environments for sandbox- Parameters:
environmentVariables- the value to set- Returns:
- this builder
-
expiresInMinutes
public Sandbox.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 Sandbox.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 Sandbox.Builder shape(Sandbox.Shape shape)
shape for sandbox- Parameters:
shape- the value to set- Returns:
- this builder
-
timeCreated
public Sandbox.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 Sandbox.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 Sandbox.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 Sandbox.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 Sandbox build()
-
copy
public Sandbox.Builder copy(Sandbox model)
-
-