Class EC2InstanceLaunchUnsuccessful.Details.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.EC2InstanceLaunchUnsuccessful.Details.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2InstanceLaunchUnsuccessful.Details>
- Enclosing interface:
EC2InstanceLaunchUnsuccessful.Details
@Stability(Experimental)
public static final class EC2InstanceLaunchUnsuccessful.Details.Builder
extends Object
implements software.amazon.jsii.Builder<EC2InstanceLaunchUnsuccessful.Details>
A builder for
EC2InstanceLaunchUnsuccessful.Details-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(List<String> availabilityZone) Sets the value ofEC2InstanceLaunchUnsuccessful.Details.getAvailabilityZone()build()Builds the configured instance.Sets the value ofEC2InstanceLaunchUnsuccessful.Details.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Experimental) public EC2InstanceLaunchUnsuccessful.Details.Builder availabilityZone(List<String> availabilityZone) Sets the value ofEC2InstanceLaunchUnsuccessful.Details.getAvailabilityZone()- Parameters:
availabilityZone- Availability Zone property. Specify an array of string values to match this event if the actual value of Availability Zone is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
subnetId
@Stability(Experimental) public EC2InstanceLaunchUnsuccessful.Details.Builder subnetId(List<String> subnetId) Sets the value ofEC2InstanceLaunchUnsuccessful.Details.getSubnetId()- Parameters:
subnetId- Subnet ID property. Specify an array of string values to match this event if the actual value of Subnet ID is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EC2InstanceLaunchUnsuccessful.Details>- Returns:
- a new instance of
EC2InstanceLaunchUnsuccessful.Details - Throws:
NullPointerException- if any required attribute was not provided
-