Class DataAwsAmiConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.data_aws_ami.DataAwsAmiConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataAwsAmiConfig>
- Enclosing interface:
- DataAwsAmiConfig
@Stability(Stable) public static final class DataAwsAmiConfig.Builder extends Object implements software.amazon.jsii.Builder<DataAwsAmiConfig>
A builder forDataAwsAmiConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAwsAmiConfigbuild()Builds the configured instance.DataAwsAmiConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataAwsAmiConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataAwsAmiConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DataAwsAmiConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DataAwsAmiConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DataAwsAmiConfig.BuilderexecutableUsers(List<String> executableUsers)Sets the value ofDataAwsAmiConfig.getExecutableUsers()DataAwsAmiConfig.Builderfilter(com.hashicorp.cdktf.IResolvable filter)Sets the value ofDataAwsAmiConfig.getFilter()DataAwsAmiConfig.Builderfilter(List<? extends DataAwsAmiFilter> filter)Sets the value ofDataAwsAmiConfig.getFilter()DataAwsAmiConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DataAwsAmiConfig.Builderid(String id)Sets the value ofDataAwsAmiConfig.getId()DataAwsAmiConfig.BuilderincludeDeprecated(com.hashicorp.cdktf.IResolvable includeDeprecated)Sets the value ofDataAwsAmiConfig.getIncludeDeprecated()DataAwsAmiConfig.BuilderincludeDeprecated(Boolean includeDeprecated)Sets the value ofDataAwsAmiConfig.getIncludeDeprecated()DataAwsAmiConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DataAwsAmiConfig.BuildermostRecent(com.hashicorp.cdktf.IResolvable mostRecent)Sets the value ofDataAwsAmiConfig.getMostRecent()DataAwsAmiConfig.BuildermostRecent(Boolean mostRecent)Sets the value ofDataAwsAmiConfig.getMostRecent()DataAwsAmiConfig.BuildernameRegex(String nameRegex)Sets the value ofDataAwsAmiConfig.getNameRegex()DataAwsAmiConfig.Builderowners(List<String> owners)Sets the value ofDataAwsAmiConfig.getOwners()DataAwsAmiConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DataAwsAmiConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DataAwsAmiConfig.Buildertags(Map<String,String> tags)Sets the value ofDataAwsAmiConfig.getTags()DataAwsAmiConfig.Buildertimeouts(DataAwsAmiTimeouts timeouts)Sets the value ofDataAwsAmiConfig.getTimeouts()
-
-
-
Method Detail
-
executableUsers
@Stability(Stable) public DataAwsAmiConfig.Builder executableUsers(List<String> executableUsers)
Sets the value ofDataAwsAmiConfig.getExecutableUsers()- Parameters:
executableUsers- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#executable_users DataAwsAmi#executable_users}.- Returns:
this
-
filter
@Stability(Stable) public DataAwsAmiConfig.Builder filter(com.hashicorp.cdktf.IResolvable filter)
Sets the value ofDataAwsAmiConfig.getFilter()- Parameters:
filter- filter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#filter DataAwsAmi#filter}- Returns:
this
-
filter
@Stability(Stable) public DataAwsAmiConfig.Builder filter(List<? extends DataAwsAmiFilter> filter)
Sets the value ofDataAwsAmiConfig.getFilter()- Parameters:
filter- filter block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#filter DataAwsAmi#filter}- Returns:
this
-
id
@Stability(Stable) public DataAwsAmiConfig.Builder id(String id)
Sets the value ofDataAwsAmiConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#id DataAwsAmi#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
-
includeDeprecated
@Stability(Stable) public DataAwsAmiConfig.Builder includeDeprecated(Boolean includeDeprecated)
Sets the value ofDataAwsAmiConfig.getIncludeDeprecated()- Parameters:
includeDeprecated- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#include_deprecated DataAwsAmi#include_deprecated}.- Returns:
this
-
includeDeprecated
@Stability(Stable) public DataAwsAmiConfig.Builder includeDeprecated(com.hashicorp.cdktf.IResolvable includeDeprecated)
Sets the value ofDataAwsAmiConfig.getIncludeDeprecated()- Parameters:
includeDeprecated- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#include_deprecated DataAwsAmi#include_deprecated}.- Returns:
this
-
mostRecent
@Stability(Stable) public DataAwsAmiConfig.Builder mostRecent(Boolean mostRecent)
Sets the value ofDataAwsAmiConfig.getMostRecent()- Parameters:
mostRecent- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#most_recent DataAwsAmi#most_recent}.- Returns:
this
-
mostRecent
@Stability(Stable) public DataAwsAmiConfig.Builder mostRecent(com.hashicorp.cdktf.IResolvable mostRecent)
Sets the value ofDataAwsAmiConfig.getMostRecent()- Parameters:
mostRecent- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#most_recent DataAwsAmi#most_recent}.- Returns:
this
-
nameRegex
@Stability(Stable) public DataAwsAmiConfig.Builder nameRegex(String nameRegex)
Sets the value ofDataAwsAmiConfig.getNameRegex()- Parameters:
nameRegex- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#name_regex DataAwsAmi#name_regex}.- Returns:
this
-
owners
@Stability(Stable) public DataAwsAmiConfig.Builder owners(List<String> owners)
Sets the value ofDataAwsAmiConfig.getOwners()- Parameters:
owners- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#owners DataAwsAmi#owners}.- Returns:
this
-
tags
@Stability(Stable) public DataAwsAmiConfig.Builder tags(Map<String,String> tags)
Sets the value ofDataAwsAmiConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#tags DataAwsAmi#tags}.- Returns:
this
-
timeouts
@Stability(Stable) public DataAwsAmiConfig.Builder timeouts(DataAwsAmiTimeouts timeouts)
Sets the value ofDataAwsAmiConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/data-sources/ami#timeouts DataAwsAmi#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DataAwsAmiConfig.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 DataAwsAmiConfig.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 DataAwsAmiConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataAwsAmiConfig.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 DataAwsAmiConfig.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 DataAwsAmiConfig.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 DataAwsAmiConfig.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 DataAwsAmiConfig.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 DataAwsAmiConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataAwsAmiConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataAwsAmiConfig>- Returns:
- a new instance of
DataAwsAmiConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-