Class ClusterInstanceBindOptions.Builder
java.lang.Object
software.amazon.awscdk.services.rds.ClusterInstanceBindOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterInstanceBindOptions>
- Enclosing interface:
ClusterInstanceBindOptions
@Stability(Stable)
public static final class ClusterInstanceBindOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterInstanceBindOptions>
A builder for
ClusterInstanceBindOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.monitoringInterval(Duration monitoringInterval) Sets the value ofClusterInstanceBindOptions.getMonitoringInterval()monitoringRole(IRoleRef monitoringRole) Sets the value ofClusterInstanceBindOptions.getMonitoringRole()promotionTier(Number promotionTier) Sets the value ofClusterInstanceBindOptions.getPromotionTier()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofClusterInstanceBindOptions.getRemovalPolicy()subnetGroup(ISubnetGroup subnetGroup) Sets the value ofClusterInstanceBindOptions.getSubnetGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
monitoringInterval
@Stability(Stable) public ClusterInstanceBindOptions.Builder monitoringInterval(Duration monitoringInterval) Sets the value ofClusterInstanceBindOptions.getMonitoringInterval()- Parameters:
monitoringInterval- The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.- Returns:
this
-
monitoringRole
@Stability(Stable) public ClusterInstanceBindOptions.Builder monitoringRole(IRoleRef monitoringRole) Sets the value ofClusterInstanceBindOptions.getMonitoringRole()- Parameters:
monitoringRole- Role that will be used to manage DB instances monitoring.- Returns:
this
-
promotionTier
Sets the value ofClusterInstanceBindOptions.getPromotionTier()- Parameters:
promotionTier- The promotion tier of the cluster instance. This matters more for serverlessV2 instances. If a serverless instance is in tier 0-1 then it will scale with the writer.For provisioned instances this just determines the failover priority. If multiple instances have the same priority then one will be picked at random
- Returns:
this
-
removalPolicy
@Stability(Stable) public ClusterInstanceBindOptions.Builder removalPolicy(RemovalPolicy removalPolicy) Sets the value ofClusterInstanceBindOptions.getRemovalPolicy()- Parameters:
removalPolicy- The removal policy on the cluster.- Returns:
this
-
subnetGroup
Sets the value ofClusterInstanceBindOptions.getSubnetGroup()- Parameters:
subnetGroup- Existing subnet group for the cluster. This is only needed when using the isFromLegacyInstanceProps- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterInstanceBindOptions>- Returns:
- a new instance of
ClusterInstanceBindOptions - Throws:
NullPointerException- if any required attribute was not provided
-