public DescribeBackupVaultResult withMaxRetentionDays(Long maxRetentionDays) {
        setMaxRetentionDays(maxRetentionDays);
        return this;
    }
<p>
The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery
points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the
recovery points in the vault (allowing indefinite storage).
</p>
<p>
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to
or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention
period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use
a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
</p>

@param maxRetentionDays
       The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its
       recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention
       period on the recovery points in the vault (allowing indefinite storage).</p>
       <p>
       If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period
       equal to or shorter than the maximum retention period. If the job's retention period is longer than that
       maximum retention period, then the vault fails the backup or copy job, and you should either modify your
       lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault
       Lock are not affected.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/DescribeBackupVaultResult.java