Class CfnApplication.ProcessProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.ProcessProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.ProcessProperty>
- Enclosing interface:
CfnApplication.ProcessProperty
@Stability(Stable)
public static final class CfnApplication.ProcessProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.ProcessProperty>
A builder for
CfnApplication.ProcessProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalarmMetrics
(List<? extends Object> alarmMetrics) Sets the value ofCfnApplication.ProcessProperty.getAlarmMetrics()
alarmMetrics
(IResolvable alarmMetrics) Sets the value ofCfnApplication.ProcessProperty.getAlarmMetrics()
build()
Builds the configured instance.processName
(String processName) Sets the value ofCfnApplication.ProcessProperty.getProcessName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmMetrics
@Stability(Stable) public CfnApplication.ProcessProperty.Builder alarmMetrics(IResolvable alarmMetrics) Sets the value ofCfnApplication.ProcessProperty.getAlarmMetrics()
- Parameters:
alarmMetrics
- A list of metrics to monitor for the component. This parameter is required.- Returns:
this
-
alarmMetrics
@Stability(Stable) public CfnApplication.ProcessProperty.Builder alarmMetrics(List<? extends Object> alarmMetrics) Sets the value ofCfnApplication.ProcessProperty.getAlarmMetrics()
- Parameters:
alarmMetrics
- A list of metrics to monitor for the component. This parameter is required.- Returns:
this
-
processName
Sets the value ofCfnApplication.ProcessProperty.getProcessName()
- Parameters:
processName
- The name of the process to be monitored for the component. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.ProcessProperty>
- Returns:
- a new instance of
CfnApplication.ProcessProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-