Class DataAwsInstancesConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.data_aws_instances.DataAwsInstancesConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataAwsInstancesConfig>
- Enclosing interface:
- DataAwsInstancesConfig
@Stability(Stable) public static final class DataAwsInstancesConfig.Builder extends Object implements software.amazon.jsii.Builder<DataAwsInstancesConfig>
A builder forDataAwsInstancesConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAwsInstancesConfigbuild()Builds the configured instance.DataAwsInstancesConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataAwsInstancesConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataAwsInstancesConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DataAwsInstancesConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DataAwsInstancesConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DataAwsInstancesConfig.Builderfilter(com.hashicorp.cdktf.IResolvable filter)Sets the value ofDataAwsInstancesConfig.getFilter()DataAwsInstancesConfig.Builderfilter(List<? extends DataAwsInstancesFilter> filter)Sets the value ofDataAwsInstancesConfig.getFilter()DataAwsInstancesConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DataAwsInstancesConfig.Builderid(String id)Sets the value ofDataAwsInstancesConfig.getId()DataAwsInstancesConfig.BuilderinstanceStateNames(List<String> instanceStateNames)Sets the value ofDataAwsInstancesConfig.getInstanceStateNames()DataAwsInstancesConfig.BuilderinstanceTags(Map<String,String> instanceTags)Sets the value ofDataAwsInstancesConfig.getInstanceTags()DataAwsInstancesConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DataAwsInstancesConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DataAwsInstancesConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DataAwsInstancesConfig.Buildertimeouts(DataAwsInstancesTimeouts timeouts)Sets the value ofDataAwsInstancesConfig.getTimeouts()
-
-
-
Method Detail
-
filter
@Stability(Stable) public DataAwsInstancesConfig.Builder filter(com.hashicorp.cdktf.IResolvable filter)
Sets the value ofDataAwsInstancesConfig.getFilter()- Parameters:
filter- filter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/instances#filter DataAwsInstances#filter}- Returns:
this
-
filter
@Stability(Stable) public DataAwsInstancesConfig.Builder filter(List<? extends DataAwsInstancesFilter> filter)
Sets the value ofDataAwsInstancesConfig.getFilter()- Parameters:
filter- filter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/instances#filter DataAwsInstances#filter}- Returns:
this
-
id
@Stability(Stable) public DataAwsInstancesConfig.Builder id(String id)
Sets the value ofDataAwsInstancesConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/instances#id DataAwsInstances#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
-
instanceStateNames
@Stability(Stable) public DataAwsInstancesConfig.Builder instanceStateNames(List<String> instanceStateNames)
Sets the value ofDataAwsInstancesConfig.getInstanceStateNames()- Parameters:
instanceStateNames- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/instances#instance_state_names DataAwsInstances#instance_state_names}.- Returns:
this
-
instanceTags
@Stability(Stable) public DataAwsInstancesConfig.Builder instanceTags(Map<String,String> instanceTags)
Sets the value ofDataAwsInstancesConfig.getInstanceTags()- Parameters:
instanceTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/instances#instance_tags DataAwsInstances#instance_tags}.- Returns:
this
-
timeouts
@Stability(Stable) public DataAwsInstancesConfig.Builder timeouts(DataAwsInstancesTimeouts timeouts)
Sets the value ofDataAwsInstancesConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/instances#timeouts DataAwsInstances#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DataAwsInstancesConfig.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 DataAwsInstancesConfig.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 DataAwsInstancesConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataAwsInstancesConfig.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 DataAwsInstancesConfig.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 DataAwsInstancesConfig.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 DataAwsInstancesConfig.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 DataAwsInstancesConfig.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 DataAwsInstancesConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataAwsInstancesConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataAwsInstancesConfig>- Returns:
- a new instance of
DataAwsInstancesConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-