Class SignalsOptions.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.SignalsOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SignalsOptions>
- Enclosing interface:
SignalsOptions
@Stability(Stable)
public static final class SignalsOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SignalsOptions>
A builder for
SignalsOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.minSuccessPercentage
(Number minSuccessPercentage) Sets the value ofSignalsOptions.getMinSuccessPercentage()
Sets the value ofSignalsOptions.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
minSuccessPercentage
Sets the value ofSignalsOptions.getMinSuccessPercentage()
- Parameters:
minSuccessPercentage
- The percentage of signals that need to be successful. If this number is less than 100, a percentage of signals may be failure signals while still succeeding the creation or update in CloudFormation.- Returns:
this
-
timeout
Sets the value ofSignalsOptions.getTimeout()
- Parameters:
timeout
- How long to wait for the signals to be sent. This should reflect how long it takes your instances to start up (including instance start time and instance initialization time).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SignalsOptions>
- Returns:
- a new instance of
SignalsOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-