public UpdateLifecyclePolicyRequest withExtendDeletion(Boolean extendDeletion) {
        setExtendDeletion(extendDeletion);
        return this;
    }
<p>
<b>[Default policies only]</b> Defines the snapshot or AMI retention behavior for the policy if the source volume
or instance is deleted, or if the policy enters the error, disabled, or deleted state.
</p>
<p>
By default (<b>ExtendDeletion=false</b>):
</p>
<ul>
<li>
<p>
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want
Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify <code>true</code>.
</p>
</li>
<li>
<p>
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots
and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last
one, if the policy enters one of these states, specify <code>true</code>.
</p>
</li>
</ul>
<p>
If you enable extended deletion (<b>ExtendDeletion=true</b>), you override both default behaviors simultaneously.
</p>
<p>
Default: false
</p>

@param extendDeletion
       <b>[Default policies only]</b> Defines the snapshot or AMI retention behavior for the policy if the source
       volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.</p>
       <p>
       By default (<b>ExtendDeletion=false</b>):
       </p>
       <ul>
       <li>
       <p>
       If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
       snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you
       want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify
       <code>true</code>.
       </p>
       </li>
       <li>
       <p>
       If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting
       snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs,
       including the last one, if the policy enters one of these states, specify <code>true</code>.
       </p>
       </li>
       </ul>
       <p>
       If you enable extended deletion (<b>ExtendDeletion=true</b>), you override both default behaviors
       simultaneously.
       </p>
       <p>
       Default: false
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dlm/src/main/java/com/amazonaws/services/dlm/model/UpdateLifecyclePolicyRequest.java