Package software.amazon.awscdk
Class StageSynthesisOptions.Builder
java.lang.Object
software.amazon.awscdk.StageSynthesisOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StageSynthesisOptions>
- Enclosing interface:
StageSynthesisOptions
@Stability(Stable)
public static final class StageSynthesisOptions.Builder
extends Object
implements software.amazon.jsii.Builder<StageSynthesisOptions>
A builder for
StageSynthesisOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaspectStabilization
(Boolean aspectStabilization) Sets the value ofStageSynthesisOptions.getAspectStabilization()
build()
Builds the configured instance.errorOnDuplicateSynth
(Boolean errorOnDuplicateSynth) Sets the value ofStageSynthesisOptions.getErrorOnDuplicateSynth()
Sets the value ofStageSynthesisOptions.getForce()
skipValidation
(Boolean skipValidation) Sets the value ofStageSynthesisOptions.getSkipValidation()
validateOnSynthesis
(Boolean validateOnSynthesis) Sets the value ofStageSynthesisOptions.getValidateOnSynthesis()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aspectStabilization
@Stability(Stable) public StageSynthesisOptions.Builder aspectStabilization(Boolean aspectStabilization) Sets the value ofStageSynthesisOptions.getAspectStabilization()
- Parameters:
aspectStabilization
- Whether or not run the stabilization loop while invoking Aspects. The stabilization loop runs multiple passes of the construct tree when invoking Aspects. Without the stabilization loop, Aspects that are created by other Aspects are not run and new nodes that are created at higher points on the construct tree by an Aspect will not inherit their parent aspects.- Returns:
this
-
errorOnDuplicateSynth
@Stability(Stable) public StageSynthesisOptions.Builder errorOnDuplicateSynth(Boolean errorOnDuplicateSynth) Sets the value ofStageSynthesisOptions.getErrorOnDuplicateSynth()
- Parameters:
errorOnDuplicateSynth
- Whether or not to throw a warning instead of an error if the construct tree has been mutated since the last synth.- Returns:
this
-
force
Sets the value ofStageSynthesisOptions.getForce()
- Parameters:
force
- Force a re-synth, even if the stage has already been synthesized. This is used by tests to allow for incremental verification of the output. Do not use in production.- Returns:
this
-
skipValidation
Sets the value ofStageSynthesisOptions.getSkipValidation()
- Parameters:
skipValidation
- Should we skip construct validation.- Returns:
this
-
validateOnSynthesis
@Stability(Stable) public StageSynthesisOptions.Builder validateOnSynthesis(Boolean validateOnSynthesis) Sets the value ofStageSynthesisOptions.getValidateOnSynthesis()
- Parameters:
validateOnSynthesis
- Whether the stack should be validated after synthesis to check for error metadata.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StageSynthesisOptions>
- Returns:
- a new instance of
StageSynthesisOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-