Class EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps>
- Enclosing interface:
EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps
@Stability(Experimental)
public static final class EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder
extends Object
implements software.amazon.jsii.Builder<EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) instanceId(List<String> instanceId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventMetadata
@Stability(Experimental) public EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
instanceId
@Stability(Experimental) public EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder instanceId(List<String> instanceId) Sets the value ofEC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.getInstanceId()- Parameters:
instanceId- instance-id property. Specify an array of string values to match this event if the actual value of instance-id 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 EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder state(List<String> state) Sets the value ofEC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.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
-
build
@Stability(Experimental) public EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps>- Returns:
- a new instance of
EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps - Throws:
NullPointerException- if any required attribute was not provided
-