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