Class CfnApplication.SubComponentConfigurationDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.SubComponentConfigurationDetailsProperty>
- Enclosing interface:
CfnApplication.SubComponentConfigurationDetailsProperty
@Stability(Stable)
public static final class CfnApplication.SubComponentConfigurationDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.SubComponentConfigurationDetailsProperty>
A builder for
CfnApplication.SubComponentConfigurationDetailsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalarmMetrics
(List<? extends Object> alarmMetrics) alarmMetrics
(IResolvable alarmMetrics) build()
Builds the configured instance.Sets the value ofCfnApplication.SubComponentConfigurationDetailsProperty.getLogs()
logs
(IResolvable logs) Sets the value ofCfnApplication.SubComponentConfigurationDetailsProperty.getLogs()
windowsEvents
(List<? extends Object> windowsEvents) windowsEvents
(IResolvable windowsEvents)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmMetrics
@Stability(Stable) public CfnApplication.SubComponentConfigurationDetailsProperty.Builder alarmMetrics(IResolvable alarmMetrics) - Parameters:
alarmMetrics
- A list of metrics to monitor for the component. All component types can useAlarmMetrics
.- Returns:
this
-
alarmMetrics
@Stability(Stable) public CfnApplication.SubComponentConfigurationDetailsProperty.Builder alarmMetrics(List<? extends Object> alarmMetrics) - Parameters:
alarmMetrics
- A list of metrics to monitor for the component. All component types can useAlarmMetrics
.- Returns:
this
-
logs
@Stability(Stable) public CfnApplication.SubComponentConfigurationDetailsProperty.Builder logs(IResolvable logs) Sets the value ofCfnApplication.SubComponentConfigurationDetailsProperty.getLogs()
- Parameters:
logs
- A list of logs to monitor for the component. Only Amazon EC2 instances can useLogs
.- Returns:
this
-
logs
@Stability(Stable) public CfnApplication.SubComponentConfigurationDetailsProperty.Builder logs(List<? extends Object> logs) Sets the value ofCfnApplication.SubComponentConfigurationDetailsProperty.getLogs()
- Parameters:
logs
- A list of logs to monitor for the component. Only Amazon EC2 instances can useLogs
.- Returns:
this
-
windowsEvents
@Stability(Stable) public CfnApplication.SubComponentConfigurationDetailsProperty.Builder windowsEvents(IResolvable windowsEvents) - Parameters:
windowsEvents
- A list of Windows Events to monitor for the component. Only Amazon EC2 instances running on Windows can useWindowsEvents
.- Returns:
this
-
windowsEvents
@Stability(Stable) public CfnApplication.SubComponentConfigurationDetailsProperty.Builder windowsEvents(List<? extends Object> windowsEvents) - Parameters:
windowsEvents
- A list of Windows Events to monitor for the component. Only Amazon EC2 instances running on Windows can useWindowsEvents
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.SubComponentConfigurationDetailsProperty>
- Returns:
- a new instance of
CfnApplication.SubComponentConfigurationDetailsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-