Class EC2InstanceLaunchSuccessful.Details.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.EC2InstanceLaunchSuccessful.Details.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2InstanceLaunchSuccessful.Details>
- Enclosing interface:
EC2InstanceLaunchSuccessful.Details
@Stability(Experimental)
public static final class EC2InstanceLaunchSuccessful.Details.Builder
extends Object
implements software.amazon.jsii.Builder<EC2InstanceLaunchSuccessful.Details>
A builder for
EC2InstanceLaunchSuccessful.Details-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(List<String> availabilityZone) Sets the value ofEC2InstanceLaunchSuccessful.Details.getAvailabilityZone()build()Builds the configured instance.Sets the value ofEC2InstanceLaunchSuccessful.Details.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Experimental) public EC2InstanceLaunchSuccessful.Details.Builder availabilityZone(List<String> availabilityZone) Sets the value ofEC2InstanceLaunchSuccessful.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 EC2InstanceLaunchSuccessful.Details.Builder subnetId(List<String> subnetId) Sets the value ofEC2InstanceLaunchSuccessful.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<EC2InstanceLaunchSuccessful.Details>- Returns:
- a new instance of
EC2InstanceLaunchSuccessful.Details - Throws:
NullPointerException- if any required attribute was not provided
-