Class CfnEnvironmentPropsMixin.MonitorProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appconfig.CfnEnvironmentPropsMixin.MonitorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironmentPropsMixin.MonitorProperty>
- Enclosing interface:
CfnEnvironmentPropsMixin.MonitorProperty
@Stability(Stable)
public static final class CfnEnvironmentPropsMixin.MonitorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironmentPropsMixin.MonitorProperty>
A builder for
CfnEnvironmentPropsMixin.MonitorProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmArn()Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmArn()alarmArn(ICompositeAlarmRef alarmArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmArn()alarmRoleArn(String alarmRoleArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmRoleArn()alarmRoleArn(IRoleRef alarmRoleArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmRoleArn()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmArn
@Stability(Stable) public CfnEnvironmentPropsMixin.MonitorProperty.Builder alarmArn(String alarmArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmArn()- Parameters:
alarmArn- Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.- Returns:
this
-
alarmArn
@Stability(Stable) public CfnEnvironmentPropsMixin.MonitorProperty.Builder alarmArn(IAlarmRef alarmArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmArn()- Parameters:
alarmArn- Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.- Returns:
this
-
alarmArn
@Stability(Stable) public CfnEnvironmentPropsMixin.MonitorProperty.Builder alarmArn(ICompositeAlarmRef alarmArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmArn()- Parameters:
alarmArn- Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.- Returns:
this
-
alarmRoleArn
@Stability(Stable) public CfnEnvironmentPropsMixin.MonitorProperty.Builder alarmRoleArn(String alarmRoleArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmRoleArn()- Parameters:
alarmRoleArn- ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitorAlarmArn.- Returns:
this
-
alarmRoleArn
@Stability(Stable) public CfnEnvironmentPropsMixin.MonitorProperty.Builder alarmRoleArn(IRoleRef alarmRoleArn) Sets the value ofCfnEnvironmentPropsMixin.MonitorProperty.getAlarmRoleArn()- Parameters:
alarmRoleArn- ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitorAlarmArn.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironmentPropsMixin.MonitorProperty>- Returns:
- a new instance of
CfnEnvironmentPropsMixin.MonitorProperty - Throws:
NullPointerException- if any required attribute was not provided
-