Class CfnPlan.TriggerConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.TriggerConditionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.TriggerConditionProperty>
- Enclosing interface:
CfnPlan.TriggerConditionProperty
@Stability(Stable)
public static final class CfnPlan.TriggerConditionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.TriggerConditionProperty>
A builder for
CfnPlan.TriggerConditionProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatedAlarmName
(String associatedAlarmName) Sets the value ofCfnPlan.TriggerConditionProperty.getAssociatedAlarmName()
build()
Builds the configured instance.Sets the value ofCfnPlan.TriggerConditionProperty.getCondition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associatedAlarmName
@Stability(Stable) public CfnPlan.TriggerConditionProperty.Builder associatedAlarmName(String associatedAlarmName) Sets the value ofCfnPlan.TriggerConditionProperty.getAssociatedAlarmName()
- Parameters:
associatedAlarmName
- The name of the CloudWatch alarm associated with the condition. This parameter is required.- Returns:
this
-
condition
Sets the value ofCfnPlan.TriggerConditionProperty.getCondition()
- Parameters:
condition
- The condition that must be met. This parameter is required. Valid values include ALARM and OK.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlan.TriggerConditionProperty>
- Returns:
- a new instance of
CfnPlan.TriggerConditionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-