Class EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps>
- Enclosing interface:
EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps
@Stability(Experimental)
public static final class EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder
extends Object
implements software.amazon.jsii.Builder<EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivityId(List<String> activityId) autoScalingGroupName(List<String> autoScalingGroupName) build()Builds the configured instance.description(List<String> description) destination(List<String> destination) ec2InstanceId(List<String> ec2InstanceId) eventMetadata(AWSEventMetadataProps eventMetadata) statusCode(List<String> statusCode) statusMessage(List<String> statusMessage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
activityId
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder activityId(List<String> activityId) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getActivityId()- Parameters:
activityId- ActivityId property. Specify an array of string values to match this event if the actual value of ActivityId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
autoScalingGroupName
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder autoScalingGroupName(List<String> autoScalingGroupName) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.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
-
cause
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder cause(List<String> cause) - Parameters:
cause- Cause property. Specify an array of string values to match this event if the actual value of Cause is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
description
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder description(List<String> description) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getDescription()- Parameters:
description- Description property. Specify an array of string values to match this event if the actual value of Description 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 EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder destination(List<String> destination) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.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
-
details
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder details(EC2InstanceTerminateUnsuccessful.Details details) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getDetails()- Parameters:
details- Details property. Specify an array of string values to match this event if the actual value of Details 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 EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder ec2InstanceId(List<String> ec2InstanceId) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.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
-
endTime
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder endTime(List<String> endTime) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getEndTime()- Parameters:
endTime- EndTime property. Specify an array of string values to match this event if the actual value of EndTime 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 EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
origin
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder origin(List<String> origin) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.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
-
requestId
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder requestId(List<String> requestId) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getRequestId()- Parameters:
requestId- RequestId property. Specify an array of string values to match this event if the actual value of RequestId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
startTime
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder startTime(List<String> startTime) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getStartTime()- Parameters:
startTime- StartTime property. Specify an array of string values to match this event if the actual value of StartTime is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
statusCode
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder statusCode(List<String> statusCode) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getStatusCode()- Parameters:
statusCode- StatusCode property. Specify an array of string values to match this event if the actual value of StatusCode is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
statusMessage
@Stability(Experimental) public EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.Builder statusMessage(List<String> statusMessage) Sets the value ofEC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps.getStatusMessage()- Parameters:
statusMessage- StatusMessage property. Specify an array of string values to match this event if the actual value of StatusMessage 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 EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps>- Returns:
- a new instance of
EC2InstanceTerminateUnsuccessful.EC2InstanceTerminateUnsuccessfulProps - Throws:
NullPointerException- if any required attribute was not provided
-