Class ComposerEnvironmentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.composer_environment.ComposerEnvironmentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComposerEnvironmentConfig>
- Enclosing interface:
- ComposerEnvironmentConfig
@Stability(Stable) public static final class ComposerEnvironmentConfig.Builder extends Object implements software.amazon.jsii.Builder<ComposerEnvironmentConfig>
A builder forComposerEnvironmentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComposerEnvironmentConfigbuild()Builds the configured instance.ComposerEnvironmentConfig.Builderconfig(ComposerEnvironmentConfigA config)Sets the value ofComposerEnvironmentConfig.getConfig()ComposerEnvironmentConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComposerEnvironmentConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComposerEnvironmentConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ComposerEnvironmentConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ComposerEnvironmentConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ComposerEnvironmentConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ComposerEnvironmentConfig.Builderid(String id)Sets the value ofComposerEnvironmentConfig.getId()ComposerEnvironmentConfig.Builderlabels(Map<String,String> labels)Sets the value ofComposerEnvironmentConfig.getLabels()ComposerEnvironmentConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ComposerEnvironmentConfig.Buildername(String name)Sets the value ofComposerEnvironmentConfig.getName()ComposerEnvironmentConfig.Builderproject(String project)Sets the value ofComposerEnvironmentConfig.getProject()ComposerEnvironmentConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ComposerEnvironmentConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ComposerEnvironmentConfig.Builderregion(String region)Sets the value ofComposerEnvironmentConfig.getRegion()ComposerEnvironmentConfig.BuilderstorageConfig(ComposerEnvironmentStorageConfig storageConfig)Sets the value ofComposerEnvironmentConfig.getStorageConfig()ComposerEnvironmentConfig.Buildertimeouts(ComposerEnvironmentTimeouts timeouts)Sets the value ofComposerEnvironmentConfig.getTimeouts()
-
-
-
Method Detail
-
name
@Stability(Stable) public ComposerEnvironmentConfig.Builder name(String name)
Sets the value ofComposerEnvironmentConfig.getName()- Parameters:
name- Name of the environment. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#name ComposerEnvironment#name}- Returns:
this
-
config
@Stability(Stable) public ComposerEnvironmentConfig.Builder config(ComposerEnvironmentConfigA config)
Sets the value ofComposerEnvironmentConfig.getConfig()- Parameters:
config- config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#config ComposerEnvironment#config}- Returns:
this
-
id
@Stability(Stable) public ComposerEnvironmentConfig.Builder id(String id)
Sets the value ofComposerEnvironmentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#id ComposerEnvironment#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
-
labels
@Stability(Stable) public ComposerEnvironmentConfig.Builder labels(Map<String,String> labels)
Sets the value ofComposerEnvironmentConfig.getLabels()- Parameters:
labels- User-defined labels for this environment. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?)?. No more than 64 labels can be associated with a given environment. Both keys and values must be <= 128 bytes in size. ``` **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. ``` Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#labels ComposerEnvironment#labels}- Returns:
this
-
project
@Stability(Stable) public ComposerEnvironmentConfig.Builder project(String project)
Sets the value ofComposerEnvironmentConfig.getProject()- Parameters:
project- The ID of the project in which the resource belongs. If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#project ComposerEnvironment#project}- Returns:
this
-
region
@Stability(Stable) public ComposerEnvironmentConfig.Builder region(String region)
Sets the value ofComposerEnvironmentConfig.getRegion()- Parameters:
region- The location or Compute Engine region for the environment. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#region ComposerEnvironment#region}- Returns:
this
-
storageConfig
@Stability(Stable) public ComposerEnvironmentConfig.Builder storageConfig(ComposerEnvironmentStorageConfig storageConfig)
Sets the value ofComposerEnvironmentConfig.getStorageConfig()- Parameters:
storageConfig- storage_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#storage_config ComposerEnvironment#storage_config}- Returns:
this
-
timeouts
@Stability(Stable) public ComposerEnvironmentConfig.Builder timeouts(ComposerEnvironmentTimeouts timeouts)
Sets the value ofComposerEnvironmentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#timeouts ComposerEnvironment#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComposerEnvironmentConfig.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 ComposerEnvironmentConfig.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 ComposerEnvironmentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComposerEnvironmentConfig.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 ComposerEnvironmentConfig.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 ComposerEnvironmentConfig.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 ComposerEnvironmentConfig.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 ComposerEnvironmentConfig.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 ComposerEnvironmentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComposerEnvironmentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComposerEnvironmentConfig>- Returns:
- a new instance of
ComposerEnvironmentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-