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