public ModifySnapshotCopyRetentionPeriodRequest withRetentionPeriod(Integer retentionPeriod) {
        setRetentionPeriod(retentionPeriod);
        return this;
    }
<p>
The number of days to retain automated snapshots in the destination Amazon Web Services Region after they are
copied from the source Amazon Web Services Region.
</p>
<p>
By default, this only changes the retention period of copied automated snapshots.
</p>
<p>
If you decrease the retention period for automated snapshots that are copied to a destination Amazon Web Services
Region, Amazon Redshift deletes any existing automated snapshots that were copied to the destination Amazon Web
Services Region and that fall outside of the new retention period.
</p>
<p>
Constraints: Must be at least 1 and no more than 35 for automated snapshots.
</p>
<p>
If you specify the <code>manual</code> option, only newly copied manual snapshots will have the new retention
period.
</p>
<p>
If you specify the value of -1 newly copied manual snapshots are retained indefinitely.
</p>
<p>
Constraints: The number of days must be either -1 or an integer between 1 and 3,653 for manual snapshots.
</p>

@param retentionPeriod
       The number of days to retain automated snapshots in the destination Amazon Web Services Region after they
       are copied from the source Amazon Web Services Region.</p>
       <p>
       By default, this only changes the retention period of copied automated snapshots.
       </p>
       <p>
       If you decrease the retention period for automated snapshots that are copied to a destination Amazon Web
       Services Region, Amazon Redshift deletes any existing automated snapshots that were copied to the
       destination Amazon Web Services Region and that fall outside of the new retention period.
       </p>
       <p>
       Constraints: Must be at least 1 and no more than 35 for automated snapshots.
       </p>
       <p>
       If you specify the <code>manual</code> option, only newly copied manual snapshots will have the new
       retention period.
       </p>
       <p>
       If you specify the value of -1 newly copied manual snapshots are retained indefinitely.
       </p>
       <p>
       Constraints: The number of days must be either -1 or an integer between 1 and 3,653 for manual snapshots.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/ModifySnapshotCopyRetentionPeriodRequest.java