Class CfnApplication.MonitoringConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication.MonitoringConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.MonitoringConfigurationProperty>
- Enclosing interface:
CfnApplication.MonitoringConfigurationProperty
@Stability(Stable)
public static final class CfnApplication.MonitoringConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.MonitoringConfigurationProperty>
A builder for
CfnApplication.MonitoringConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configurationType
(String configurationType) Sets the value ofCfnApplication.MonitoringConfigurationProperty.getConfigurationType()
Sets the value ofCfnApplication.MonitoringConfigurationProperty.getLogLevel()
metricsLevel
(String metricsLevel) Sets the value ofCfnApplication.MonitoringConfigurationProperty.getMetricsLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationType
@Stability(Stable) public CfnApplication.MonitoringConfigurationProperty.Builder configurationType(String configurationType) Sets the value ofCfnApplication.MonitoringConfigurationProperty.getConfigurationType()
- Parameters:
configurationType
- Describes whether to use the default CloudWatch logging configuration for an application. This parameter is required. You must set this property toCUSTOM
in order to set theLogLevel
orMetricsLevel
parameters.- Returns:
this
-
logLevel
@Stability(Stable) public CfnApplication.MonitoringConfigurationProperty.Builder logLevel(String logLevel) Sets the value ofCfnApplication.MonitoringConfigurationProperty.getLogLevel()
- Parameters:
logLevel
- Describes the verbosity of the CloudWatch Logs for an application.- Returns:
this
-
metricsLevel
@Stability(Stable) public CfnApplication.MonitoringConfigurationProperty.Builder metricsLevel(String metricsLevel) Sets the value ofCfnApplication.MonitoringConfigurationProperty.getMetricsLevel()
- Parameters:
metricsLevel
- Describes the granularity of the CloudWatch Logs for an application. TheParallelism
level is not recommended for applications with a Parallelism over 64 due to excessive costs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.MonitoringConfigurationProperty>
- Returns:
- a new instance of
CfnApplication.MonitoringConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-