Class NotebooksRuntimeConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.notebooks_runtime.NotebooksRuntimeConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NotebooksRuntimeConfig>
- Enclosing interface:
- NotebooksRuntimeConfig
@Stability(Stable) public static final class NotebooksRuntimeConfig.Builder extends Object implements software.amazon.jsii.Builder<NotebooksRuntimeConfig>
A builder forNotebooksRuntimeConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotebooksRuntimeConfig.BuilderaccessConfig(NotebooksRuntimeAccessConfig accessConfig)Sets the value ofNotebooksRuntimeConfig.getAccessConfig()NotebooksRuntimeConfigbuild()Builds the configured instance.NotebooksRuntimeConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()NotebooksRuntimeConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()NotebooksRuntimeConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()NotebooksRuntimeConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()NotebooksRuntimeConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()NotebooksRuntimeConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()NotebooksRuntimeConfig.Builderid(String id)Sets the value ofNotebooksRuntimeConfig.getId()NotebooksRuntimeConfig.Builderlabels(Map<String,String> labels)Sets the value ofNotebooksRuntimeConfig.getLabels()NotebooksRuntimeConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()NotebooksRuntimeConfig.Builderlocation(String location)Sets the value ofNotebooksRuntimeConfig.getLocation()NotebooksRuntimeConfig.Buildername(String name)Sets the value ofNotebooksRuntimeConfig.getName()NotebooksRuntimeConfig.Builderproject(String project)Sets the value ofNotebooksRuntimeConfig.getProject()NotebooksRuntimeConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()NotebooksRuntimeConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()NotebooksRuntimeConfig.BuildersoftwareConfig(NotebooksRuntimeSoftwareConfig softwareConfig)Sets the value ofNotebooksRuntimeConfig.getSoftwareConfig()NotebooksRuntimeConfig.Buildertimeouts(NotebooksRuntimeTimeouts timeouts)Sets the value ofNotebooksRuntimeConfig.getTimeouts()NotebooksRuntimeConfig.BuildervirtualMachine(NotebooksRuntimeVirtualMachine virtualMachine)Sets the value ofNotebooksRuntimeConfig.getVirtualMachine()
-
-
-
Method Detail
-
location
@Stability(Stable) public NotebooksRuntimeConfig.Builder location(String location)
Sets the value ofNotebooksRuntimeConfig.getLocation()- Parameters:
location- A reference to the zone where the machine resides. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#location NotebooksRuntime#location}- Returns:
this
-
name
@Stability(Stable) public NotebooksRuntimeConfig.Builder name(String name)
Sets the value ofNotebooksRuntimeConfig.getName()- Parameters:
name- The name specified for the Notebook runtime. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#name NotebooksRuntime#name}- Returns:
this
-
accessConfig
@Stability(Stable) public NotebooksRuntimeConfig.Builder accessConfig(NotebooksRuntimeAccessConfig accessConfig)
Sets the value ofNotebooksRuntimeConfig.getAccessConfig()- Parameters:
accessConfig- access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#access_config NotebooksRuntime#access_config}- Returns:
this
-
id
@Stability(Stable) public NotebooksRuntimeConfig.Builder id(String id)
Sets the value ofNotebooksRuntimeConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#id NotebooksRuntime#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
labels
@Stability(Stable) public NotebooksRuntimeConfig.Builder labels(Map<String,String> labels)
Sets the value ofNotebooksRuntimeConfig.getLabels()- Parameters:
labels- The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#labels NotebooksRuntime#labels}- Returns:
this
-
project
@Stability(Stable) public NotebooksRuntimeConfig.Builder project(String project)
Sets the value ofNotebooksRuntimeConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#project NotebooksRuntime#project}.- Returns:
this
-
softwareConfig
@Stability(Stable) public NotebooksRuntimeConfig.Builder softwareConfig(NotebooksRuntimeSoftwareConfig softwareConfig)
Sets the value ofNotebooksRuntimeConfig.getSoftwareConfig()- Parameters:
softwareConfig- software_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#software_config NotebooksRuntime#software_config}- Returns:
this
-
timeouts
@Stability(Stable) public NotebooksRuntimeConfig.Builder timeouts(NotebooksRuntimeTimeouts timeouts)
Sets the value ofNotebooksRuntimeConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#timeouts NotebooksRuntime#timeouts}- Returns:
this
-
virtualMachine
@Stability(Stable) public NotebooksRuntimeConfig.Builder virtualMachine(NotebooksRuntimeVirtualMachine virtualMachine)
Sets the value ofNotebooksRuntimeConfig.getVirtualMachine()- Parameters:
virtualMachine- virtual_machine block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#virtual_machine NotebooksRuntime#virtual_machine}- Returns:
this
-
connection
@Stability(Experimental) public NotebooksRuntimeConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public NotebooksRuntimeConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NotebooksRuntimeConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NotebooksRuntimeConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public NotebooksRuntimeConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public NotebooksRuntimeConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public NotebooksRuntimeConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public NotebooksRuntimeConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public NotebooksRuntimeConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NotebooksRuntimeConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NotebooksRuntimeConfig>- Returns:
- a new instance of
NotebooksRuntimeConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-