Class SandboxSummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 1.0")
    public final class SandboxSummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Sandbox resource representation.
    Note: Objects should always be created or deserialized using the SandboxSummary.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 the SandboxSummary.Builder, which maintain a set of all explicitly set fields called SandboxSummary.Builder.__explicitlySet__. The hashCode() and equals(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).
    • Method Detail

      • 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.

        Allowed values are: - RUNNING - CREATING - UPDATING - DELETED - FAILED - SUSPENDING - SUSPENDED - RESUMING - STOPPING - STOPPED

        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.

        Returns:
        the value
      • getPublishedPorts

        public List<PublishedPort> getPublishedPorts()
        Published ports for the sandbox proxy endpoint.
        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
      • 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:
        toString in class com.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:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel