public static final class CfnDBInstanceProps.Builder
extends java.lang.Object
CfnDBInstanceProps
Constructor and Description |
---|
Builder() |
public CfnDBInstanceProps.Builder dbInstanceClass(java.lang.String dbInstanceClass)
CfnDBInstanceProps.getDbInstanceClass()
dbInstanceClass
- Contains the name of the compute and memory capacity class of the DB instance. This parameter is required.
If you update this property, some interruptions may occur.this
public CfnDBInstanceProps.Builder allowMajorVersionUpgrade(java.lang.Boolean allowMajorVersionUpgrade)
CfnDBInstanceProps.getAllowMajorVersionUpgrade()
allowMajorVersionUpgrade
- Indicates that major version upgrades are allowed.
Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.this
public CfnDBInstanceProps.Builder allowMajorVersionUpgrade(IResolvable allowMajorVersionUpgrade)
CfnDBInstanceProps.getAllowMajorVersionUpgrade()
allowMajorVersionUpgrade
- Indicates that major version upgrades are allowed.
Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.this
public CfnDBInstanceProps.Builder autoMinorVersionUpgrade(java.lang.Boolean autoMinorVersionUpgrade)
CfnDBInstanceProps.getAutoMinorVersionUpgrade()
autoMinorVersionUpgrade
- Indicates that minor version patches are applied automatically.
When updating this property, some interruptions may occur.this
public CfnDBInstanceProps.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade)
CfnDBInstanceProps.getAutoMinorVersionUpgrade()
autoMinorVersionUpgrade
- Indicates that minor version patches are applied automatically.
When updating this property, some interruptions may occur.this
public CfnDBInstanceProps.Builder availabilityZone(java.lang.String availabilityZone)
CfnDBInstanceProps.getAvailabilityZone()
availabilityZone
- Specifies the name of the Availability Zone the DB instance is located in.this
public CfnDBInstanceProps.Builder dbClusterIdentifier(java.lang.String dbClusterIdentifier)
CfnDBInstanceProps.getDbClusterIdentifier()
dbClusterIdentifier
- If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.this
public CfnDBInstanceProps.Builder dbInstanceIdentifier(java.lang.String dbInstanceIdentifier)
CfnDBInstanceProps.getDbInstanceIdentifier()
dbInstanceIdentifier
- Contains a user-supplied database identifier.
This identifier is the unique key that identifies a DB instance.this
public CfnDBInstanceProps.Builder dbParameterGroupName(java.lang.String dbParameterGroupName)
CfnDBInstanceProps.getDbParameterGroupName()
dbParameterGroupName
- The name of an existing DB parameter group or a reference to an AWS::Neptune::DBParameterGroup resource created in the template.
If any of the data members of the referenced parameter group are changed during an update, the DB instance might need to be restarted, which causes some interruption. If the parameter group contains static parameters, whether they were changed or not, an update triggers a reboot.this
public CfnDBInstanceProps.Builder dbSnapshotIdentifier(java.lang.String dbSnapshotIdentifier)
CfnDBInstanceProps.getDbSnapshotIdentifier()
dbSnapshotIdentifier
- This parameter is not supported.
AWS::Neptune::DBInstance
does not support restoring from snapshots.
AWS::Neptune::DBCluster
does support restoring from snapshots.
this
public CfnDBInstanceProps.Builder dbSubnetGroupName(java.lang.String dbSubnetGroupName)
CfnDBInstanceProps.getDbSubnetGroupName()
dbSubnetGroupName
- A DB subnet group to associate with the DB instance.
If you update this value, the new subnet group must be a subnet group in a new virtual private cloud (VPC).this
public CfnDBInstanceProps.Builder preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
CfnDBInstanceProps.getPreferredMaintenanceWindow()
preferredMaintenanceWindow
- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).this
public CfnDBInstanceProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnDBInstanceProps.getTags()
tags
- An arbitrary set of tags (key-value pairs) for this DB instance.this
public CfnDBInstanceProps build()
CfnDBInstanceProps
java.lang.NullPointerException
- if any required attribute was not provided