Package com.hashicorp.cdktf
Class TerraformResourceConfig.Builder
java.lang.Object
com.hashicorp.cdktf.TerraformResourceConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TerraformResourceConfig>
- Enclosing interface:
TerraformResourceConfig
@Stability(Experimental)
public static final class TerraformResourceConfig.Builder
extends Object
implements software.amazon.jsii.Builder<TerraformResourceConfig>
A builder for
TerraformResourceConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connection
(SSHProvisionerConnection connection) Sets the value ofTerraformMetaArguments.getConnection()
connection
(WinrmProvisionerConnection connection) Sets the value ofTerraformMetaArguments.getConnection()
count
(TerraformCount count) Sets the value ofTerraformMetaArguments.getCount()
Sets the value ofTerraformMetaArguments.getCount()
dependsOn
(List<? extends ITerraformDependable> dependsOn) Sets the value ofTerraformMetaArguments.getDependsOn()
forEach
(ITerraformIterator forEach) Sets the value ofTerraformMetaArguments.getForEach()
lifecycle
(TerraformResourceLifecycle lifecycle) Sets the value ofTerraformMetaArguments.getLifecycle()
provider
(TerraformProvider provider) Sets the value ofTerraformMetaArguments.getProvider()
provisioners
(List<? extends Object> provisioners) Sets the value ofTerraformMetaArguments.getProvisioners()
terraformGeneratorMetadata
(TerraformProviderGeneratorMetadata terraformGeneratorMetadata) Sets the value ofTerraformResourceConfig.getTerraformGeneratorMetadata()
terraformResourceType
(String terraformResourceType) Sets the value ofTerraformResourceConfig.getTerraformResourceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
terraformResourceType
@Stability(Experimental) public TerraformResourceConfig.Builder terraformResourceType(String terraformResourceType) Sets the value ofTerraformResourceConfig.getTerraformResourceType()
- Parameters:
terraformResourceType
- the value to be set. This parameter is required.- Returns:
this
-
terraformGeneratorMetadata
@Stability(Experimental) public TerraformResourceConfig.Builder terraformGeneratorMetadata(TerraformProviderGeneratorMetadata terraformGeneratorMetadata) Sets the value ofTerraformResourceConfig.getTerraformGeneratorMetadata()
- Parameters:
terraformGeneratorMetadata
- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public TerraformResourceConfig.Builder connection(SSHProvisionerConnection connection) Sets the value ofTerraformMetaArguments.getConnection()
- Parameters:
connection
- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public TerraformResourceConfig.Builder connection(WinrmProvisionerConnection connection) Sets the value ofTerraformMetaArguments.getConnection()
- Parameters:
connection
- the value to be set.- Returns:
this
-
count
Sets the value ofTerraformMetaArguments.getCount()
- Parameters:
count
- the value to be set.- Returns:
this
-
count
Sets the value ofTerraformMetaArguments.getCount()
- Parameters:
count
- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public TerraformResourceConfig.Builder dependsOn(List<? extends ITerraformDependable> dependsOn) Sets the value ofTerraformMetaArguments.getDependsOn()
- Parameters:
dependsOn
- the value to be set.- Returns:
this
-
forEach
Sets the value ofTerraformMetaArguments.getForEach()
- Parameters:
forEach
- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public TerraformResourceConfig.Builder lifecycle(TerraformResourceLifecycle lifecycle) Sets the value ofTerraformMetaArguments.getLifecycle()
- Parameters:
lifecycle
- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public TerraformResourceConfig.Builder provider(TerraformProvider provider) Sets the value ofTerraformMetaArguments.getProvider()
- Parameters:
provider
- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public TerraformResourceConfig.Builder provisioners(List<? extends Object> provisioners) Sets the value ofTerraformMetaArguments.getProvisioners()
- Parameters:
provisioners
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TerraformResourceConfig>
- Returns:
- a new instance of
TerraformResourceConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-