Class CfnApplication.SQLServerPrometheusExporterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.SQLServerPrometheusExporterProperty>
- Enclosing interface:
CfnApplication.SQLServerPrometheusExporterProperty
@Stability(Stable)
public static final class CfnApplication.SQLServerPrometheusExporterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.SQLServerPrometheusExporterProperty>
A builder for
CfnApplication.SQLServerPrometheusExporterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.prometheusPort
(String prometheusPort) Sets the value ofCfnApplication.SQLServerPrometheusExporterProperty.getPrometheusPort()
sqlSecretName
(String sqlSecretName) Sets the value ofCfnApplication.SQLServerPrometheusExporterProperty.getSqlSecretName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prometheusPort
@Stability(Stable) public CfnApplication.SQLServerPrometheusExporterProperty.Builder prometheusPort(String prometheusPort) Sets the value ofCfnApplication.SQLServerPrometheusExporterProperty.getPrometheusPort()
- Parameters:
prometheusPort
- Prometheus exporter port. This parameter is required.- Returns:
this
-
sqlSecretName
@Stability(Stable) public CfnApplication.SQLServerPrometheusExporterProperty.Builder sqlSecretName(String sqlSecretName) Sets the value ofCfnApplication.SQLServerPrometheusExporterProperty.getSqlSecretName()
- Parameters:
sqlSecretName
- Secret name which managers SQL exporter connection. This parameter is required. e.g. {"data_source_name": "sqlserver://: @localhost:1433"} - Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.SQLServerPrometheusExporterProperty>
- Returns:
- a new instance of
CfnApplication.SQLServerPrometheusExporterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-