Class AlarmEvents.CloudWatchAlarmStateChange.State.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.AlarmEvents.CloudWatchAlarmStateChange.State.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.State>
- Enclosing interface:
AlarmEvents.CloudWatchAlarmStateChange.State
@Stability(Experimental)
public static final class AlarmEvents.CloudWatchAlarmStateChange.State.Builder
extends Object
implements software.amazon.jsii.Builder<AlarmEvents.CloudWatchAlarmStateChange.State>
A builder for
AlarmEvents.CloudWatchAlarmStateChange.State-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionsSuppressedBy(List<String> actionsSuppressedBy) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getActionsSuppressedBy()actionsSuppressedReason(List<String> actionsSuppressedReason) build()Builds the configured instance.evaluationState(List<String> evaluationState) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getEvaluationState()Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getReason()reasonData(List<String> reasonData) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getReasonData()Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getTimestamp()Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionsSuppressedBy
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.State.Builder actionsSuppressedBy(List<String> actionsSuppressedBy) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getActionsSuppressedBy()- Parameters:
actionsSuppressedBy- actionsSuppressedBy property. Specify an array of string values to match this event if the actual value of actionsSuppressedBy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
actionsSuppressedReason
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.State.Builder actionsSuppressedReason(List<String> actionsSuppressedReason) - Parameters:
actionsSuppressedReason- actionsSuppressedReason property. Specify an array of string values to match this event if the actual value of actionsSuppressedReason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
evaluationState
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.State.Builder evaluationState(List<String> evaluationState) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getEvaluationState()- Parameters:
evaluationState- evaluationState property. Specify an array of string values to match this event if the actual value of evaluationState is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
reason
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.State.Builder reason(List<String> reason) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getReason()- Parameters:
reason- reason property. Specify an array of string values to match this event if the actual value of reason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
reasonData
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.State.Builder reasonData(List<String> reasonData) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getReasonData()- Parameters:
reasonData- reasonData property. Specify an array of string values to match this event if the actual value of reasonData is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
timestamp
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.State.Builder timestamp(List<String> timestamp) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getTimestamp()- Parameters:
timestamp- timestamp property. Specify an array of string values to match this event if the actual value of timestamp is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
value
@Stability(Experimental) public AlarmEvents.CloudWatchAlarmStateChange.State.Builder value(List<String> value) Sets the value ofAlarmEvents.CloudWatchAlarmStateChange.State.getValue()- Parameters:
value- value property. Specify an array of string values to match this event if the actual value of value 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<AlarmEvents.CloudWatchAlarmStateChange.State>- Returns:
- a new instance of
AlarmEvents.CloudWatchAlarmStateChange.State - Throws:
NullPointerException- if any required attribute was not provided
-