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