Class CreateEnvironmentRequest

java.lang.Object
com.google.genai.gaos.models.environments.CreateEnvironmentRequest

public class CreateEnvironmentRequest extends Object
CreateEnvironmentRequest

Request for creating an environment.

  • Constructor Details

  • Method Details

    • customConfig

      public Optional<Map<String,Object>> customConfig()
      Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`.
    • env

      public Optional<Map<String,Env>> env()
      Environment variables to set in the sandbox environment.
    • fromEnvironment

      public Optional<String> fromEnvironment()
      Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.
    • mode

      public Optional<EnvironmentMode> mode()
      The compute lifecycle mode for an environment.
    • network

      Network configuration for the environment.
    • sources

      public Optional<List<Source>> sources()
      Sources to be mounted into the environment.
    • systemInstruction

      public Optional<String> systemInstruction()
      Optional. System instruction applied to interactions running in this environment. Only supported for `SELF_HOSTED` environments, where it is recommended.
    • builder

      public static CreateEnvironmentRequest.Builder builder()
    • withCustomConfig

      public CreateEnvironmentRequest withCustomConfig(@Nullable Map<String,Object> customConfig)
      Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`.
    • withEnv

      public CreateEnvironmentRequest withEnv(@Nullable Map<String,Env> env)
      Environment variables to set in the sandbox environment.
    • withFromEnvironment

      public CreateEnvironmentRequest withFromEnvironment(@Nullable String fromEnvironment)
      Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.
    • withMode

      public CreateEnvironmentRequest withMode(@Nullable EnvironmentMode mode)
      The compute lifecycle mode for an environment.
    • withNetwork

      public CreateEnvironmentRequest withNetwork(@Nullable CreateEnvironmentRequestNetworkUnion network)
      Network configuration for the environment.
    • withSources

      public CreateEnvironmentRequest withSources(@Nullable List<Source> sources)
      Sources to be mounted into the environment.
    • withSystemInstruction

      public CreateEnvironmentRequest withSystemInstruction(@Nullable String systemInstruction)
      Optional. System instruction applied to interactions running in this environment. Only supported for `SELF_HOSTED` environments, where it is recommended.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object