Class CfnDBInstanceProps.Builder

java.lang.Object
software.amazon.awscdk.services.neptune.CfnDBInstanceProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBInstanceProps>
Enclosing interface:
CfnDBInstanceProps

@Stability(Stable) public static final class CfnDBInstanceProps.Builder extends Object implements software.amazon.jsii.Builder<CfnDBInstanceProps>
A builder for CfnDBInstanceProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • dbInstanceClass

      @Stability(Stable) public CfnDBInstanceProps.Builder dbInstanceClass(String dbInstanceClass)
      Parameters:
      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.
      Returns:
      this
    • allowMajorVersionUpgrade

      @Stability(Stable) public CfnDBInstanceProps.Builder allowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade)
      Parameters:
      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.

      When you change this parameter for an existing DB cluster, CloudFormation will replace your existing DB cluster with a new, empty one that uses the engine version you specified.

      Returns:
      this
    • allowMajorVersionUpgrade

      @Stability(Stable) public CfnDBInstanceProps.Builder allowMajorVersionUpgrade(IResolvable allowMajorVersionUpgrade)
      Parameters:
      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.

      When you change this parameter for an existing DB cluster, CloudFormation will replace your existing DB cluster with a new, empty one that uses the engine version you specified.

      Returns:
      this
    • autoMinorVersionUpgrade

      @Stability(Stable) public CfnDBInstanceProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
      Parameters:
      autoMinorVersionUpgrade - Indicates that minor version patches are applied automatically. When updating this property, some interruptions may occur.
      Returns:
      this
    • autoMinorVersionUpgrade

      @Stability(Stable) public CfnDBInstanceProps.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade)
      Parameters:
      autoMinorVersionUpgrade - Indicates that minor version patches are applied automatically. When updating this property, some interruptions may occur.
      Returns:
      this
    • availabilityZone

      @Stability(Stable) public CfnDBInstanceProps.Builder availabilityZone(String availabilityZone)
      Parameters:
      availabilityZone - Specifies the name of the Availability Zone the DB instance is located in.
      Returns:
      this
    • dbClusterIdentifier

      @Stability(Stable) public CfnDBInstanceProps.Builder dbClusterIdentifier(String dbClusterIdentifier)
      Parameters:
      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.
      Returns:
      this
    • dbInstanceIdentifier

      @Stability(Stable) public CfnDBInstanceProps.Builder dbInstanceIdentifier(String dbInstanceIdentifier)
      Parameters:
      dbInstanceIdentifier - Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.
      Returns:
      this
    • dbParameterGroupName

      @Stability(Stable) public CfnDBInstanceProps.Builder dbParameterGroupName(String dbParameterGroupName)
      Parameters:
      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.
      Returns:
      this
    • dbSnapshotIdentifier

      @Stability(Stable) public CfnDBInstanceProps.Builder dbSnapshotIdentifier(String dbSnapshotIdentifier)
      Parameters:
      dbSnapshotIdentifier - This parameter is not supported. AWS::Neptune::DBInstance does not support restoring from snapshots.

      AWS::Neptune::DBCluster does support restoring from snapshots.

      Returns:
      this
    • dbSubnetGroupName

      @Stability(Stable) public CfnDBInstanceProps.Builder dbSubnetGroupName(String dbSubnetGroupName)
      Parameters:
      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).
      Returns:
      this
    • preferredMaintenanceWindow

      @Stability(Stable) public CfnDBInstanceProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
      Parameters:
      preferredMaintenanceWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDBInstanceProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - An arbitrary set of tags (key-value pairs) for this DB instance.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDBInstanceProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDBInstanceProps>
      Returns:
      a new instance of CfnDBInstanceProps
      Throws:
      NullPointerException - if any required attribute was not provided