Class EBSVolumeNotification.EBSVolumeNotificationProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.events.EBSVolumeNotification.EBSVolumeNotificationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EBSVolumeNotification.EBSVolumeNotificationProps>
- Enclosing interface:
EBSVolumeNotification.EBSVolumeNotificationProps
@Stability(Experimental)
public static final class EBSVolumeNotification.EBSVolumeNotificationProps.Builder
extends Object
implements software.amazon.jsii.Builder<EBSVolumeNotification.EBSVolumeNotificationProps>
A builder for
EBSVolumeNotification.EBSVolumeNotificationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getCause()Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getEvent()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getEventMetadata()Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getRequestId()Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getResult()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cause
@Stability(Experimental) public EBSVolumeNotification.EBSVolumeNotificationProps.Builder cause(List<String> cause) Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getCause()- 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
-
event
@Stability(Experimental) public EBSVolumeNotification.EBSVolumeNotificationProps.Builder event(List<String> event) Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getEvent()- Parameters:
event- event property. Specify an array of string values to match this event if the actual value of event 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 EBSVolumeNotification.EBSVolumeNotificationProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
requestId
@Stability(Experimental) public EBSVolumeNotification.EBSVolumeNotificationProps.Builder requestId(List<String> requestId) Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getRequestId()- Parameters:
requestId- request-id property. Specify an array of string values to match this event if the actual value of request-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
result
@Stability(Experimental) public EBSVolumeNotification.EBSVolumeNotificationProps.Builder result(List<String> result) Sets the value ofEBSVolumeNotification.EBSVolumeNotificationProps.getResult()- Parameters:
result- result property. Specify an array of string values to match this event if the actual value of result is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EBSVolumeNotification.EBSVolumeNotificationProps>- Returns:
- a new instance of
EBSVolumeNotification.EBSVolumeNotificationProps - Throws:
NullPointerException- if any required attribute was not provided
-