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