public RestoreDBInstanceFromDBSnapshotRequest withDeletionProtection(Boolean deletionProtection) {
        setDeletionProtection(deletionProtection);
        return this;
    }
<p>
Specifies whether to enable deletion protection for the DB instance. The database can't be deleted when deletion
protection is enabled. By default, deletion protection isn't enabled. For more information, see <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB
Instance</a>.
</p>

@param deletionProtection
       Specifies whether to enable deletion protection for the DB instance. The database can't be deleted when
       deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see
       <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB
       Instance</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/RestoreDBInstanceFromDBSnapshotRequest.java