Class GkeonpremBareMetalClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.gkeonprem_bare_metal_cluster.GkeonpremBareMetalClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GkeonpremBareMetalClusterConfig>
- Enclosing interface:
- GkeonpremBareMetalClusterConfig
@Stability(Stable) public static final class GkeonpremBareMetalClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<GkeonpremBareMetalClusterConfig>
A builder forGkeonpremBareMetalClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
adminClusterMembership
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder adminClusterMembership(String adminClusterMembership)
Sets the value ofGkeonpremBareMetalClusterConfig.getAdminClusterMembership()- Parameters:
adminClusterMembership- The Admin Cluster this Bare Metal User Cluster belongs to. This parameter is required. This is the full resource name of the Admin Cluster's hub membership. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#admin_cluster_membership GkeonpremBareMetalCluster#admin_cluster_membership}- Returns:
this
-
bareMetalVersion
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder bareMetalVersion(String bareMetalVersion)
Sets the value ofGkeonpremBareMetalClusterConfig.getBareMetalVersion()- Parameters:
bareMetalVersion- A human readable description of this Bare Metal User Cluster. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#bare_metal_version GkeonpremBareMetalCluster#bare_metal_version}- Returns:
this
-
controlPlane
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder controlPlane(GkeonpremBareMetalClusterControlPlane controlPlane)
Sets the value ofGkeonpremBareMetalClusterConfig.getControlPlane()- Parameters:
controlPlane- control_plane block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#control_plane GkeonpremBareMetalCluster#control_plane}- Returns:
this
-
loadBalancer
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder loadBalancer(GkeonpremBareMetalClusterLoadBalancer loadBalancer)
Sets the value ofGkeonpremBareMetalClusterConfig.getLoadBalancer()- Parameters:
loadBalancer- load_balancer block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#load_balancer GkeonpremBareMetalCluster#load_balancer}- Returns:
this
-
location
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder location(String location)
Sets the value ofGkeonpremBareMetalClusterConfig.getLocation()- Parameters:
location- The location of the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#location GkeonpremBareMetalCluster#location}- Returns:
this
-
name
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder name(String name)
Sets the value ofGkeonpremBareMetalClusterConfig.getName()- Parameters:
name- The bare metal cluster name. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#name GkeonpremBareMetalCluster#name}- Returns:
this
-
networkConfig
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder networkConfig(GkeonpremBareMetalClusterNetworkConfig networkConfig)
Sets the value ofGkeonpremBareMetalClusterConfig.getNetworkConfig()- Parameters:
networkConfig- network_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#network_config GkeonpremBareMetalCluster#network_config}- Returns:
this
-
storage
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder storage(GkeonpremBareMetalClusterStorage storage)
Sets the value ofGkeonpremBareMetalClusterConfig.getStorage()- Parameters:
storage- storage block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#storage GkeonpremBareMetalCluster#storage}- Returns:
this
-
annotations
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder annotations(Map<String,String> annotations)
Sets the value ofGkeonpremBareMetalClusterConfig.getAnnotations()- Parameters:
annotations- Annotations on the Bare Metal User Cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#annotations GkeonpremBareMetalCluster#annotations}- Returns:
this
-
binaryAuthorization
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder binaryAuthorization(GkeonpremBareMetalClusterBinaryAuthorization binaryAuthorization)
Sets the value ofGkeonpremBareMetalClusterConfig.getBinaryAuthorization()- Parameters:
binaryAuthorization- binary_authorization block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#binary_authorization GkeonpremBareMetalCluster#binary_authorization}- Returns:
this
-
clusterOperations
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder clusterOperations(GkeonpremBareMetalClusterClusterOperations clusterOperations)
Sets the value ofGkeonpremBareMetalClusterConfig.getClusterOperations()- Parameters:
clusterOperations- cluster_operations block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#cluster_operations GkeonpremBareMetalCluster#cluster_operations}- Returns:
this
-
description
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder description(String description)
Sets the value ofGkeonpremBareMetalClusterConfig.getDescription()- Parameters:
description- A human readable description of this Bare Metal User Cluster. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#description GkeonpremBareMetalCluster#description}- Returns:
this
-
id
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder id(String id)
Sets the value ofGkeonpremBareMetalClusterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#id GkeonpremBareMetalCluster#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
maintenanceConfig
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder maintenanceConfig(GkeonpremBareMetalClusterMaintenanceConfig maintenanceConfig)
Sets the value ofGkeonpremBareMetalClusterConfig.getMaintenanceConfig()- Parameters:
maintenanceConfig- maintenance_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#maintenance_config GkeonpremBareMetalCluster#maintenance_config}- Returns:
this
-
nodeAccessConfig
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder nodeAccessConfig(GkeonpremBareMetalClusterNodeAccessConfig nodeAccessConfig)
Sets the value ofGkeonpremBareMetalClusterConfig.getNodeAccessConfig()- Parameters:
nodeAccessConfig- node_access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#node_access_config GkeonpremBareMetalCluster#node_access_config}- Returns:
this
-
nodeConfig
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder nodeConfig(GkeonpremBareMetalClusterNodeConfig nodeConfig)
Sets the value ofGkeonpremBareMetalClusterConfig.getNodeConfig()- Parameters:
nodeConfig- node_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#node_config GkeonpremBareMetalCluster#node_config}- Returns:
this
-
osEnvironmentConfig
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder osEnvironmentConfig(GkeonpremBareMetalClusterOsEnvironmentConfig osEnvironmentConfig)
Sets the value ofGkeonpremBareMetalClusterConfig.getOsEnvironmentConfig()- Parameters:
osEnvironmentConfig- os_environment_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#os_environment_config GkeonpremBareMetalCluster#os_environment_config}- Returns:
this
-
project
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder project(String project)
Sets the value ofGkeonpremBareMetalClusterConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#project GkeonpremBareMetalCluster#project}.- Returns:
this
-
proxy
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder proxy(GkeonpremBareMetalClusterProxy proxy)
Sets the value ofGkeonpremBareMetalClusterConfig.getProxy()- Parameters:
proxy- proxy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#proxy GkeonpremBareMetalCluster#proxy}- Returns:
this
-
securityConfig
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder securityConfig(GkeonpremBareMetalClusterSecurityConfig securityConfig)
Sets the value ofGkeonpremBareMetalClusterConfig.getSecurityConfig()- Parameters:
securityConfig- security_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#security_config GkeonpremBareMetalCluster#security_config}- Returns:
this
-
timeouts
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder timeouts(GkeonpremBareMetalClusterTimeouts timeouts)
Sets the value ofGkeonpremBareMetalClusterConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#timeouts GkeonpremBareMetalCluster#timeouts}- Returns:
this
-
upgradePolicy
@Stability(Stable) public GkeonpremBareMetalClusterConfig.Builder upgradePolicy(GkeonpremBareMetalClusterUpgradePolicy upgradePolicy)
Sets the value ofGkeonpremBareMetalClusterConfig.getUpgradePolicy()- Parameters:
upgradePolicy- upgrade_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gkeonprem_bare_metal_cluster#upgrade_policy GkeonpremBareMetalCluster#upgrade_policy}- Returns:
this
-
connection
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public GkeonpremBareMetalClusterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public GkeonpremBareMetalClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GkeonpremBareMetalClusterConfig>- Returns:
- a new instance of
GkeonpremBareMetalClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-