Class GkeonpremBareMetalClusterMaintenanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.gkeonprem_bare_metal_cluster.GkeonpremBareMetalClusterMaintenanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GkeonpremBareMetalClusterMaintenanceConfig>
- Enclosing interface:
- GkeonpremBareMetalClusterMaintenanceConfig
@Stability(Stable) public static final class GkeonpremBareMetalClusterMaintenanceConfig.Builder extends Object implements software.amazon.jsii.Builder<GkeonpremBareMetalClusterMaintenanceConfig>
A builder forGkeonpremBareMetalClusterMaintenanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GkeonpremBareMetalClusterMaintenanceConfigbuild()Builds the configured instance.GkeonpremBareMetalClusterMaintenanceConfig.BuildermaintenanceAddressCidrBlocks(List<String> maintenanceAddressCidrBlocks)
-
-
-
Method Detail
-
maintenanceAddressCidrBlocks
@Stability(Stable) public GkeonpremBareMetalClusterMaintenanceConfig.Builder maintenanceAddressCidrBlocks(List<String> maintenanceAddressCidrBlocks)
- Parameters:
maintenanceAddressCidrBlocks- All IPv4 address from these ranges will be placed into maintenance mode. This parameter is required. Nodes in maintenance mode will be cordoned and drained. When both of these are true, the "baremetal.cluster.gke.io/maintenance" annotation will be set on the node resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#maintenance_address_cidr_blocks GkeonpremBareMetalCluster#maintenance_address_cidr_blocks}- Returns:
this
-
build
@Stability(Stable) public GkeonpremBareMetalClusterMaintenanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GkeonpremBareMetalClusterMaintenanceConfig>- Returns:
- a new instance of
GkeonpremBareMetalClusterMaintenanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-