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