Class ContainerClusterIpAllocationPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterIpAllocationPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterIpAllocationPolicy>
- Enclosing interface:
- ContainerClusterIpAllocationPolicy
@Stability(Stable) public static final class ContainerClusterIpAllocationPolicy.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterIpAllocationPolicy>
A builder forContainerClusterIpAllocationPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
additionalPodRangesConfig
@Stability(Stable) public ContainerClusterIpAllocationPolicy.Builder additionalPodRangesConfig(ContainerClusterIpAllocationPolicyAdditionalPodRangesConfig additionalPodRangesConfig)
Sets the value ofContainerClusterIpAllocationPolicy.getAdditionalPodRangesConfig()- Parameters:
additionalPodRangesConfig- additional_pod_ranges_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#additional_pod_ranges_config ContainerCluster#additional_pod_ranges_config}- Returns:
this
-
clusterIpv4CidrBlock
@Stability(Stable) public ContainerClusterIpAllocationPolicy.Builder clusterIpv4CidrBlock(String clusterIpv4CidrBlock)
Sets the value ofContainerClusterIpAllocationPolicy.getClusterIpv4CidrBlock()- 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)
Sets the value ofContainerClusterIpAllocationPolicy.getClusterSecondaryRangeName()- 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
-
podCidrOverprovisionConfig
@Stability(Stable) public ContainerClusterIpAllocationPolicy.Builder podCidrOverprovisionConfig(ContainerClusterIpAllocationPolicyPodCidrOverprovisionConfig podCidrOverprovisionConfig)
Sets the value ofContainerClusterIpAllocationPolicy.getPodCidrOverprovisionConfig()- Parameters:
podCidrOverprovisionConfig- pod_cidr_overprovision_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#pod_cidr_overprovision_config ContainerCluster#pod_cidr_overprovision_config}- Returns:
this
-
servicesIpv4CidrBlock
@Stability(Stable) public ContainerClusterIpAllocationPolicy.Builder servicesIpv4CidrBlock(String servicesIpv4CidrBlock)
Sets the value ofContainerClusterIpAllocationPolicy.getServicesIpv4CidrBlock()- 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)
Sets the value ofContainerClusterIpAllocationPolicy.getServicesSecondaryRangeName()- 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)
Sets the value ofContainerClusterIpAllocationPolicy.getStackType()- 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
-
build
@Stability(Stable) public ContainerClusterIpAllocationPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterIpAllocationPolicy>- Returns:
- a new instance of
ContainerClusterIpAllocationPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-