Class ContainerClusterPrivateClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterPrivateClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterPrivateClusterConfig>
- Enclosing interface:
- ContainerClusterPrivateClusterConfig
@Stability(Stable) public static final class ContainerClusterPrivateClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterPrivateClusterConfig>
A builder forContainerClusterPrivateClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
enablePrivateEndpoint
@Stability(Stable) public ContainerClusterPrivateClusterConfig.Builder enablePrivateEndpoint(Boolean enablePrivateEndpoint)
Sets the value ofContainerClusterPrivateClusterConfig.getEnablePrivateEndpoint()- Parameters:
enablePrivateEndpoint- When true, the cluster's private endpoint is used as the cluster endpoint and access through the public endpoint is disabled. When false, either endpoint can be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_endpoint ContainerCluster#enable_private_endpoint}- Returns:
this
-
enablePrivateEndpoint
@Stability(Stable) public ContainerClusterPrivateClusterConfig.Builder enablePrivateEndpoint(com.hashicorp.cdktf.IResolvable enablePrivateEndpoint)
Sets the value ofContainerClusterPrivateClusterConfig.getEnablePrivateEndpoint()- Parameters:
enablePrivateEndpoint- When true, the cluster's private endpoint is used as the cluster endpoint and access through the public endpoint is disabled. When false, either endpoint can be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_endpoint ContainerCluster#enable_private_endpoint}- Returns:
this
-
enablePrivateNodes
@Stability(Stable) public ContainerClusterPrivateClusterConfig.Builder enablePrivateNodes(Boolean enablePrivateNodes)
Sets the value ofContainerClusterPrivateClusterConfig.getEnablePrivateNodes()- Parameters:
enablePrivateNodes- Enables the private cluster feature, creating a private endpoint on the cluster. In a private cluster, nodes only have RFC 1918 private addresses and communicate with the master's private endpoint via private networking. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_nodes ContainerCluster#enable_private_nodes}- Returns:
this
-
enablePrivateNodes
@Stability(Stable) public ContainerClusterPrivateClusterConfig.Builder enablePrivateNodes(com.hashicorp.cdktf.IResolvable enablePrivateNodes)
Sets the value ofContainerClusterPrivateClusterConfig.getEnablePrivateNodes()- Parameters:
enablePrivateNodes- Enables the private cluster feature, creating a private endpoint on the cluster. In a private cluster, nodes only have RFC 1918 private addresses and communicate with the master's private endpoint via private networking. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_nodes ContainerCluster#enable_private_nodes}- Returns:
this
-
masterGlobalAccessConfig
@Stability(Stable) public ContainerClusterPrivateClusterConfig.Builder masterGlobalAccessConfig(ContainerClusterPrivateClusterConfigMasterGlobalAccessConfig masterGlobalAccessConfig)
Sets the value ofContainerClusterPrivateClusterConfig.getMasterGlobalAccessConfig()- Parameters:
masterGlobalAccessConfig- master_global_access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#master_global_access_config ContainerCluster#master_global_access_config}- Returns:
this
-
masterIpv4CidrBlock
@Stability(Stable) public ContainerClusterPrivateClusterConfig.Builder masterIpv4CidrBlock(String masterIpv4CidrBlock)
Sets the value ofContainerClusterPrivateClusterConfig.getMasterIpv4CidrBlock()- Parameters:
masterIpv4CidrBlock- The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning private IP addresses to the cluster master(s) and the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network, and it must be a /28 subnet. See Private Cluster Limitations for more details. This field only applies to private clusters, when enable_private_nodes is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#master_ipv4_cidr_block ContainerCluster#master_ipv4_cidr_block}- Returns:
this
-
privateEndpointSubnetwork
@Stability(Stable) public ContainerClusterPrivateClusterConfig.Builder privateEndpointSubnetwork(String privateEndpointSubnetwork)
Sets the value ofContainerClusterPrivateClusterConfig.getPrivateEndpointSubnetwork()- Parameters:
privateEndpointSubnetwork- Subnetwork in cluster's network where master's endpoint will be provisioned. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#private_endpoint_subnetwork ContainerCluster#private_endpoint_subnetwork}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterPrivateClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterPrivateClusterConfig>- Returns:
- a new instance of
ContainerClusterPrivateClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-