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