Class WorkbenchInstanceConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • location

        @Stability(Stable)
        public WorkbenchInstanceConfig.Builder location​(String location)
        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)
        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)
        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)
        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)
        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
      • id

        @Stability(Stable)
        public WorkbenchInstanceConfig.Builder id​(String id)
        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)
        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)
        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)
        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
      • connection

        @Stability(Experimental)
        public WorkbenchInstanceConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public WorkbenchInstanceConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public WorkbenchInstanceConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this