Class NotebooksRuntimeSoftwareConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.notebooks_runtime.NotebooksRuntimeSoftwareConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NotebooksRuntimeSoftwareConfig>
- Enclosing interface:
- NotebooksRuntimeSoftwareConfig
@Stability(Stable) public static final class NotebooksRuntimeSoftwareConfig.Builder extends Object implements software.amazon.jsii.Builder<NotebooksRuntimeSoftwareConfig>
A builder forNotebooksRuntimeSoftwareConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
customGpuDriverPath
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder customGpuDriverPath(String customGpuDriverPath)
Sets the value ofNotebooksRuntimeSoftwareConfig.getCustomGpuDriverPath()- Parameters:
customGpuDriverPath- Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#custom_gpu_driver_path NotebooksRuntime#custom_gpu_driver_path}- Returns:
this
-
enableHealthMonitoring
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder enableHealthMonitoring(Boolean enableHealthMonitoring)
Sets the value ofNotebooksRuntimeSoftwareConfig.getEnableHealthMonitoring()- Parameters:
enableHealthMonitoring- Verifies core internal services are running. Default: True. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#enable_health_monitoring NotebooksRuntime#enable_health_monitoring}- Returns:
this
-
enableHealthMonitoring
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder enableHealthMonitoring(com.hashicorp.cdktf.IResolvable enableHealthMonitoring)
Sets the value ofNotebooksRuntimeSoftwareConfig.getEnableHealthMonitoring()- Parameters:
enableHealthMonitoring- Verifies core internal services are running. Default: True. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#enable_health_monitoring NotebooksRuntime#enable_health_monitoring}- Returns:
this
-
idleShutdown
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder idleShutdown(Boolean idleShutdown)
Sets the value ofNotebooksRuntimeSoftwareConfig.getIdleShutdown()- Parameters:
idleShutdown- Runtime will automatically shutdown after idle_shutdown_time. Default: True. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#idle_shutdown NotebooksRuntime#idle_shutdown}- Returns:
this
-
idleShutdown
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder idleShutdown(com.hashicorp.cdktf.IResolvable idleShutdown)
Sets the value ofNotebooksRuntimeSoftwareConfig.getIdleShutdown()- Parameters:
idleShutdown- Runtime will automatically shutdown after idle_shutdown_time. Default: True. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#idle_shutdown NotebooksRuntime#idle_shutdown}- Returns:
this
-
idleShutdownTimeout
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder idleShutdownTimeout(Number idleShutdownTimeout)
Sets the value ofNotebooksRuntimeSoftwareConfig.getIdleShutdownTimeout()- Parameters:
idleShutdownTimeout- Time in minutes to wait before shuting down runtime. Default: 180 minutes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#idle_shutdown_timeout NotebooksRuntime#idle_shutdown_timeout}- Returns:
this
-
installGpuDriver
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder installGpuDriver(Boolean installGpuDriver)
Sets the value ofNotebooksRuntimeSoftwareConfig.getInstallGpuDriver()- Parameters:
installGpuDriver- Install Nvidia Driver automatically. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#install_gpu_driver NotebooksRuntime#install_gpu_driver}- Returns:
this
-
installGpuDriver
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder installGpuDriver(com.hashicorp.cdktf.IResolvable installGpuDriver)
Sets the value ofNotebooksRuntimeSoftwareConfig.getInstallGpuDriver()- Parameters:
installGpuDriver- Install Nvidia Driver automatically. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#install_gpu_driver NotebooksRuntime#install_gpu_driver}- Returns:
this
-
kernels
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder kernels(com.hashicorp.cdktf.IResolvable kernels)
Sets the value ofNotebooksRuntimeSoftwareConfig.getKernels()- Parameters:
kernels- kernels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#kernels NotebooksRuntime#kernels}- Returns:
this
-
kernels
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder kernels(List<? extends NotebooksRuntimeSoftwareConfigKernels> kernels)
Sets the value ofNotebooksRuntimeSoftwareConfig.getKernels()- Parameters:
kernels- kernels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#kernels NotebooksRuntime#kernels}- Returns:
this
-
notebookUpgradeSchedule
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder notebookUpgradeSchedule(String notebookUpgradeSchedule)
Sets the value ofNotebooksRuntimeSoftwareConfig.getNotebookUpgradeSchedule()- Parameters:
notebookUpgradeSchedule- Cron expression in UTC timezone for schedule instance auto upgrade. Please follow the cron format. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#notebook_upgrade_schedule NotebooksRuntime#notebook_upgrade_schedule}- Returns:
this
-
postStartupScript
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder postStartupScript(String postStartupScript)
Sets the value ofNotebooksRuntimeSoftwareConfig.getPostStartupScript()- Parameters:
postStartupScript- Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#post_startup_script NotebooksRuntime#post_startup_script}- Returns:
this
-
postStartupScriptBehavior
@Stability(Stable) public NotebooksRuntimeSoftwareConfig.Builder postStartupScriptBehavior(String postStartupScriptBehavior)
Sets the value ofNotebooksRuntimeSoftwareConfig.getPostStartupScriptBehavior()- Parameters:
postStartupScriptBehavior- Behavior for the post startup script. Possible values: ["POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED", "RUN_EVERY_START", "DOWNLOAD_AND_RUN_EVERY_START"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#post_startup_script_behavior NotebooksRuntime#post_startup_script_behavior}- Returns:
this
-
build
@Stability(Stable) public NotebooksRuntimeSoftwareConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NotebooksRuntimeSoftwareConfig>- Returns:
- a new instance of
NotebooksRuntimeSoftwareConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-