Class CfnPlan.AssociatedAlarmProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.AssociatedAlarmProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.AssociatedAlarmProperty>
- Enclosing interface:
CfnPlan.AssociatedAlarmProperty
@Stability(Stable)
public static final class CfnPlan.AssociatedAlarmProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.AssociatedAlarmProperty>
A builder for
CfnPlan.AssociatedAlarmProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPlan.AssociatedAlarmProperty.getAlarmType()
build()
Builds the configured instance.crossAccountRole
(String crossAccountRole) Sets the value ofCfnPlan.AssociatedAlarmProperty.getCrossAccountRole()
externalId
(String externalId) Sets the value ofCfnPlan.AssociatedAlarmProperty.getExternalId()
resourceIdentifier
(String resourceIdentifier) Sets the value ofCfnPlan.AssociatedAlarmProperty.getResourceIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmType
Sets the value ofCfnPlan.AssociatedAlarmProperty.getAlarmType()
- Parameters:
alarmType
- The alarm type for an associated alarm. This parameter is required. An associated CloudWatch alarm can be an application health alarm or a trigger alarm.- Returns:
this
-
resourceIdentifier
@Stability(Stable) public CfnPlan.AssociatedAlarmProperty.Builder resourceIdentifier(String resourceIdentifier) Sets the value ofCfnPlan.AssociatedAlarmProperty.getResourceIdentifier()
- Parameters:
resourceIdentifier
- The resource identifier for alarms that you associate with a plan. This parameter is required.- Returns:
this
-
crossAccountRole
@Stability(Stable) public CfnPlan.AssociatedAlarmProperty.Builder crossAccountRole(String crossAccountRole) Sets the value ofCfnPlan.AssociatedAlarmProperty.getCrossAccountRole()
- Parameters:
crossAccountRole
- The cross account role for the configuration.- Returns:
this
-
externalId
Sets the value ofCfnPlan.AssociatedAlarmProperty.getExternalId()
- Parameters:
externalId
- The external ID (secret key) for the configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlan.AssociatedAlarmProperty>
- Returns:
- a new instance of
CfnPlan.AssociatedAlarmProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-