Class EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps>
- Enclosing interface:
EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps
@Stability(Experimental)
public static final class EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder
extends Object
implements software.amazon.jsii.Builder<EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) resourceType(List<String> resourceType) stateTransitionReason(List<String> stateTransitionReason)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventMetadata
@Stability(Experimental) public EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
imageId
@Stability(Experimental) public EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder imageId(List<String> imageId) Sets the value ofEC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.getImageId()- Parameters:
imageId- imageId property. Specify an array of string values to match this event if the actual value of imageId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
resourceType
@Stability(Experimental) public EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder resourceType(List<String> resourceType) Sets the value ofEC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.getResourceType()- Parameters:
resourceType- resourceType property. Specify an array of string values to match this event if the actual value of resourceType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
state
@Stability(Experimental) public EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder state(List<String> state) Sets the value ofEC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.getState()- Parameters:
state- state property. Specify an array of string values to match this event if the actual value of state is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
stateTransitionReason
@Stability(Experimental) public EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.Builder stateTransitionReason(List<String> stateTransitionReason) Sets the value ofEC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps.getStateTransitionReason()- Parameters:
stateTransitionReason- stateTransitionReason property. Specify an array of string values to match this event if the actual value of stateTransitionReason 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 EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps>- Returns:
- a new instance of
EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps - Throws:
NullPointerException- if any required attribute was not provided
-