Class MemcacheInstanceConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder name​(String name)
        Parameters:
        name - The resource name of the instance. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#name MemcacheInstance#name}
        Returns:
        this
      • nodeCount

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder nodeCount​(Number nodeCount)
        Parameters:
        nodeCount - Number of nodes in the memcache instance. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#node_count MemcacheInstance#node_count}
        Returns:
        this
      • authorizedNetwork

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder authorizedNetwork​(String authorizedNetwork)
        Parameters:
        authorizedNetwork - The full name of the GCE network to connect the instance to. If not provided, 'default' will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#authorized_network MemcacheInstance#authorized_network}
        Returns:
        this
      • displayName

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder displayName​(String displayName)
        Parameters:
        displayName - A user-visible name for the instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#display_name MemcacheInstance#display_name}
        Returns:
        this
      • id

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#id MemcacheInstance#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 MemcacheInstanceConfig.Builder labels​(Map<String,​String> labels)
        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/memcache_instance#labels MemcacheInstance#labels}
        Returns:
        this
      • memcacheVersion

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder memcacheVersion​(String memcacheVersion)
        Parameters:
        memcacheVersion - The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version. Default value: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#memcache_version MemcacheInstance#memcache_version}
        Returns:
        this
      • region

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder region​(String region)
        Parameters:
        region - The region of the Memcache instance. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#region MemcacheInstance#region}
        Returns:
        this
      • reservedIpRangeId

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder reservedIpRangeId​(List<String> reservedIpRangeId)
        Parameters:
        reservedIpRangeId - Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#reserved_ip_range_id MemcacheInstance#reserved_ip_range_id}
        Returns:
        this
      • zones

        @Stability(Stable)
        public MemcacheInstanceConfig.Builder zones​(List<String> zones)
        Parameters:
        zones - Zones where memcache nodes should be provisioned. If not provided, all zones will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#zones MemcacheInstance#zones}
        Returns:
        this
      • connection

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

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