Class ContainerClusterClusterAutoscaling.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterClusterAutoscaling.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterClusterAutoscaling>
- Enclosing interface:
- ContainerClusterClusterAutoscaling
@Stability(Stable) public static final class ContainerClusterClusterAutoscaling.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterClusterAutoscaling>
A builder forContainerClusterClusterAutoscaling
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
autoProvisioningDefaults
@Stability(Stable) public ContainerClusterClusterAutoscaling.Builder autoProvisioningDefaults(ContainerClusterClusterAutoscalingAutoProvisioningDefaults autoProvisioningDefaults)
Sets the value ofContainerClusterClusterAutoscaling.getAutoProvisioningDefaults()- Parameters:
autoProvisioningDefaults- auto_provisioning_defaults block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#auto_provisioning_defaults ContainerCluster#auto_provisioning_defaults}- Returns:
this
-
autoProvisioningLocations
@Stability(Stable) public ContainerClusterClusterAutoscaling.Builder autoProvisioningLocations(List<String> autoProvisioningLocations)
Sets the value ofContainerClusterClusterAutoscaling.getAutoProvisioningLocations()- Parameters:
autoProvisioningLocations- The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#auto_provisioning_locations ContainerCluster#auto_provisioning_locations}- Returns:
this
-
autoscalingProfile
@Stability(Stable) public ContainerClusterClusterAutoscaling.Builder autoscalingProfile(String autoscalingProfile)
Sets the value ofContainerClusterClusterAutoscaling.getAutoscalingProfile()- Parameters:
autoscalingProfile- Configuration options for the Autoscaling profile feature, which lets you choose whether the cluster autoscaler should optimize for resource utilization or resource availability when deciding to remove nodes from a cluster. Can be BALANCED or OPTIMIZE_UTILIZATION. Defaults to BALANCED. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#autoscaling_profile ContainerCluster#autoscaling_profile}- Returns:
this
-
enabled
@Stability(Stable) public ContainerClusterClusterAutoscaling.Builder enabled(Boolean enabled)
Sets the value ofContainerClusterClusterAutoscaling.getEnabled()- Parameters:
enabled- Whether node auto-provisioning is enabled. Resource limits for cpu and memory must be defined to enable node auto-provisioning. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enabled ContainerCluster#enabled}- Returns:
this
-
enabled
@Stability(Stable) public ContainerClusterClusterAutoscaling.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofContainerClusterClusterAutoscaling.getEnabled()- Parameters:
enabled- Whether node auto-provisioning is enabled. Resource limits for cpu and memory must be defined to enable node auto-provisioning. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enabled ContainerCluster#enabled}- Returns:
this
-
resourceLimits
@Stability(Stable) public ContainerClusterClusterAutoscaling.Builder resourceLimits(com.hashicorp.cdktf.IResolvable resourceLimits)
Sets the value ofContainerClusterClusterAutoscaling.getResourceLimits()- Parameters:
resourceLimits- resource_limits block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#resource_limits ContainerCluster#resource_limits}- Returns:
this
-
resourceLimits
@Stability(Stable) public ContainerClusterClusterAutoscaling.Builder resourceLimits(List<? extends ContainerClusterClusterAutoscalingResourceLimits> resourceLimits)
Sets the value ofContainerClusterClusterAutoscaling.getResourceLimits()- Parameters:
resourceLimits- resource_limits block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#resource_limits ContainerCluster#resource_limits}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterClusterAutoscaling build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterClusterAutoscaling>- Returns:
- a new instance of
ContainerClusterClusterAutoscaling - Throws:
NullPointerException- if any required attribute was not provided
-
-