public BackupRetentionPolicy withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of backup retention policy. For the <code>DAYS</code> type, the value is the number of days to retain
backups.
</p>

@param type
       The type of backup retention policy. For the <code>DAYS</code> type, the value is the number of days to
       retain backups.
@return Returns a reference to this object so that method calls can be chained together.
@see BackupRetentionType
aws-java-sdk-cloudhsmv2/src/main/java/com/amazonaws/services/cloudhsmv2/model/BackupRetentionPolicy.java