Class ContainerAttachedClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_attached_cluster.ContainerAttachedClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerAttachedClusterConfig>
- Enclosing interface:
- ContainerAttachedClusterConfig
@Stability(Stable) public static final class ContainerAttachedClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<ContainerAttachedClusterConfig>
A builder forContainerAttachedClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
distribution
@Stability(Stable) public ContainerAttachedClusterConfig.Builder distribution(String distribution)
Sets the value ofContainerAttachedClusterConfig.getDistribution()- Parameters:
distribution- The Kubernetes distribution of the underlying attached cluster. This parameter is required. Supported values: "eks", "aks", "generic". The generic distribution provides the ability to register or migrate any CNCF conformant cluster. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#distribution ContainerAttachedCluster#distribution}- Returns:
this
-
fleet
@Stability(Stable) public ContainerAttachedClusterConfig.Builder fleet(ContainerAttachedClusterFleet fleet)
Sets the value ofContainerAttachedClusterConfig.getFleet()- Parameters:
fleet- fleet block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#fleet ContainerAttachedCluster#fleet}- Returns:
this
-
location
@Stability(Stable) public ContainerAttachedClusterConfig.Builder location(String location)
Sets the value ofContainerAttachedClusterConfig.getLocation()- Parameters:
location- The location for the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#location ContainerAttachedCluster#location}- Returns:
this
-
name
@Stability(Stable) public ContainerAttachedClusterConfig.Builder name(String name)
Sets the value ofContainerAttachedClusterConfig.getName()- Parameters:
name- The name of this resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#name ContainerAttachedCluster#name}- Returns:
this
-
oidcConfig
@Stability(Stable) public ContainerAttachedClusterConfig.Builder oidcConfig(ContainerAttachedClusterOidcConfig oidcConfig)
Sets the value ofContainerAttachedClusterConfig.getOidcConfig()- Parameters:
oidcConfig- oidc_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#oidc_config ContainerAttachedCluster#oidc_config}- Returns:
this
-
platformVersion
@Stability(Stable) public ContainerAttachedClusterConfig.Builder platformVersion(String platformVersion)
Sets the value ofContainerAttachedClusterConfig.getPlatformVersion()- Parameters:
platformVersion- The platform version for the cluster (e.g. '1.23.0-gke.1'). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#platform_version ContainerAttachedCluster#platform_version}- Returns:
this
-
annotations
@Stability(Stable) public ContainerAttachedClusterConfig.Builder annotations(Map<String,String> annotations)
Sets the value ofContainerAttachedClusterConfig.getAnnotations()- Parameters:
annotations- Optional. Annotations on the 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/container_attached_cluster#annotations ContainerAttachedCluster#annotations}- Returns:
this
-
authorization
@Stability(Stable) public ContainerAttachedClusterConfig.Builder authorization(ContainerAttachedClusterAuthorization authorization)
Sets the value ofContainerAttachedClusterConfig.getAuthorization()- Parameters:
authorization- authorization block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#authorization ContainerAttachedCluster#authorization}- Returns:
this
-
binaryAuthorization
@Stability(Stable) public ContainerAttachedClusterConfig.Builder binaryAuthorization(ContainerAttachedClusterBinaryAuthorization binaryAuthorization)
Sets the value ofContainerAttachedClusterConfig.getBinaryAuthorization()- Parameters:
binaryAuthorization- binary_authorization block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#binary_authorization ContainerAttachedCluster#binary_authorization}- Returns:
this
-
deletionPolicy
@Stability(Stable) public ContainerAttachedClusterConfig.Builder deletionPolicy(String deletionPolicy)
Sets the value ofContainerAttachedClusterConfig.getDeletionPolicy()- Parameters:
deletionPolicy- Policy to determine what flags to send on delete. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#deletion_policy ContainerAttachedCluster#deletion_policy}- Returns:
this
-
description
@Stability(Stable) public ContainerAttachedClusterConfig.Builder description(String description)
Sets the value ofContainerAttachedClusterConfig.getDescription()- Parameters:
description- A human readable description of this attached cluster. Cannot be longer than 255 UTF-8 encoded bytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#description ContainerAttachedCluster#description}- Returns:
this
-
id
@Stability(Stable) public ContainerAttachedClusterConfig.Builder id(String id)
Sets the value ofContainerAttachedClusterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#id ContainerAttachedCluster#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
-
loggingConfig
@Stability(Stable) public ContainerAttachedClusterConfig.Builder loggingConfig(ContainerAttachedClusterLoggingConfig loggingConfig)
Sets the value ofContainerAttachedClusterConfig.getLoggingConfig()- Parameters:
loggingConfig- logging_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#logging_config ContainerAttachedCluster#logging_config}- Returns:
this
-
monitoringConfig
@Stability(Stable) public ContainerAttachedClusterConfig.Builder monitoringConfig(ContainerAttachedClusterMonitoringConfig monitoringConfig)
Sets the value ofContainerAttachedClusterConfig.getMonitoringConfig()- Parameters:
monitoringConfig- monitoring_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#monitoring_config ContainerAttachedCluster#monitoring_config}- Returns:
this
-
project
@Stability(Stable) public ContainerAttachedClusterConfig.Builder project(String project)
Sets the value ofContainerAttachedClusterConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#project ContainerAttachedCluster#project}.- Returns:
this
-
proxyConfig
@Stability(Stable) public ContainerAttachedClusterConfig.Builder proxyConfig(ContainerAttachedClusterProxyConfig proxyConfig)
Sets the value ofContainerAttachedClusterConfig.getProxyConfig()- Parameters:
proxyConfig- proxy_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#proxy_config ContainerAttachedCluster#proxy_config}- Returns:
this
-
timeouts
@Stability(Stable) public ContainerAttachedClusterConfig.Builder timeouts(ContainerAttachedClusterTimeouts timeouts)
Sets the value ofContainerAttachedClusterConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#timeouts ContainerAttachedCluster#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ContainerAttachedClusterConfig.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 ContainerAttachedClusterConfig.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 ContainerAttachedClusterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ContainerAttachedClusterConfig.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 ContainerAttachedClusterConfig.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 ContainerAttachedClusterConfig.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 ContainerAttachedClusterConfig.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 ContainerAttachedClusterConfig.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 ContainerAttachedClusterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ContainerAttachedClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerAttachedClusterConfig>- Returns:
- a new instance of
ContainerAttachedClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-