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