public static final class DatabaseInstanceProps.Builder
extends java.lang.Object
DatabaseInstanceProps
Constructor and Description |
---|
Builder() |
public DatabaseInstanceProps.Builder cluster(IDatabaseCluster cluster)
DatabaseInstanceProps.getCluster()
cluster
- The DocumentDB database cluster the instance should launch into. This parameter is required.this
public DatabaseInstanceProps.Builder instanceType(InstanceType instanceType)
DatabaseInstanceProps.getInstanceType()
instanceType
- The name of the compute and memory capacity classes. This parameter is required.this
public DatabaseInstanceProps.Builder autoMinorVersionUpgrade(java.lang.Boolean autoMinorVersionUpgrade)
DatabaseInstanceProps.getAutoMinorVersionUpgrade()
autoMinorVersionUpgrade
- Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.this
public DatabaseInstanceProps.Builder availabilityZone(java.lang.String availabilityZone)
DatabaseInstanceProps.getAvailabilityZone()
availabilityZone
- The name of the Availability Zone where the DB instance will be located.this
public DatabaseInstanceProps.Builder dbInstanceName(java.lang.String dbInstanceName)
DatabaseInstanceProps.getDbInstanceName()
dbInstanceName
- A name for the DB instance.
If you specify a name, AWS CloudFormation
converts it to lowercase.this
public DatabaseInstanceProps.Builder preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
DatabaseInstanceProps.getPreferredMaintenanceWindow()
preferredMaintenanceWindow
- The weekly time range (in UTC) during which system maintenance can occur.
Format: ddd:hh24:mi-ddd:hh24:mi
Constraint: Minimum 30-minute windowthis
public DatabaseInstanceProps.Builder removalPolicy(RemovalPolicy removalPolicy)
DatabaseInstanceProps.getRemovalPolicy()
removalPolicy
- The CloudFormation policy to apply when the instance is removed from the stack or replaced during an update.this
public DatabaseInstanceProps build()
DatabaseInstanceProps
java.lang.NullPointerException
- if any required attribute was not provided