Class AmiLaunchPermissionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.ami_launch_permission.AmiLaunchPermissionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AmiLaunchPermissionConfig>
- Enclosing interface:
- AmiLaunchPermissionConfig
@Stability(Stable) public static final class AmiLaunchPermissionConfig.Builder extends Object implements software.amazon.jsii.Builder<AmiLaunchPermissionConfig>
A builder forAmiLaunchPermissionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmiLaunchPermissionConfig.BuilderaccountId(String accountId)Sets the value ofAmiLaunchPermissionConfig.getAccountId()AmiLaunchPermissionConfigbuild()Builds the configured instance.AmiLaunchPermissionConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()AmiLaunchPermissionConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()AmiLaunchPermissionConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()AmiLaunchPermissionConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()AmiLaunchPermissionConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()AmiLaunchPermissionConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()AmiLaunchPermissionConfig.Buildergroup(String group)Sets the value ofAmiLaunchPermissionConfig.getGroup()AmiLaunchPermissionConfig.Builderid(String id)Sets the value ofAmiLaunchPermissionConfig.getId()AmiLaunchPermissionConfig.BuilderimageId(String imageId)Sets the value ofAmiLaunchPermissionConfig.getImageId()AmiLaunchPermissionConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()AmiLaunchPermissionConfig.BuilderorganizationalUnitArn(String organizationalUnitArn)Sets the value ofAmiLaunchPermissionConfig.getOrganizationalUnitArn()AmiLaunchPermissionConfig.BuilderorganizationArn(String organizationArn)Sets the value ofAmiLaunchPermissionConfig.getOrganizationArn()AmiLaunchPermissionConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()AmiLaunchPermissionConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()
-
-
-
Method Detail
-
imageId
@Stability(Stable) public AmiLaunchPermissionConfig.Builder imageId(String imageId)
Sets the value ofAmiLaunchPermissionConfig.getImageId()- Parameters:
imageId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ami_launch_permission#image_id AmiLaunchPermission#image_id}. This parameter is required.- Returns:
this
-
accountId
@Stability(Stable) public AmiLaunchPermissionConfig.Builder accountId(String accountId)
Sets the value ofAmiLaunchPermissionConfig.getAccountId()- Parameters:
accountId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ami_launch_permission#account_id AmiLaunchPermission#account_id}.- Returns:
this
-
group
@Stability(Stable) public AmiLaunchPermissionConfig.Builder group(String group)
Sets the value ofAmiLaunchPermissionConfig.getGroup()- Parameters:
group- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ami_launch_permission#group AmiLaunchPermission#group}.- Returns:
this
-
id
@Stability(Stable) public AmiLaunchPermissionConfig.Builder id(String id)
Sets the value ofAmiLaunchPermissionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ami_launch_permission#id AmiLaunchPermission#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
-
organizationalUnitArn
@Stability(Stable) public AmiLaunchPermissionConfig.Builder organizationalUnitArn(String organizationalUnitArn)
Sets the value ofAmiLaunchPermissionConfig.getOrganizationalUnitArn()- Parameters:
organizationalUnitArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ami_launch_permission#organizational_unit_arn AmiLaunchPermission#organizational_unit_arn}.- Returns:
this
-
organizationArn
@Stability(Stable) public AmiLaunchPermissionConfig.Builder organizationArn(String organizationArn)
Sets the value ofAmiLaunchPermissionConfig.getOrganizationArn()- Parameters:
organizationArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ami_launch_permission#organization_arn AmiLaunchPermission#organization_arn}.- Returns:
this
-
connection
@Stability(Experimental) public AmiLaunchPermissionConfig.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 AmiLaunchPermissionConfig.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 AmiLaunchPermissionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public AmiLaunchPermissionConfig.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 AmiLaunchPermissionConfig.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 AmiLaunchPermissionConfig.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 AmiLaunchPermissionConfig.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 AmiLaunchPermissionConfig.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 AmiLaunchPermissionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public AmiLaunchPermissionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AmiLaunchPermissionConfig>- Returns:
- a new instance of
AmiLaunchPermissionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-