Class CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps>
- Enclosing interface:
CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps
@Stability(Experimental)
public static final class CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configuration(CloudWatchAlarmStateChange.Configuration configuration) eventMetadata(AWSEventMetadataProps eventMetadata) previousState(CloudWatchAlarmStateChange.State previousState) Sets the value ofCloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.getState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmName
@Stability(Experimental) public CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder alarmName(List<String> alarmName) - 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 CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder configuration(CloudWatchAlarmStateChange.Configuration configuration) - 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 CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) - Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
previousState
@Stability(Experimental) public CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder previousState(CloudWatchAlarmStateChange.State previousState) - 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 CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.Builder state(CloudWatchAlarmStateChange.State state) Sets the value ofCloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps>- Returns:
- a new instance of
CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps - Throws:
NullPointerException- if any required attribute was not provided
-