Class EMRClusterStateChange.EMRClusterStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.emr.events.EMRClusterStateChange.EMRClusterStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EMRClusterStateChange.EMRClusterStateChangeProps>
- Enclosing interface:
EMRClusterStateChange.EMRClusterStateChangeProps
@Stability(Experimental)
public static final class EMRClusterStateChange.EMRClusterStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<EMRClusterStateChange.EMRClusterStateChangeProps>
A builder for
EMRClusterStateChange.EMRClusterStateChangeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getClusterId()eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getEventMetadata()Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getMessage()Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getName()Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getSeverity()Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getState()stateChangeReason(List<String> stateChangeReason) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getStateChangeReason()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterId
@Stability(Experimental) public EMRClusterStateChange.EMRClusterStateChangeProps.Builder clusterId(List<String> clusterId) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getClusterId()- Parameters:
clusterId- clusterId property. Specify an array of string values to match this event if the actual value of clusterId 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 EMRClusterStateChange.EMRClusterStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
message
@Stability(Experimental) public EMRClusterStateChange.EMRClusterStateChangeProps.Builder message(List<String> message) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getMessage()- Parameters:
message- message property. Specify an array of string values to match this event if the actual value of message is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
name
@Stability(Experimental) public EMRClusterStateChange.EMRClusterStateChangeProps.Builder name(List<String> name) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getName()- Parameters:
name- name property. Specify an array of string values to match this event if the actual value of name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
severity
@Stability(Experimental) public EMRClusterStateChange.EMRClusterStateChangeProps.Builder severity(List<String> severity) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getSeverity()- Parameters:
severity- severity property. Specify an array of string values to match this event if the actual value of severity 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 EMRClusterStateChange.EMRClusterStateChangeProps.Builder state(List<String> state) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.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
-
stateChangeReason
@Stability(Experimental) public EMRClusterStateChange.EMRClusterStateChangeProps.Builder stateChangeReason(List<String> stateChangeReason) Sets the value ofEMRClusterStateChange.EMRClusterStateChangeProps.getStateChangeReason()- Parameters:
stateChangeReason- stateChangeReason property. Specify an array of string values to match this event if the actual value of stateChangeReason 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<EMRClusterStateChange.EMRClusterStateChangeProps>- Returns:
- a new instance of
EMRClusterStateChange.EMRClusterStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-