Class CfnApplication.ComponentMonitoringSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.ComponentMonitoringSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.ComponentMonitoringSettingProperty>
- Enclosing interface:
CfnApplication.ComponentMonitoringSettingProperty
@Stability(Stable)
public static final class CfnApplication.ComponentMonitoringSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.ComponentMonitoringSettingProperty>
A builder for
CfnApplication.ComponentMonitoringSettingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.componentArn
(String componentArn) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getComponentArn()
componentConfigurationMode
(String componentConfigurationMode) componentName
(String componentName) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getComponentName()
customComponentConfiguration
(IResolvable customComponentConfiguration) customComponentConfiguration
(CfnApplication.ComponentConfigurationProperty customComponentConfiguration) defaultOverwriteComponentConfiguration
(IResolvable defaultOverwriteComponentConfiguration) defaultOverwriteComponentConfiguration
(CfnApplication.ComponentConfigurationProperty defaultOverwriteComponentConfiguration) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getTier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentConfigurationMode
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder componentConfigurationMode(String componentConfigurationMode) - Parameters:
componentConfigurationMode
- Component monitoring can be configured in one of the following three modes:. This parameter is required.DEFAULT
: The component will be configured with the recommended default monitoring settings of the selectedTier
.CUSTOM
: The component will be configured with the customized monitoring settings that are specified inCustomComponentConfiguration
. If used,CustomComponentConfiguration
must be provided.DEFAULT_WITH_OVERWRITE
: The component will be configured with the recommended default monitoring settings of the selectedTier
, and merged with customized overwrite settings that are specified inDefaultOverwriteComponentConfiguration
. If used,DefaultOverwriteComponentConfiguration
must be provided.
- Returns:
this
-
tier
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder tier(String tier) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getTier()
- Parameters:
tier
- The tier of the application component. This parameter is required. Supported tiers includeDOT_NET_CORE
,DOT_NET_WORKER
,DOT_NET_WEB
,SQL_SERVER
,SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP
,SQL_SERVER_FAILOVER_CLUSTER_INSTANCE
,MYSQL
,POSTGRESQL
,JAVA_JMX
,ORACLE
,SAP_HANA_MULTI_NODE
,SAP_HANA_SINGLE_NODE
,SAP_HANA_HIGH_AVAILABILITY
,SHAREPOINT
.ACTIVE_DIRECTORY
, andDEFAULT
.- Returns:
this
-
componentArn
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder componentArn(String componentArn) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getComponentArn()
- Parameters:
componentArn
- The ARN of the component. Either the component ARN or the component name is required.- Returns:
this
-
componentName
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder componentName(String componentName) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getComponentName()
- Parameters:
componentName
- The name of the component. Either the component ARN or the component name is required.- Returns:
this
-
customComponentConfiguration
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder customComponentConfiguration(IResolvable customComponentConfiguration) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getCustomComponentConfiguration()
- Parameters:
customComponentConfiguration
- Customized monitoring settings. Required if CUSTOM mode is configured inComponentConfigurationMode
.- Returns:
this
-
customComponentConfiguration
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder customComponentConfiguration(CfnApplication.ComponentConfigurationProperty customComponentConfiguration) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getCustomComponentConfiguration()
- Parameters:
customComponentConfiguration
- Customized monitoring settings. Required if CUSTOM mode is configured inComponentConfigurationMode
.- Returns:
this
-
defaultOverwriteComponentConfiguration
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder defaultOverwriteComponentConfiguration(IResolvable defaultOverwriteComponentConfiguration) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getDefaultOverwriteComponentConfiguration()
- Parameters:
defaultOverwriteComponentConfiguration
- Customized overwrite monitoring settings. Required if CUSTOM mode is configured inComponentConfigurationMode
.- Returns:
this
-
defaultOverwriteComponentConfiguration
@Stability(Stable) public CfnApplication.ComponentMonitoringSettingProperty.Builder defaultOverwriteComponentConfiguration(CfnApplication.ComponentConfigurationProperty defaultOverwriteComponentConfiguration) Sets the value ofCfnApplication.ComponentMonitoringSettingProperty.getDefaultOverwriteComponentConfiguration()
- Parameters:
defaultOverwriteComponentConfiguration
- Customized overwrite monitoring settings. Required if CUSTOM mode is configured inComponentConfigurationMode
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.ComponentMonitoringSettingProperty>
- Returns:
- a new instance of
CfnApplication.ComponentMonitoringSettingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-