Class WorkbenchInstanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.workbench_instance.WorkbenchInstanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkbenchInstanceConfig>
- Enclosing interface:
- WorkbenchInstanceConfig
@Stability(Stable) public static final class WorkbenchInstanceConfig.Builder extends Object implements software.amazon.jsii.Builder<WorkbenchInstanceConfig>
A builder forWorkbenchInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public WorkbenchInstanceConfig.Builder location(String location)
Sets the value ofWorkbenchInstanceConfig.getLocation()- Parameters:
location- Part of 'parent'. See documentation of 'projectsId'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#location WorkbenchInstance#location}- Returns:
this
-
name
@Stability(Stable) public WorkbenchInstanceConfig.Builder name(String name)
Sets the value ofWorkbenchInstanceConfig.getName()- Parameters:
name- The name of this workbench instance. Format: 'projects/{project_id}/locations/{location}/instances/{instance_id}'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#name WorkbenchInstance#name}- Returns:
this
-
desiredState
@Stability(Stable) public WorkbenchInstanceConfig.Builder desiredState(String desiredState)
Sets the value ofWorkbenchInstanceConfig.getDesiredState()- Parameters:
desiredState- Desired state of the Workbench Instance. Set this field to 'ACTIVE' to start the Instance, and 'STOPPED' to stop the Instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#desired_state WorkbenchInstance#desired_state}- Returns:
this
-
disableProxyAccess
@Stability(Stable) public WorkbenchInstanceConfig.Builder disableProxyAccess(Boolean disableProxyAccess)
Sets the value ofWorkbenchInstanceConfig.getDisableProxyAccess()- Parameters:
disableProxyAccess- Optional. If true, the workbench instance will not register with the proxy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#disable_proxy_access WorkbenchInstance#disable_proxy_access}- Returns:
this
-
disableProxyAccess
@Stability(Stable) public WorkbenchInstanceConfig.Builder disableProxyAccess(com.hashicorp.cdktf.IResolvable disableProxyAccess)
Sets the value ofWorkbenchInstanceConfig.getDisableProxyAccess()- Parameters:
disableProxyAccess- Optional. If true, the workbench instance will not register with the proxy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#disable_proxy_access WorkbenchInstance#disable_proxy_access}- Returns:
this
-
gceSetup
@Stability(Stable) public WorkbenchInstanceConfig.Builder gceSetup(WorkbenchInstanceGceSetup gceSetup)
Sets the value ofWorkbenchInstanceConfig.getGceSetup()- Parameters:
gceSetup- gce_setup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#gce_setup WorkbenchInstance#gce_setup}- Returns:
this
-
id
@Stability(Stable) public WorkbenchInstanceConfig.Builder id(String id)
Sets the value ofWorkbenchInstanceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#id WorkbenchInstance#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
-
instanceId
@Stability(Stable) public WorkbenchInstanceConfig.Builder instanceId(String instanceId)
Sets the value ofWorkbenchInstanceConfig.getInstanceId()- Parameters:
instanceId- Required. User-defined unique ID of this instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#instance_id WorkbenchInstance#instance_id}- Returns:
this
-
instanceOwners
@Stability(Stable) public WorkbenchInstanceConfig.Builder instanceOwners(List<String> instanceOwners)
Sets the value ofWorkbenchInstanceConfig.getInstanceOwners()- Parameters:
instanceOwners- 'Optional. Input only. The owner of this instance after creation. Format: 'alias@example.com' Currently supports one owner only. If not specified, all of the service account users of your VM instance''s service account can use the instance.' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#instance_owners WorkbenchInstance#instance_owners}- Returns:
this
-
labels
@Stability(Stable) public WorkbenchInstanceConfig.Builder labels(Map<String,String> labels)
Sets the value ofWorkbenchInstanceConfig.getLabels()- Parameters:
labels- Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method. **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/workbench_instance#labels WorkbenchInstance#labels}- Returns:
this
-
project
@Stability(Stable) public WorkbenchInstanceConfig.Builder project(String project)
Sets the value ofWorkbenchInstanceConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#project WorkbenchInstance#project}.- Returns:
this
-
timeouts
@Stability(Stable) public WorkbenchInstanceConfig.Builder timeouts(WorkbenchInstanceTimeouts timeouts)
Sets the value ofWorkbenchInstanceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workbench_instance#timeouts WorkbenchInstance#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public WorkbenchInstanceConfig.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 WorkbenchInstanceConfig.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 WorkbenchInstanceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public WorkbenchInstanceConfig.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 WorkbenchInstanceConfig.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 WorkbenchInstanceConfig.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 WorkbenchInstanceConfig.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 WorkbenchInstanceConfig.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 WorkbenchInstanceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public WorkbenchInstanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkbenchInstanceConfig>- Returns:
- a new instance of
WorkbenchInstanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-