Class ContainerClusterIpAllocationPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • clusterIpv4CidrBlock

        @Stability(Stable)
        public ContainerClusterIpAllocationPolicy.Builder clusterIpv4CidrBlock​(String clusterIpv4CidrBlock)
        Parameters:
        clusterIpv4CidrBlock - The IP address range for the cluster pod IPs. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#cluster_ipv4_cidr_block ContainerCluster#cluster_ipv4_cidr_block}
        Returns:
        this
      • clusterSecondaryRangeName

        @Stability(Stable)
        public ContainerClusterIpAllocationPolicy.Builder clusterSecondaryRangeName​(String clusterSecondaryRangeName)
        Parameters:
        clusterSecondaryRangeName - The name of the existing secondary range in the cluster's subnetwork to use for pod IP addresses. Alternatively, cluster_ipv4_cidr_block can be used to automatically create a GKE-managed one. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#cluster_secondary_range_name ContainerCluster#cluster_secondary_range_name}
        Returns:
        this
      • servicesIpv4CidrBlock

        @Stability(Stable)
        public ContainerClusterIpAllocationPolicy.Builder servicesIpv4CidrBlock​(String servicesIpv4CidrBlock)
        Parameters:
        servicesIpv4CidrBlock - The IP address range of the services IPs in this cluster. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#services_ipv4_cidr_block ContainerCluster#services_ipv4_cidr_block}
        Returns:
        this
      • servicesSecondaryRangeName

        @Stability(Stable)
        public ContainerClusterIpAllocationPolicy.Builder servicesSecondaryRangeName​(String servicesSecondaryRangeName)
        Parameters:
        servicesSecondaryRangeName - The name of the existing secondary range in the cluster's subnetwork to use for service ClusterIPs. Alternatively, services_ipv4_cidr_block can be used to automatically create a GKE-managed one. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#services_secondary_range_name ContainerCluster#services_secondary_range_name}
        Returns:
        this
      • stackType

        @Stability(Stable)
        public ContainerClusterIpAllocationPolicy.Builder stackType​(String stackType)
        Parameters:
        stackType - The IP Stack type of the cluster. Choose between IPV4 and IPV4_IPV6. Default type is IPV4 Only if not set Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#stack_type ContainerCluster#stack_type}
        Returns:
        this