public static final class CfnApplication.JMXPrometheusExporterProperty.Builder
extends java.lang.Object
CfnApplication.JMXPrometheusExporterProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnApplication.JMXPrometheusExporterProperty |
build()
Builds the configured instance.
|
CfnApplication.JMXPrometheusExporterProperty.Builder |
hostPort(java.lang.String hostPort)
Sets the value of
CfnApplication.JMXPrometheusExporterProperty.getHostPort() |
CfnApplication.JMXPrometheusExporterProperty.Builder |
jmxurl(java.lang.String jmxurl)
Sets the value of
CfnApplication.JMXPrometheusExporterProperty.getJmxurl() |
CfnApplication.JMXPrometheusExporterProperty.Builder |
prometheusPort(java.lang.String prometheusPort)
Sets the value of
CfnApplication.JMXPrometheusExporterProperty.getPrometheusPort() |
public CfnApplication.JMXPrometheusExporterProperty.Builder hostPort(java.lang.String hostPort)
CfnApplication.JMXPrometheusExporterProperty.getHostPort()
hostPort
- The host and port to connect to through remote JMX.
Only one of jmxURL
and hostPort
can be specified.this
public CfnApplication.JMXPrometheusExporterProperty.Builder jmxurl(java.lang.String jmxurl)
CfnApplication.JMXPrometheusExporterProperty.getJmxurl()
jmxurl
- The complete JMX URL to connect to.this
public CfnApplication.JMXPrometheusExporterProperty.Builder prometheusPort(java.lang.String prometheusPort)
CfnApplication.JMXPrometheusExporterProperty.getPrometheusPort()
prometheusPort
- The target port to send Prometheus metrics to.
If not specified, the default port 9404
is used.this
public CfnApplication.JMXPrometheusExporterProperty build()
CfnApplication.JMXPrometheusExporterProperty
java.lang.NullPointerException
- if any required attribute was not provided