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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic 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 of- jmxURLand- hostPortcan 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 port- 9404is used.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnApplication.JMXPrometheusExporterProperty>
- Returns:
- a new instance of CfnApplication.JMXPrometheusExporterProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-