Class NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.notebooks_runtime.NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NotebooksRuntimeVirtualMachineVirtualMachineConfig>
- Enclosing interface:
- NotebooksRuntimeVirtualMachineVirtualMachineConfig
@Stability(Stable) public static final class NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder extends Object implements software.amazon.jsii.Builder<NotebooksRuntimeVirtualMachineVirtualMachineConfig>
A builder forNotebooksRuntimeVirtualMachineVirtualMachineConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
dataDisk
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder dataDisk(NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDisk dataDisk)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getDataDisk()- Parameters:
dataDisk- data_disk block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#data_disk NotebooksRuntime#data_disk}- Returns:
this
-
machineType
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder machineType(String machineType)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getMachineType()- Parameters:
machineType- The Compute Engine machine type used for runtimes. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#machine_type NotebooksRuntime#machine_type}- Returns:
this
-
acceleratorConfig
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder acceleratorConfig(NotebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfig acceleratorConfig)
- Parameters:
acceleratorConfig- accelerator_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#accelerator_config NotebooksRuntime#accelerator_config}- Returns:
this
-
containerImages
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder containerImages(com.hashicorp.cdktf.IResolvable containerImages)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getContainerImages()- Parameters:
containerImages- container_images block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#container_images NotebooksRuntime#container_images}- Returns:
this
-
containerImages
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder containerImages(List<? extends NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImages> containerImages)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getContainerImages()- Parameters:
containerImages- container_images block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#container_images NotebooksRuntime#container_images}- Returns:
this
-
encryptionConfig
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder encryptionConfig(NotebooksRuntimeVirtualMachineVirtualMachineConfigEncryptionConfig encryptionConfig)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getEncryptionConfig()- Parameters:
encryptionConfig- encryption_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#encryption_config NotebooksRuntime#encryption_config}- Returns:
this
-
internalIpOnly
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder internalIpOnly(Boolean internalIpOnly)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getInternalIpOnly()- Parameters:
internalIpOnly- If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This 'internal_ip_only' restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#internal_ip_only NotebooksRuntime#internal_ip_only}- Returns:
this
-
internalIpOnly
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder internalIpOnly(com.hashicorp.cdktf.IResolvable internalIpOnly)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getInternalIpOnly()- Parameters:
internalIpOnly- If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This 'internal_ip_only' restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#internal_ip_only NotebooksRuntime#internal_ip_only}- Returns:
this
-
labels
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder labels(Map<String,String> labels)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#labels NotebooksRuntime#labels}- Returns:
this
-
metadata
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder metadata(Map<String,String> metadata)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getMetadata()- Parameters:
metadata- The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com /compute/docs/storing-retrieving-metadata#project_and_instance _metadata)). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#metadata NotebooksRuntime#metadata}- Returns:
this
-
network
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder network(String network)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getNetwork()- Parameters:
network- The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither 'network' nor 'subnet' is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples: * 'https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/global/default' * 'projects/[project_id]/regions/global/default' Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network & subnet are empty) * Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access. * Shared VPC (network & subnet are required). Requires configuring Private Service Access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#network NotebooksRuntime#network}- Returns:
this
-
nicType
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder nicType(String nicType)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getNicType()- Parameters:
nicType- The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Possible values: ["UNSPECIFIED_NIC_TYPE", "VIRTIO_NET", "GVNIC"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#nic_type NotebooksRuntime#nic_type}- Returns:
this
-
reservedIpRange
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder reservedIpRange(String reservedIpRange)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getReservedIpRange()- Parameters:
reservedIpRange- Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range name if it's assigned. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#reserved_ip_range NotebooksRuntime#reserved_ip_range}- Returns:
this
-
shieldedInstanceConfig
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder shieldedInstanceConfig(NotebooksRuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfig shieldedInstanceConfig)
- Parameters:
shieldedInstanceConfig- shielded_instance_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#shielded_instance_config NotebooksRuntime#shielded_instance_config}- Returns:
this
-
subnet
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder subnet(String subnet)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getSubnet()- Parameters:
subnet- The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * 'https://www.googleapis.com/compute/v1/projects/[project_id]/ regions/us-east1/subnetworks/sub0' * 'projects/[project_id]/regions/us-east1/subnetworks/sub0' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#subnet NotebooksRuntime#subnet}- Returns:
this
-
tags
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig.Builder tags(List<String> tags)
Sets the value ofNotebooksRuntimeVirtualMachineVirtualMachineConfig.getTags()- Parameters:
tags- The Compute Engine tags to add to runtime (see [Tagging instances] (https://cloud.google.com/compute/docs/ label-or-tag-resources#tags)). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/notebooks_runtime#tags NotebooksRuntime#tags}- Returns:
this
-
build
@Stability(Stable) public NotebooksRuntimeVirtualMachineVirtualMachineConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NotebooksRuntimeVirtualMachineVirtualMachineConfig>- Returns:
- a new instance of
NotebooksRuntimeVirtualMachineVirtualMachineConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-