Class EC2ImageBuilderImageStateChange.ImageState.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.imagebuilder.events.EC2ImageBuilderImageStateChange.ImageState.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EC2ImageBuilderImageStateChange.ImageState>
- Enclosing interface:
EC2ImageBuilderImageStateChange.ImageState
@Stability(Experimental)
public static final class EC2ImageBuilderImageStateChange.ImageState.Builder
extends Object
implements software.amazon.jsii.Builder<EC2ImageBuilderImageStateChange.ImageState>
A builder for
EC2ImageBuilderImageStateChange.ImageState-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEC2ImageBuilderImageStateChange.ImageState.getReason()Sets the value ofEC2ImageBuilderImageStateChange.ImageState.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
reason
@Stability(Experimental) public EC2ImageBuilderImageStateChange.ImageState.Builder reason(List<String> reason) Sets the value ofEC2ImageBuilderImageStateChange.ImageState.getReason()- Parameters:
reason- reason property. Specify an array of string values to match this event if the actual value of reason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
status
@Stability(Experimental) public EC2ImageBuilderImageStateChange.ImageState.Builder status(List<String> status) Sets the value ofEC2ImageBuilderImageStateChange.ImageState.getStatus()- Parameters:
status- status property. Specify an array of string values to match this event if the actual value of status 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<EC2ImageBuilderImageStateChange.ImageState>- Returns:
- a new instance of
EC2ImageBuilderImageStateChange.ImageState - Throws:
NullPointerException- if any required attribute was not provided
-