Class SandboxSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public SandboxSummary.Builder displayName​(String displayName)
        Display name for sandbox
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • projectId

        public SandboxSummary.Builder projectId​(String projectId)
        GenerativeAiProject ID that sandbox belongs to
        Parameters:
        projectId - the value to set
        Returns:
        this builder
      • lifecycleState

        public SandboxSummary.Builder lifecycleState​(Sandbox.LifecycleState lifecycleState)
        The current state of the Sandbox.

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

        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • warmpoolName

        public SandboxSummary.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 SandboxSummary.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 SandboxSummary.Builder publishedPortAuthMode​(Sandbox.PublishedPortAuthMode publishedPortAuthMode)
        Persisted published-port authorization mode.

        Absent for legacy sandboxes.

        Parameters:
        publishedPortAuthMode - the value to set
        Returns:
        this builder
      • publishedPorts

        public SandboxSummary.Builder publishedPorts​(List<PublishedPort> publishedPorts)
        Published ports for the sandbox proxy endpoint.
        Parameters:
        publishedPorts - the value to set
        Returns:
        this builder
      • expiresInMinutes

        public SandboxSummary.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 SandboxSummary.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
      • timeCreated

        public SandboxSummary.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 SandboxSummary.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 SandboxSummary.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 SandboxSummary.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