public void setRetainStacks(Boolean retainStacks) {
        this.retainStacks = retainStacks;
    }
<p>
Removes the stack instances from the specified stack set, but doesn't delete the stacks. You can't reassociate a
retained stack or add an existing, saved stack to a new stack set.
</p>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options"
>Stack set operation options</a>.
</p>

@param retainStacks
       Removes the stack instances from the specified stack set, but doesn't delete the stacks. You can't
       reassociate a retained stack or add an existing, saved stack to a new stack set.</p>
       <p>
       For more information, see <a href=
       "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options"
       >Stack set operation options</a>.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/DeleteStackInstancesRequest.java