Class CloudWatchAlarmStateChange.State.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudwatch.events.CloudWatchAlarmStateChange.State.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchAlarmStateChange.State>
- Enclosing interface:
CloudWatchAlarmStateChange.State
@Stability(Experimental)
public static final class CloudWatchAlarmStateChange.State.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchAlarmStateChange.State>
A builder for
CloudWatchAlarmStateChange.State-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionsSuppressedBy(List<String> actionsSuppressedBy) Sets the value ofCloudWatchAlarmStateChange.State.getActionsSuppressedBy()actionsSuppressedReason(List<String> actionsSuppressedReason) Sets the value ofCloudWatchAlarmStateChange.State.getActionsSuppressedReason()build()Builds the configured instance.evaluationState(List<String> evaluationState) Sets the value ofCloudWatchAlarmStateChange.State.getEvaluationState()Sets the value ofCloudWatchAlarmStateChange.State.getReason()reasonData(List<String> reasonData) Sets the value ofCloudWatchAlarmStateChange.State.getReasonData()Sets the value ofCloudWatchAlarmStateChange.State.getTimestamp()Sets the value ofCloudWatchAlarmStateChange.State.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionsSuppressedBy
@Stability(Experimental) public CloudWatchAlarmStateChange.State.Builder actionsSuppressedBy(List<String> actionsSuppressedBy) Sets the value ofCloudWatchAlarmStateChange.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 CloudWatchAlarmStateChange.State.Builder actionsSuppressedReason(List<String> actionsSuppressedReason) Sets the value ofCloudWatchAlarmStateChange.State.getActionsSuppressedReason()- 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 CloudWatchAlarmStateChange.State.Builder evaluationState(List<String> evaluationState) Sets the value ofCloudWatchAlarmStateChange.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 CloudWatchAlarmStateChange.State.Builder reason(List<String> reason) Sets the value ofCloudWatchAlarmStateChange.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 CloudWatchAlarmStateChange.State.Builder reasonData(List<String> reasonData) Sets the value ofCloudWatchAlarmStateChange.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 CloudWatchAlarmStateChange.State.Builder timestamp(List<String> timestamp) Sets the value ofCloudWatchAlarmStateChange.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
Sets the value ofCloudWatchAlarmStateChange.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<CloudWatchAlarmStateChange.State>- Returns:
- a new instance of
CloudWatchAlarmStateChange.State - Throws:
NullPointerException- if any required attribute was not provided
-