Class CfnApplication.HAClusterPrometheusExporterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.HAClusterPrometheusExporterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.HAClusterPrometheusExporterProperty>
- Enclosing interface:
- CfnApplication.HAClusterPrometheusExporterProperty
@Stability(Stable)
public static final class CfnApplication.HAClusterPrometheusExporterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.HAClusterPrometheusExporterProperty>
A builder for
CfnApplication.HAClusterPrometheusExporterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.prometheusPort(String prometheusPort) Sets the value ofCfnApplication.HAClusterPrometheusExporterProperty.getPrometheusPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prometheusPort
@Stability(Stable) public CfnApplication.HAClusterPrometheusExporterProperty.Builder prometheusPort(String prometheusPort) Sets the value ofCfnApplication.HAClusterPrometheusExporterProperty.getPrometheusPort()- Parameters:
prometheusPort- The target port to which Prometheus sends metrics. If not specified, the default port 9668 is used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplication.HAClusterPrometheusExporterProperty>- Returns:
- a new instance of
CfnApplication.HAClusterPrometheusExporterProperty - Throws:
NullPointerException- if any required attribute was not provided
-