Class EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.emr.events.EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps>
- Enclosing interface:
EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps
@Stability(Experimental)
public static final class EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) instanceFleetId(List<String> instanceFleetId) instanceFleetType(List<String> instanceFleetType) provisionedOnDemandCapacity(List<String> provisionedOnDemandCapacity) provisionedSpotCapacity(List<String> provisionedSpotCapacity) Sets the value ofEMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.getState()targetOnDemandCapacity(List<String> targetOnDemandCapacity) targetSpotCapacity(List<String> targetSpotCapacity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterId
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder clusterId(List<String> clusterId) - 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 EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) - Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
instanceFleetId
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder instanceFleetId(List<String> instanceFleetId) - Parameters:
instanceFleetId- instanceFleetId property. Specify an array of string values to match this event if the actual value of instanceFleetId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
instanceFleetType
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder instanceFleetType(List<String> instanceFleetType) Sets the value ofEMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.getInstanceFleetType()- Parameters:
instanceFleetType- instanceFleetType property. Specify an array of string values to match this event if the actual value of instanceFleetType is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
message
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder message(List<String> message) - 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
-
provisionedOnDemandCapacity
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder provisionedOnDemandCapacity(List<String> provisionedOnDemandCapacity) Sets the value ofEMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.getProvisionedOnDemandCapacity()- Parameters:
provisionedOnDemandCapacity- provisionedOnDemandCapacity property. Specify an array of string values to match this event if the actual value of provisionedOnDemandCapacity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
provisionedSpotCapacity
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder provisionedSpotCapacity(List<String> provisionedSpotCapacity) Sets the value ofEMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.getProvisionedSpotCapacity()- Parameters:
provisionedSpotCapacity- provisionedSpotCapacity property. Specify an array of string values to match this event if the actual value of provisionedSpotCapacity 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 EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder severity(List<String> severity) - 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 EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder state(List<String> state) Sets the value ofEMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.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
-
targetOnDemandCapacity
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder targetOnDemandCapacity(List<String> targetOnDemandCapacity) Sets the value ofEMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.getTargetOnDemandCapacity()- Parameters:
targetOnDemandCapacity- targetOnDemandCapacity property. Specify an array of string values to match this event if the actual value of targetOnDemandCapacity is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
targetSpotCapacity
@Stability(Experimental) public EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.Builder targetSpotCapacity(List<String> targetSpotCapacity) Sets the value ofEMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps.getTargetSpotCapacity()- Parameters:
targetSpotCapacity- targetSpotCapacity property. Specify an array of string values to match this event if the actual value of targetSpotCapacity 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 EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps>- Returns:
- a new instance of
EMRInstanceFleetStateChange.EMRInstanceFleetStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-