Package com.hashicorp.cdktf
Class TerraformMetaArguments.Builder
java.lang.Object
com.hashicorp.cdktf.TerraformMetaArguments.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TerraformMetaArguments>
- Enclosing interface:
TerraformMetaArguments
@Stability(Experimental)
public static final class TerraformMetaArguments.Builder
extends Object
implements software.amazon.jsii.Builder<TerraformMetaArguments>
A builder for
TerraformMetaArguments
-
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connection
@Stability(Experimental) public TerraformMetaArguments.Builder connection(SSHProvisionerConnection connection) Sets the value ofTerraformMetaArguments.getConnection()
- Parameters:
connection
- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public TerraformMetaArguments.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 TerraformMetaArguments.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 TerraformMetaArguments.Builder lifecycle(TerraformResourceLifecycle lifecycle) Sets the value ofTerraformMetaArguments.getLifecycle()
- Parameters:
lifecycle
- the value to be set.- Returns:
this
-
provider
Sets the value ofTerraformMetaArguments.getProvider()
- Parameters:
provider
- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public TerraformMetaArguments.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<TerraformMetaArguments>
- Returns:
- a new instance of
TerraformMetaArguments
- Throws:
NullPointerException
- if any required attribute was not provided
-