Class Sandbox.Builder

  • Enclosing class:
    Sandbox

    public static class Sandbox.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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