Class CfnApplicationProps.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplicationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationProps>
- Enclosing interface:
- CfnApplicationProps
@Stability(Stable)
public static final class CfnApplicationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationProps>
A builder for
CfnApplicationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoConfigurationEnabled
(Boolean autoConfigurationEnabled) Sets the value ofCfnApplicationProps.getAutoConfigurationEnabled()
autoConfigurationEnabled
(IResolvable autoConfigurationEnabled) Sets the value ofCfnApplicationProps.getAutoConfigurationEnabled()
build()
Builds the configured instance.componentMonitoringSettings
(List<? extends Object> componentMonitoringSettings) Sets the value ofCfnApplicationProps.getComponentMonitoringSettings()
componentMonitoringSettings
(IResolvable componentMonitoringSettings) Sets the value ofCfnApplicationProps.getComponentMonitoringSettings()
customComponents
(List<? extends Object> customComponents) Sets the value ofCfnApplicationProps.getCustomComponents()
customComponents
(IResolvable customComponents) Sets the value ofCfnApplicationProps.getCustomComponents()
cweMonitorEnabled
(Boolean cweMonitorEnabled) Sets the value ofCfnApplicationProps.getCweMonitorEnabled()
cweMonitorEnabled
(IResolvable cweMonitorEnabled) Sets the value ofCfnApplicationProps.getCweMonitorEnabled()
groupingType
(String groupingType) Sets the value ofCfnApplicationProps.getGroupingType()
logPatternSets
(List<? extends Object> logPatternSets) Sets the value ofCfnApplicationProps.getLogPatternSets()
logPatternSets
(IResolvable logPatternSets) Sets the value ofCfnApplicationProps.getLogPatternSets()
opsCenterEnabled
(Boolean opsCenterEnabled) Sets the value ofCfnApplicationProps.getOpsCenterEnabled()
opsCenterEnabled
(IResolvable opsCenterEnabled) Sets the value ofCfnApplicationProps.getOpsCenterEnabled()
opsItemSnsTopicArn
(String opsItemSnsTopicArn) Sets the value ofCfnApplicationProps.getOpsItemSnsTopicArn()
resourceGroupName
(String resourceGroupName) Sets the value ofCfnApplicationProps.getResourceGroupName()
Sets the value ofCfnApplicationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceGroupName
Sets the value ofCfnApplicationProps.getResourceGroupName()
- Parameters:
resourceGroupName
- The name of the resource group used for the application. This parameter is required.- Returns:
this
-
autoConfigurationEnabled
@Stability(Stable) public CfnApplicationProps.Builder autoConfigurationEnabled(Boolean autoConfigurationEnabled) Sets the value ofCfnApplicationProps.getAutoConfigurationEnabled()
- Parameters:
autoConfigurationEnabled
- If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.- Returns:
this
-
autoConfigurationEnabled
@Stability(Stable) public CfnApplicationProps.Builder autoConfigurationEnabled(IResolvable autoConfigurationEnabled) Sets the value ofCfnApplicationProps.getAutoConfigurationEnabled()
- Parameters:
autoConfigurationEnabled
- If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.- Returns:
this
-
componentMonitoringSettings
@Stability(Stable) public CfnApplicationProps.Builder componentMonitoringSettings(IResolvable componentMonitoringSettings) Sets the value ofCfnApplicationProps.getComponentMonitoringSettings()
- Parameters:
componentMonitoringSettings
- The monitoring settings of the components.- Returns:
this
-
componentMonitoringSettings
@Stability(Stable) public CfnApplicationProps.Builder componentMonitoringSettings(List<? extends Object> componentMonitoringSettings) Sets the value ofCfnApplicationProps.getComponentMonitoringSettings()
- Parameters:
componentMonitoringSettings
- The monitoring settings of the components.- Returns:
this
-
customComponents
@Stability(Stable) public CfnApplicationProps.Builder customComponents(IResolvable customComponents) Sets the value ofCfnApplicationProps.getCustomComponents()
- Parameters:
customComponents
- Describes a custom component by grouping similar standalone instances to monitor.- Returns:
this
-
customComponents
@Stability(Stable) public CfnApplicationProps.Builder customComponents(List<? extends Object> customComponents) Sets the value ofCfnApplicationProps.getCustomComponents()
- Parameters:
customComponents
- Describes a custom component by grouping similar standalone instances to monitor.- Returns:
this
-
cweMonitorEnabled
Sets the value ofCfnApplicationProps.getCweMonitorEnabled()
- Parameters:
cweMonitorEnabled
- Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.- Returns:
this
-
cweMonitorEnabled
@Stability(Stable) public CfnApplicationProps.Builder cweMonitorEnabled(IResolvable cweMonitorEnabled) Sets the value ofCfnApplicationProps.getCweMonitorEnabled()
- Parameters:
cweMonitorEnabled
- Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.- Returns:
this
-
groupingType
Sets the value ofCfnApplicationProps.getGroupingType()
- Parameters:
groupingType
- Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter toACCOUNT_BASED
.- Returns:
this
-
logPatternSets
Sets the value ofCfnApplicationProps.getLogPatternSets()
- Parameters:
logPatternSets
- The log pattern sets.- Returns:
this
-
logPatternSets
@Stability(Stable) public CfnApplicationProps.Builder logPatternSets(List<? extends Object> logPatternSets) Sets the value ofCfnApplicationProps.getLogPatternSets()
- Parameters:
logPatternSets
- The log pattern sets.- Returns:
this
-
opsCenterEnabled
Sets the value ofCfnApplicationProps.getOpsCenterEnabled()
- Parameters:
opsCenterEnabled
- Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.- Returns:
this
-
opsCenterEnabled
@Stability(Stable) public CfnApplicationProps.Builder opsCenterEnabled(IResolvable opsCenterEnabled) Sets the value ofCfnApplicationProps.getOpsCenterEnabled()
- Parameters:
opsCenterEnabled
- Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.- Returns:
this
-
opsItemSnsTopicArn
Sets the value ofCfnApplicationProps.getOpsItemSnsTopicArn()
- Parameters:
opsItemSnsTopicArn
- The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.- Returns:
this
-
tags
Sets the value ofCfnApplicationProps.getTags()
- Parameters:
tags
- An array ofTags
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplicationProps>
- Returns:
- a new instance of
CfnApplicationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-