Class CreateSandboxWarmPoolDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeai.model.CreateSandboxWarmPoolDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class CreateSandboxWarmPoolDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelCreate Sandbox Warm Pool Details.
Note: Objects should always be created or deserialized using theCreateSandboxWarmPoolDetails.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 theCreateSandboxWarmPoolDetails.Builder, which maintain a set of all explicitly set fields calledCreateSandboxWarmPoolDetails.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 classCreateSandboxWarmPoolDetails.Builderstatic classCreateSandboxWarmPoolDetails.ShapeCompute shape for each idle Sandbox member.static classCreateSandboxWarmPoolDetails.TypeMANAGED uses the service-provided python-3.11 runtime.
-
Constructor Summary
Constructors Constructor Description CreateSandboxWarmPoolDetails(String name, CreateSandboxWarmPoolDetails.Type type, String containerImage, CreateSandboxWarmPoolDetails.Shape shape, Integer desiredCapacity)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateSandboxWarmPoolDetails.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetContainerImage()Required for CUSTOM and must be omitted for MANAGED.IntegergetDesiredCapacity()Desired number of idle members.StringgetName()Unique immutable name within the Project.CreateSandboxWarmPoolDetails.ShapegetShape()Compute shape for each idle Sandbox member.CreateSandboxWarmPoolDetails.TypegetType()MANAGED uses the service-provided python-3.11 runtime.inthashCode()CreateSandboxWarmPoolDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
CreateSandboxWarmPoolDetails
@Deprecated @ConstructorProperties({"name","type","containerImage","shape","desiredCapacity"}) public CreateSandboxWarmPoolDetails(String name, CreateSandboxWarmPoolDetails.Type type, String containerImage, CreateSandboxWarmPoolDetails.Shape shape, Integer desiredCapacity)
Deprecated.
-
-
Method Detail
-
builder
public static CreateSandboxWarmPoolDetails.Builder builder()
Create a new builder.
-
toBuilder
public CreateSandboxWarmPoolDetails.Builder toBuilder()
-
getName
public String getName()
Unique immutable name within the Project.- Returns:
- the value
-
getType
public CreateSandboxWarmPoolDetails.Type getType()
MANAGED uses the service-provided python-3.11 runtime.CUSTOM uses a customer-provided containerImage. Both types support named pool creation.
- Returns:
- the value
-
getContainerImage
public String getContainerImage()
Required for CUSTOM and must be omitted for MANAGED.A CUSTOM image must be a digest-pinned same-region OCIR reference, using sha256 with exactly 64 lowercase hexadecimal characters. The CP workflow prepares the template through the data plane, reusing current BYOC image and Project identity validation. Successful configuration does not guarantee image pull or runtime readiness.
- Returns:
- the value
-
getShape
public CreateSandboxWarmPoolDetails.Shape getShape()
Compute shape for each idle Sandbox member.- Returns:
- the value
-
getDesiredCapacity
public Integer getDesiredCapacity()
Desired number of idle members.Zero pauses idle prewarming. Once the pool is ACTIVE, named-pool Sandbox creation can still cold-start from its available applied template when no eligible warm member is available. Existing customer Sandboxes continue. A positive target does not guarantee ready capacity. Existing service capacity validation still applies.
- 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
-
-