public DBSnapshot withEncrypted(Boolean encrypted) {
        setEncrypted(encrypted);
        return this;
    }
<p>
Indicates whether the DB snapshot is encrypted.
</p>

@param encrypted
       Indicates whether the DB snapshot is encrypted.
@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/DBSnapshot.java