Class TpuNodeConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • acceleratorType

        @Stability(Stable)
        public TpuNodeConfig.Builder acceleratorType​(String acceleratorType)
        Parameters:
        acceleratorType - The type of hardware accelerators associated with this node. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#accelerator_type TpuNode#accelerator_type}
        Returns:
        this
      • name

        @Stability(Stable)
        public TpuNodeConfig.Builder name​(String name)
        Sets the value of TpuNodeConfig.getName()
        Parameters:
        name - The immutable name of the TPU. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#name TpuNode#name}
        Returns:
        this
      • tensorflowVersion

        @Stability(Stable)
        public TpuNodeConfig.Builder tensorflowVersion​(String tensorflowVersion)
        Parameters:
        tensorflowVersion - The version of Tensorflow running in the Node. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#tensorflow_version TpuNode#tensorflow_version}
        Returns:
        this
      • cidrBlock

        @Stability(Stable)
        public TpuNodeConfig.Builder cidrBlock​(String cidrBlock)
        Parameters:
        cidrBlock - The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#cidr_block TpuNode#cidr_block}
        Returns:
        this
      • description

        @Stability(Stable)
        public TpuNodeConfig.Builder description​(String description)
        Parameters:
        description - The user-supplied description of the TPU. Maximum of 512 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#description TpuNode#description}
        Returns:
        this
      • id

        @Stability(Stable)
        public TpuNodeConfig.Builder id​(String id)
        Sets the value of TpuNodeConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#id TpuNode#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 TpuNodeConfig.Builder labels​(Map<String,​String> labels)
        Sets the value of TpuNodeConfig.getLabels()
        Parameters:
        labels - Resource labels to represent user provided metadata. **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/tpu_node#labels TpuNode#labels}
        Returns:
        this
      • network

        @Stability(Stable)
        public TpuNodeConfig.Builder network​(String network)
        Sets the value of TpuNodeConfig.getNetwork()
        Parameters:
        network - The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#network TpuNode#network}
        Returns:
        this
      • project

        @Stability(Stable)
        public TpuNodeConfig.Builder project​(String project)
        Sets the value of TpuNodeConfig.getProject()
        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#project TpuNode#project}.
        Returns:
        this
      • schedulingConfig

        @Stability(Stable)
        public TpuNodeConfig.Builder schedulingConfig​(TpuNodeSchedulingConfig schedulingConfig)
        Parameters:
        schedulingConfig - scheduling_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#scheduling_config TpuNode#scheduling_config}
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public TpuNodeConfig.Builder timeouts​(TpuNodeTimeouts timeouts)
        Sets the value of TpuNodeConfig.getTimeouts()
        Parameters:
        timeouts - timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#timeouts TpuNode#timeouts}
        Returns:
        this
      • useServiceNetworking

        @Stability(Stable)
        public TpuNodeConfig.Builder useServiceNetworking​(Boolean useServiceNetworking)
        Parameters:
        useServiceNetworking - Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network that you want to peer the TPU Node to is a Shared VPC network, the node must be created with this this field enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#use_service_networking TpuNode#use_service_networking}
        Returns:
        this
      • useServiceNetworking

        @Stability(Stable)
        public TpuNodeConfig.Builder useServiceNetworking​(com.hashicorp.cdktf.IResolvable useServiceNetworking)
        Parameters:
        useServiceNetworking - Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network that you want to peer the TPU Node to is a Shared VPC network, the node must be created with this this field enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#use_service_networking TpuNode#use_service_networking}
        Returns:
        this
      • zone

        @Stability(Stable)
        public TpuNodeConfig.Builder zone​(String zone)
        Sets the value of TpuNodeConfig.getZone()
        Parameters:
        zone - The GCP location for the TPU. If it is not provided, the provider zone is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#zone TpuNode#zone}
        Returns:
        this
      • connection

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

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