Class Ec2HealthCheckOptions.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.Ec2HealthCheckOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Ec2HealthCheckOptions>
- Enclosing interface:
Ec2HealthCheckOptions
@Stability(Stable)
public static final class Ec2HealthCheckOptions.Builder
extends Object
implements software.amazon.jsii.Builder<Ec2HealthCheckOptions>
A builder for
Ec2HealthCheckOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEc2HealthCheckOptions.getGrace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
grace
Sets the value ofEc2HealthCheckOptions.getGrace()
- Parameters:
grace
- Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Ec2HealthCheckOptions>
- Returns:
- a new instance of
Ec2HealthCheckOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-