Class ProxyTargetConfig.Builder
java.lang.Object
software.amazon.awscdk.services.rds.ProxyTargetConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProxyTargetConfig>
- Enclosing interface:
ProxyTargetConfig
@Stability(Stable)
public static final class ProxyTargetConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ProxyTargetConfig>
A builder for
ProxyTargetConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dbClusters(List<? extends IDatabaseCluster> dbClusters) Sets the value ofProxyTargetConfig.getDbClusters()dbInstances(List<? extends IDatabaseInstance> dbInstances) Sets the value ofProxyTargetConfig.getDbInstances()engineFamily(String engineFamily) Sets the value ofProxyTargetConfig.getEngineFamily()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engineFamily
Sets the value ofProxyTargetConfig.getEngineFamily()- Parameters:
engineFamily- The engine family of the database instance or cluster this proxy connects with. This parameter is required.- Returns:
this
-
dbClusters
@Stability(Stable) public ProxyTargetConfig.Builder dbClusters(List<? extends IDatabaseCluster> dbClusters) Sets the value ofProxyTargetConfig.getDbClusters()- Parameters:
dbClusters- The database clusters to which this proxy connects. Either this ordbInstanceswill be set and the otherundefined.- Returns:
this
-
dbInstances
@Stability(Stable) public ProxyTargetConfig.Builder dbInstances(List<? extends IDatabaseInstance> dbInstances) Sets the value ofProxyTargetConfig.getDbInstances()- Parameters:
dbInstances- The database instances to which this proxy connects. Either this ordbClusterswill be set and the otherundefined.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ProxyTargetConfig>- Returns:
- a new instance of
ProxyTargetConfig - Throws:
NullPointerException- if any required attribute was not provided
-