Class CfnApplication.JMXPrometheusExporterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.JMXPrometheusExporterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.JMXPrometheusExporterProperty>
- Enclosing interface:
- CfnApplication.JMXPrometheusExporterProperty
@Stability(Stable)
public static final class CfnApplication.JMXPrometheusExporterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.JMXPrometheusExporterProperty>
A builder for
CfnApplication.JMXPrometheusExporterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnApplication.JMXPrometheusExporterProperty.getHostPort()
Sets the value ofCfnApplication.JMXPrometheusExporterProperty.getJmxurl()
prometheusPort
(String prometheusPort) Sets the value ofCfnApplication.JMXPrometheusExporterProperty.getPrometheusPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostPort
@Stability(Stable) public CfnApplication.JMXPrometheusExporterProperty.Builder hostPort(String hostPort) Sets the value ofCfnApplication.JMXPrometheusExporterProperty.getHostPort()
- Parameters:
hostPort
- The host and port to connect to through remote JMX. Only one ofjmxURL
andhostPort
can be specified.- Returns:
this
-
jmxurl
@Stability(Stable) public CfnApplication.JMXPrometheusExporterProperty.Builder jmxurl(String jmxurl) Sets the value ofCfnApplication.JMXPrometheusExporterProperty.getJmxurl()
- Parameters:
jmxurl
- The complete JMX URL to connect to.- Returns:
this
-
prometheusPort
@Stability(Stable) public CfnApplication.JMXPrometheusExporterProperty.Builder prometheusPort(String prometheusPort) Sets the value ofCfnApplication.JMXPrometheusExporterProperty.getPrometheusPort()
- Parameters:
prometheusPort
- The target port to send Prometheus metrics to. If not specified, the default port9404
is used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.JMXPrometheusExporterProperty>
- Returns:
- a new instance of
CfnApplication.JMXPrometheusExporterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-