Class EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps>
- Enclosing interface:
EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps
@Stability(Experimental)
public static final class EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder
extends Object
implements software.amazon.jsii.Builder<EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps>
-
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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder activityId(List<String> activityId) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder autoScalingGroupName(List<String> autoScalingGroupName) Sets the value ofEC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder description(List<String> description) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder destination(List<String> destination) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder details(EC2InstanceLaunchUnsuccessful.Details details) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder ec2InstanceId(List<String> ec2InstanceId) Sets the value ofEC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder endTime(List<String> endTime) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
origin
@Stability(Experimental) public EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder origin(List<String> origin) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder requestId(List<String> requestId) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder startTime(List<String> startTime) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder statusCode(List<String> statusCode) - 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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.Builder statusMessage(List<String> statusMessage) Sets the value ofEC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps.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 EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps>- Returns:
- a new instance of
EC2InstanceLaunchUnsuccessful.EC2InstanceLaunchUnsuccessfulProps - Throws:
NullPointerException- if any required attribute was not provided
-