Class AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps>
- Enclosing interface:
AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps
@Stability(Experimental)
public static final class AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) previousState(AlarmEvents.CloudWatchAlarmStateChange.State previousState)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmName
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder alarmName(List<String> alarmName) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.getAlarmName()- Parameters:
alarmName- alarmName property. Specify an array of string values to match this event if the actual value of alarmName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
configuration
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder configuration(AlarmEvents.CloudWatchAlarmStateChange.Configuration configuration) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.getConfiguration()- Parameters:
configuration- configuration property. Specify an array of string values to match this event if the actual value of configuration 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 AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
previousState
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder previousState(AlarmEvents.CloudWatchAlarmStateChange.State previousState) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.getPreviousState()- Parameters:
previousState- previousState property. Specify an array of string values to match this event if the actual value of previousState 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 AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder state(AlarmEvents.CloudWatchAlarmStateChange.State 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 AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps>- Returns:
- a new instance of
AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-