Class CompositeAlarmReference.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CompositeAlarmReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CompositeAlarmReference>
- Enclosing interface:
CompositeAlarmReference
@Stability(Stable)
public static final class CompositeAlarmReference.Builder
extends Object
implements software.amazon.jsii.Builder<CompositeAlarmReference>
A builder for
CompositeAlarmReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCompositeAlarmReference.getAlarmName()
build()
Builds the configured instance.compositeAlarmArn
(String compositeAlarmArn) Sets the value ofCompositeAlarmReference.getCompositeAlarmArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmName
Sets the value ofCompositeAlarmReference.getAlarmName()
- Parameters:
alarmName
- The AlarmName of the CompositeAlarm resource. This parameter is required.- Returns:
this
-
compositeAlarmArn
@Stability(Stable) public CompositeAlarmReference.Builder compositeAlarmArn(String compositeAlarmArn) Sets the value ofCompositeAlarmReference.getCompositeAlarmArn()
- Parameters:
compositeAlarmArn
- The ARN of the CompositeAlarm resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CompositeAlarmReference>
- Returns:
- a new instance of
CompositeAlarmReference
- Throws:
NullPointerException
- if any required attribute was not provided
-