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