Class CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationinsights.CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationPropsMixin.HANAPrometheusExporterProperty>
- Enclosing interface:
CfnApplicationPropsMixin.HANAPrometheusExporterProperty
@Stability(Stable)
public static final class CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationPropsMixin.HANAPrometheusExporterProperty>
A builder for
CfnApplicationPropsMixin.HANAPrometheusExporterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagreeToInstallHanadbClient(Boolean agreeToInstallHanadbClient) agreeToInstallHanadbClient(IResolvable agreeToInstallHanadbClient) build()Builds the configured instance.Sets the value ofCfnApplicationPropsMixin.HANAPrometheusExporterProperty.getHanaPort()hanaSecretName(String hanaSecretName) Sets the value ofCfnApplicationPropsMixin.HANAPrometheusExporterProperty.getHanasid()prometheusPort(String prometheusPort)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agreeToInstallHanadbClient
@Stability(Stable) public CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder agreeToInstallHanadbClient(Boolean agreeToInstallHanadbClient) Sets the value ofCfnApplicationPropsMixin.HANAPrometheusExporterProperty.getAgreeToInstallHanadbClient()- Parameters:
agreeToInstallHanadbClient- Designates whether you agree to install the HANA DB client.- Returns:
this
-
agreeToInstallHanadbClient
@Stability(Stable) public CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder agreeToInstallHanadbClient(IResolvable agreeToInstallHanadbClient) Sets the value ofCfnApplicationPropsMixin.HANAPrometheusExporterProperty.getAgreeToInstallHanadbClient()- Parameters:
agreeToInstallHanadbClient- Designates whether you agree to install the HANA DB client.- Returns:
this
-
hanaPort
@Stability(Stable) public CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder hanaPort(String hanaPort) Sets the value ofCfnApplicationPropsMixin.HANAPrometheusExporterProperty.getHanaPort()- Parameters:
hanaPort- The HANA database port by which the exporter will query HANA metrics.- Returns:
this
-
hanaSecretName
@Stability(Stable) public CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder hanaSecretName(String hanaSecretName) - Parameters:
hanaSecretName- The AWS Secrets Manager secret that stores HANA monitoring user credentials. The HANA Prometheus exporter uses these credentials to connect to the database and query HANA metrics.- Returns:
this
-
hanasid
@Stability(Stable) public CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder hanasid(String hanasid) Sets the value ofCfnApplicationPropsMixin.HANAPrometheusExporterProperty.getHanasid()- Parameters:
hanasid- The three-character SAP system ID (SID) of the SAP HANA system.- Returns:
this
-
prometheusPort
@Stability(Stable) public CfnApplicationPropsMixin.HANAPrometheusExporterProperty.Builder prometheusPort(String prometheusPort) - 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<CfnApplicationPropsMixin.HANAPrometheusExporterProperty>- Returns:
- a new instance of
CfnApplicationPropsMixin.HANAPrometheusExporterProperty - Throws:
NullPointerException- if any required attribute was not provided
-