Class Sandbox
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeaisandbox.model.Sandbox
-
@Generated(value="OracleSDKGenerator", comments="API Version: 1.0") public final class Sandbox extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSandbox resource representation.
Note: Objects should always be created or deserialized using theSandbox.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theSandbox.Builder, which maintain a set of all explicitly set fields calledSandbox.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSandbox.Builderstatic classSandbox.LifecycleStateThe current state of the Sandbox.static classSandbox.PublishedPortAuthModePersisted published-port authorization mode.static classSandbox.Shapeshape for sandbox
-
Constructor Summary
Constructors Constructor Description Sandbox(String id, String displayName, String projectId, Sandbox.LifecycleState lifecycleState, String warmpoolName, String runtime, Sandbox.PublishedPortAuthMode publishedPortAuthMode, List<PublishedPort> publishedPorts, List<EnvironmentVariable> environmentVariables, Integer expiresInMinutes, String expirationDuration, Sandbox.Shape shape, Date timeCreated, Date timeUpdated, Date timeExpires, Date timeStopped)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Sandbox.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetDisplayName()Display name for sandboxList<EnvironmentVariable>getEnvironmentVariables()list of environments for sandboxStringgetExpirationDuration()Deprecated.IntegergetExpiresInMinutes()Number of minutes from creation until automatic sandbox expiration.StringgetId()Sandbox identifier.Sandbox.LifecycleStategetLifecycleState()The current state of the Sandbox.StringgetProjectId()GenerativeAiProject ID that sandbox belongs toSandbox.PublishedPortAuthModegetPublishedPortAuthMode()Persisted published-port authorization mode.List<PublishedPort>getPublishedPorts()Published ports for the sandbox proxy endpoint.StringgetRuntime()The sandbox runtime type.Sandbox.ShapegetShape()shape for sandboxDategetTimeCreated()The date and time the sandbox was created, in RFC 3339 format.DategetTimeExpires()The date and time the sandbox expires, in RFC 3339 format.DategetTimeStopped()The date and time the sandbox was stopped or expired, in RFC 3339 format.DategetTimeUpdated()The date and time the sandbox was updated, in RFC 3339 format.StringgetWarmpoolName()Name of the source warm pool, when selected explicitly or automatically at creation.inthashCode()Sandbox.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
Sandbox
@Deprecated @ConstructorProperties({"id","displayName","projectId","lifecycleState","warmpoolName","runtime","publishedPortAuthMode","publishedPorts","environmentVariables","expiresInMinutes","expirationDuration","shape","timeCreated","timeUpdated","timeExpires","timeStopped"}) public Sandbox(String id, String displayName, String projectId, Sandbox.LifecycleState lifecycleState, String warmpoolName, String runtime, Sandbox.PublishedPortAuthMode publishedPortAuthMode, List<PublishedPort> publishedPorts, List<EnvironmentVariable> environmentVariables, Integer expiresInMinutes, String expirationDuration, Sandbox.Shape shape, Date timeCreated, Date timeUpdated, Date timeExpires, Date timeStopped)
Deprecated.
-
-
Method Detail
-
builder
public static Sandbox.Builder builder()
Create a new builder.
-
toBuilder
public Sandbox.Builder toBuilder()
-
getId
public String getId()
Sandbox identifier.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
Display name for sandbox- Returns:
- the value
-
getProjectId
public String getProjectId()
GenerativeAiProject ID that sandbox belongs to- Returns:
- the value
-
getLifecycleState
public Sandbox.LifecycleState getLifecycleState()
The current state of the Sandbox.- Returns:
- the value
-
getWarmpoolName
public String getWarmpoolName()
Name of the source warm pool, when selected explicitly or automatically at creation.The persisted association is retained on retries.
- Returns:
- the value
-
getRuntime
public String getRuntime()
The sandbox runtime type.For customer-provided containers, use a same-region Oracle Cloud Infrastructure Registry image reference.
- Returns:
- the value
-
getPublishedPortAuthMode
public Sandbox.PublishedPortAuthMode getPublishedPortAuthMode()
Persisted published-port authorization mode.Absent for legacy sandboxes. Immutable after creation.
- Returns:
- the value
-
getPublishedPorts
public List<PublishedPort> getPublishedPorts()
Published ports for the sandbox proxy endpoint.- Returns:
- the value
-
getEnvironmentVariables
public List<EnvironmentVariable> getEnvironmentVariables()
list of environments for sandbox- Returns:
- the value
-
getExpiresInMinutes
public Integer getExpiresInMinutes()
Number of minutes from creation until automatic sandbox expiration.Use -1 to disable automatic expiration.
- Returns:
- the value
-
getExpirationDuration
public String getExpirationDuration()
Deprecated.Use expiresInMinutes instead. Existing clients may pass -1 to disable automatic expiration.
- Returns:
- the value
-
getShape
public Sandbox.Shape getShape()
shape for sandbox- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the sandbox was created, in RFC 3339 format.- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The date and time the sandbox was updated, in RFC 3339 format.- Returns:
- the value
-
getTimeExpires
public Date getTimeExpires()
The date and time the sandbox expires, in RFC 3339 format.- Returns:
- the value
-
getTimeStopped
public Date getTimeStopped()
The date and time the sandbox was stopped or expired, in RFC 3339 format.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-