Class WorkbenchInstanceGceSetup.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.workbench_instance.WorkbenchInstanceGceSetup.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkbenchInstanceGceSetup>
- Enclosing interface:
- WorkbenchInstanceGceSetup
@Stability(Stable) public static final class WorkbenchInstanceGceSetup.Builder extends Object implements software.amazon.jsii.Builder<WorkbenchInstanceGceSetup>
A builder forWorkbenchInstanceGceSetup
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
acceleratorConfigs
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder acceleratorConfigs(com.hashicorp.cdktf.IResolvable acceleratorConfigs)
Sets the value ofWorkbenchInstanceGceSetup.getAcceleratorConfigs()- Parameters:
acceleratorConfigs- accelerator_configs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#accelerator_configs WorkbenchInstance#accelerator_configs}- Returns:
this
-
acceleratorConfigs
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder acceleratorConfigs(List<? extends WorkbenchInstanceGceSetupAcceleratorConfigs> acceleratorConfigs)
Sets the value ofWorkbenchInstanceGceSetup.getAcceleratorConfigs()- Parameters:
acceleratorConfigs- accelerator_configs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#accelerator_configs WorkbenchInstance#accelerator_configs}- Returns:
this
-
bootDisk
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder bootDisk(WorkbenchInstanceGceSetupBootDisk bootDisk)
Sets the value ofWorkbenchInstanceGceSetup.getBootDisk()- Parameters:
bootDisk- boot_disk block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#boot_disk WorkbenchInstance#boot_disk}- Returns:
this
-
containerImage
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder containerImage(WorkbenchInstanceGceSetupContainerImage containerImage)
Sets the value ofWorkbenchInstanceGceSetup.getContainerImage()- Parameters:
containerImage- container_image block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#container_image WorkbenchInstance#container_image}- Returns:
this
-
dataDisks
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder dataDisks(WorkbenchInstanceGceSetupDataDisks dataDisks)
Sets the value ofWorkbenchInstanceGceSetup.getDataDisks()- Parameters:
dataDisks- data_disks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#data_disks WorkbenchInstance#data_disks}- Returns:
this
-
disablePublicIp
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder disablePublicIp(Boolean disablePublicIp)
Sets the value ofWorkbenchInstanceGceSetup.getDisablePublicIp()- Parameters:
disablePublicIp- Optional. If true, no external IP will be assigned to this VM instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#disable_public_ip WorkbenchInstance#disable_public_ip}- Returns:
this
-
disablePublicIp
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder disablePublicIp(com.hashicorp.cdktf.IResolvable disablePublicIp)
Sets the value ofWorkbenchInstanceGceSetup.getDisablePublicIp()- Parameters:
disablePublicIp- Optional. If true, no external IP will be assigned to this VM instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#disable_public_ip WorkbenchInstance#disable_public_ip}- Returns:
this
-
enableIpForwarding
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder enableIpForwarding(Boolean enableIpForwarding)
Sets the value ofWorkbenchInstanceGceSetup.getEnableIpForwarding()- Parameters:
enableIpForwarding- Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#enable_ip_forwarding WorkbenchInstance#enable_ip_forwarding}- Returns:
this
-
enableIpForwarding
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder enableIpForwarding(com.hashicorp.cdktf.IResolvable enableIpForwarding)
Sets the value ofWorkbenchInstanceGceSetup.getEnableIpForwarding()- Parameters:
enableIpForwarding- Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#enable_ip_forwarding WorkbenchInstance#enable_ip_forwarding}- Returns:
this
-
machineType
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder machineType(String machineType)
Sets the value ofWorkbenchInstanceGceSetup.getMachineType()- Parameters:
machineType- Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#machine_type WorkbenchInstance#machine_type}- Returns:
this
-
metadata
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder metadata(Map<String,String> metadata)
Sets the value ofWorkbenchInstanceGceSetup.getMetadata()- Parameters:
metadata- Optional. Custom metadata to apply to this instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#metadata WorkbenchInstance#metadata}- Returns:
this
-
networkInterfaces
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder networkInterfaces(com.hashicorp.cdktf.IResolvable networkInterfaces)
Sets the value ofWorkbenchInstanceGceSetup.getNetworkInterfaces()- Parameters:
networkInterfaces- network_interfaces block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#network_interfaces WorkbenchInstance#network_interfaces}- Returns:
this
-
networkInterfaces
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder networkInterfaces(List<? extends WorkbenchInstanceGceSetupNetworkInterfaces> networkInterfaces)
Sets the value ofWorkbenchInstanceGceSetup.getNetworkInterfaces()- Parameters:
networkInterfaces- network_interfaces block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#network_interfaces WorkbenchInstance#network_interfaces}- Returns:
this
-
serviceAccounts
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder serviceAccounts(com.hashicorp.cdktf.IResolvable serviceAccounts)
Sets the value ofWorkbenchInstanceGceSetup.getServiceAccounts()- Parameters:
serviceAccounts- service_accounts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#service_accounts WorkbenchInstance#service_accounts}- Returns:
this
-
serviceAccounts
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder serviceAccounts(List<? extends WorkbenchInstanceGceSetupServiceAccounts> serviceAccounts)
Sets the value ofWorkbenchInstanceGceSetup.getServiceAccounts()- Parameters:
serviceAccounts- service_accounts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#service_accounts WorkbenchInstance#service_accounts}- Returns:
this
-
shieldedInstanceConfig
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder shieldedInstanceConfig(WorkbenchInstanceGceSetupShieldedInstanceConfig shieldedInstanceConfig)
Sets the value ofWorkbenchInstanceGceSetup.getShieldedInstanceConfig()- Parameters:
shieldedInstanceConfig- shielded_instance_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#shielded_instance_config WorkbenchInstance#shielded_instance_config}- Returns:
this
-
tags
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder tags(List<String> tags)
Sets the value ofWorkbenchInstanceGceSetup.getTags()- Parameters:
tags- Optional. The Compute Engine tags to add to instance (see Tagging instances). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#tags WorkbenchInstance#tags}- Returns:
this
-
vmImage
@Stability(Stable) public WorkbenchInstanceGceSetup.Builder vmImage(WorkbenchInstanceGceSetupVmImage vmImage)
Sets the value ofWorkbenchInstanceGceSetup.getVmImage()- Parameters:
vmImage- vm_image block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#vm_image WorkbenchInstance#vm_image}- Returns:
this
-
build
@Stability(Stable) public WorkbenchInstanceGceSetup build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkbenchInstanceGceSetup>- Returns:
- a new instance of
WorkbenchInstanceGceSetup - Throws:
NullPointerException- if any required attribute was not provided
-
-