Class EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps>
- Enclosing interface:
EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps
@Stability(Experimental)
public static final class EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupName(List<String> autoScalingGroupName) build()Builds the configured instance.destination(List<String> destination) ec2InstanceId(List<String> ec2InstanceId) eventMetadata(AWSEventMetadataProps eventMetadata) lifecycleActionToken(List<String> lifecycleActionToken) lifecycleHookName(List<String> lifecycleHookName) lifecycleTransition(List<String> lifecycleTransition) notificationMetadata(List<String> notificationMetadata)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingGroupName
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder autoScalingGroupName(List<String> autoScalingGroupName) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getAutoScalingGroupName()- Parameters:
autoScalingGroupName- AutoScalingGroupName property. Specify an array of string values to match this event if the actual value of AutoScalingGroupName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
destination
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder destination(List<String> destination) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getDestination()- Parameters:
destination- Destination property. Specify an array of string values to match this event if the actual value of Destination is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
ec2InstanceId
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder ec2InstanceId(List<String> ec2InstanceId) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getEc2InstanceId()- Parameters:
ec2InstanceId- EC2InstanceId property. Specify an array of string values to match this event if the actual value of EC2InstanceId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
lifecycleActionToken
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder lifecycleActionToken(List<String> lifecycleActionToken) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getLifecycleActionToken()- Parameters:
lifecycleActionToken- LifecycleActionToken property. Specify an array of string values to match this event if the actual value of LifecycleActionToken is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
lifecycleHookName
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder lifecycleHookName(List<String> lifecycleHookName) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getLifecycleHookName()- Parameters:
lifecycleHookName- LifecycleHookName property. Specify an array of string values to match this event if the actual value of LifecycleHookName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
lifecycleTransition
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder lifecycleTransition(List<String> lifecycleTransition) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getLifecycleTransition()- Parameters:
lifecycleTransition- LifecycleTransition property. Specify an array of string values to match this event if the actual value of LifecycleTransition is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
notificationMetadata
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder notificationMetadata(List<String> notificationMetadata) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getNotificationMetadata()- Parameters:
notificationMetadata- NotificationMetadata property. Specify an array of string values to match this event if the actual value of NotificationMetadata is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
origin
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.Builder origin(List<String> origin) Sets the value ofEC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps.getOrigin()- Parameters:
origin- Origin property. Specify an array of string values to match this event if the actual value of Origin is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
@Stability(Experimental) public EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps>- Returns:
- a new instance of
EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps - Throws:
NullPointerException- if any required attribute was not provided
-