Class ComposerEnvironment.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.composer_environment.ComposerEnvironment.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComposerEnvironment>
- Enclosing class:
- ComposerEnvironment
@Stability(Stable) public static final class ComposerEnvironment.Builder extends Object implements software.amazon.jsii.Builder<ComposerEnvironment>
A fluent builder forComposerEnvironment.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComposerEnvironmentbuild()ComposerEnvironment.Builderconfig(ComposerEnvironmentConfigA config)config block.ComposerEnvironment.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComposerEnvironment.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComposerEnvironment.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComposerEnvironment.Buildercount(Number count)static ComposerEnvironment.Buildercreate(software.constructs.Construct scope, String id)ComposerEnvironment.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComposerEnvironment.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComposerEnvironment.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#id ComposerEnvironment#id}.ComposerEnvironment.Builderlabels(Map<String,String> labels)User-defined labels for this environment.ComposerEnvironment.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComposerEnvironment.Buildername(String name)Name of the environment.ComposerEnvironment.Builderproject(String project)The ID of the project in which the resource belongs.ComposerEnvironment.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComposerEnvironment.Builderprovisioners(List<? extends Object> provisioners)ComposerEnvironment.Builderregion(String region)The location or Compute Engine region for the environment.ComposerEnvironment.BuilderstorageConfig(ComposerEnvironmentStorageConfig storageConfig)storage_config block.ComposerEnvironment.Buildertimeouts(ComposerEnvironmentTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComposerEnvironment.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
ComposerEnvironment.Builder.
-
connection
@Stability(Experimental) public ComposerEnvironment.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComposerEnvironment.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComposerEnvironment.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComposerEnvironment.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComposerEnvironment.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComposerEnvironment.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComposerEnvironment.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComposerEnvironment.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComposerEnvironment.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ComposerEnvironment.Builder name(String name)
Name of the environment.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#name ComposerEnvironment#name}
- Parameters:
name- Name of the environment. This parameter is required.- Returns:
this
-
config
@Stability(Stable) public ComposerEnvironment.Builder config(ComposerEnvironmentConfigA 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}
- Parameters:
config- config block. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComposerEnvironment.Builder id(String 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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#id ComposerEnvironment#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public ComposerEnvironment.Builder labels(Map<String,String> 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}
- Parameters:
labels- User-defined labels for this environment. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComposerEnvironment.Builder project(String 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}
- Parameters:
project- The ID of the project in which the resource belongs. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public ComposerEnvironment.Builder region(String 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}
- Parameters:
region- The location or Compute Engine region for the environment. This parameter is required.- Returns:
this
-
storageConfig
@Stability(Stable) public ComposerEnvironment.Builder storageConfig(ComposerEnvironmentStorageConfig 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}
- Parameters:
storageConfig- storage_config block. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComposerEnvironment.Builder timeouts(ComposerEnvironmentTimeouts 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}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComposerEnvironment build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComposerEnvironment>- Returns:
- a newly built instance of
ComposerEnvironment.
-
-