public static final class DatabaseInstanceProps.Builder
extends java.lang.Object
DatabaseInstanceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DatabaseInstanceProps.Builder |
availabilityZone(java.lang.String availabilityZone)
Sets the value of
DatabaseInstanceProps.getAvailabilityZone() |
DatabaseInstanceProps |
build()
Builds the configured instance.
|
DatabaseInstanceProps.Builder |
cluster(IDatabaseCluster cluster)
Sets the value of
DatabaseInstanceProps.getCluster() |
DatabaseInstanceProps.Builder |
dbInstanceName(java.lang.String dbInstanceName)
Sets the value of
DatabaseInstanceProps.getDbInstanceName() |
DatabaseInstanceProps.Builder |
instanceType(InstanceType instanceType)
Sets the value of
DatabaseInstanceProps.getInstanceType() |
DatabaseInstanceProps.Builder |
parameterGroup(IParameterGroup parameterGroup)
Sets the value of
DatabaseInstanceProps.getParameterGroup() |
DatabaseInstanceProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
DatabaseInstanceProps.getRemovalPolicy() |
public DatabaseInstanceProps.Builder cluster(IDatabaseCluster cluster)
DatabaseInstanceProps.getCluster()
cluster
- The Neptune database cluster the instance should launch into. This parameter is required.this
public DatabaseInstanceProps.Builder instanceType(InstanceType instanceType)
DatabaseInstanceProps.getInstanceType()
instanceType
- What type of instance to start for the replicas. This parameter is required.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 parameterGroup(IParameterGroup parameterGroup)
DatabaseInstanceProps.getParameterGroup()
parameterGroup
- The DB parameter group to associate with the instance.this
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