public CreateDBInstanceRequest withDeletionProtection(Boolean deletionProtection) {
        setDeletionProtection(deletionProtection);
        return this;
    }
<p>
A value that indicates whether the DB instance has deletion protection enabled. The database can't be deleted
when deletion protection is enabled. By default, deletion protection is disabled. See <a
href="https://docs.aws.amazon.com/neptune/latest/userguide/manage-console-instances-delete.html">Deleting a DB
Instance</a>.
</p>
<p>
DB instances in a DB cluster can be deleted even when deletion protection is enabled in their parent DB cluster.
</p>

@param deletionProtection
       A value that indicates whether the DB instance has deletion protection enabled. The database can't be
       deleted when deletion protection is enabled. By default, deletion protection is disabled. See <a
       href="https://docs.aws.amazon.com/neptune/latest/userguide/manage-console-instances-delete.html">Deleting
       a DB Instance</a>.</p>
       <p>
       DB instances in a DB cluster can be deleted even when deletion protection is enabled in their parent DB
       cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-neptune/src/main/java/com/amazonaws/services/neptune/model/CreateDBInstanceRequest.java