Package com.hashicorp.cdktf
Class TerraformResourceLifecycle.Builder
java.lang.Object
com.hashicorp.cdktf.TerraformResourceLifecycle.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TerraformResourceLifecycle>
- Enclosing interface:
TerraformResourceLifecycle
@Stability(Experimental)
public static final class TerraformResourceLifecycle.Builder
extends Object
implements software.amazon.jsii.Builder<TerraformResourceLifecycle>
A builder for
TerraformResourceLifecycle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.createBeforeDestroy
(Boolean createBeforeDestroy) Sets the value ofTerraformResourceLifecycle.getCreateBeforeDestroy()
ignoreChanges
(String ignoreChanges) Sets the value ofTerraformResourceLifecycle.getIgnoreChanges()
ignoreChanges
(List<String> ignoreChanges) Sets the value ofTerraformResourceLifecycle.getIgnoreChanges()
postcondition
(List<? extends Postcondition> postcondition) Sets the value ofTerraformResourceLifecycle.getPostcondition()
precondition
(List<? extends Precondition> precondition) Sets the value ofTerraformResourceLifecycle.getPrecondition()
preventDestroy
(Boolean preventDestroy) Sets the value ofTerraformResourceLifecycle.getPreventDestroy()
replaceTriggeredBy
(List<? extends Object> replaceTriggeredBy) Sets the value ofTerraformResourceLifecycle.getReplaceTriggeredBy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createBeforeDestroy
@Stability(Experimental) public TerraformResourceLifecycle.Builder createBeforeDestroy(Boolean createBeforeDestroy) Sets the value ofTerraformResourceLifecycle.getCreateBeforeDestroy()
- Parameters:
createBeforeDestroy
- the value to be set.- Returns:
this
-
ignoreChanges
@Stability(Experimental) public TerraformResourceLifecycle.Builder ignoreChanges(List<String> ignoreChanges) Sets the value ofTerraformResourceLifecycle.getIgnoreChanges()
- Parameters:
ignoreChanges
- the value to be set.- Returns:
this
-
ignoreChanges
@Stability(Experimental) public TerraformResourceLifecycle.Builder ignoreChanges(String ignoreChanges) Sets the value ofTerraformResourceLifecycle.getIgnoreChanges()
- Parameters:
ignoreChanges
- the value to be set.- Returns:
this
-
postcondition
@Stability(Experimental) public TerraformResourceLifecycle.Builder postcondition(List<? extends Postcondition> postcondition) Sets the value ofTerraformResourceLifecycle.getPostcondition()
- Parameters:
postcondition
- the value to be set.- Returns:
this
-
precondition
@Stability(Experimental) public TerraformResourceLifecycle.Builder precondition(List<? extends Precondition> precondition) Sets the value ofTerraformResourceLifecycle.getPrecondition()
- Parameters:
precondition
- the value to be set.- Returns:
this
-
preventDestroy
@Stability(Experimental) public TerraformResourceLifecycle.Builder preventDestroy(Boolean preventDestroy) Sets the value ofTerraformResourceLifecycle.getPreventDestroy()
- Parameters:
preventDestroy
- the value to be set.- Returns:
this
-
replaceTriggeredBy
@Stability(Experimental) public TerraformResourceLifecycle.Builder replaceTriggeredBy(List<? extends Object> replaceTriggeredBy) Sets the value ofTerraformResourceLifecycle.getReplaceTriggeredBy()
- Parameters:
replaceTriggeredBy
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TerraformResourceLifecycle>
- Returns:
- a new instance of
TerraformResourceLifecycle
- Throws:
NullPointerException
- if any required attribute was not provided
-