/** * <p> * For stacks in the <code>DELETE_FAILED</code> state, a list of resource logical IDs that are associated with the * resources you want to retain. During deletion, AWS CloudFormation deletes the stack but does not delete the * retained resources. * </p> * <p> * Retaining resources is useful when you cannot delete a resource, such as a non-empty S3 bucket, but you want to * delete the stack. * </p> * * @param retainResources * For stacks in the <code>DELETE_FAILED</code> state, a list of resource logical IDs that are associated * with the resources you want to retain. During deletion, AWS CloudFormation deletes the stack but does not * delete the retained resources.</p> * <p> * Retaining resources is useful when you cannot delete a resource, such as a non-empty S3 bucket, but you * want to delete the stack. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteStackRequest withRetainResources(java.util.Collection<String> retainResources) { setRetainResources(retainResources); return this; }
setRetainResources(new com.amazonaws.internal.SdkInternalList<String>(retainResources.length));
/** * <p> * For stacks in the <code>DELETE_FAILED</code> state, a list of resource logical IDs that are associated with the * resources you want to retain. During deletion, AWS CloudFormation deletes the stack but does not delete the * retained resources. * </p> * <p> * Retaining resources is useful when you cannot delete a resource, such as a non-empty S3 bucket, but you want to * delete the stack. * </p> * * @param retainResources * For stacks in the <code>DELETE_FAILED</code> state, a list of resource logical IDs that are associated * with the resources you want to retain. During deletion, AWS CloudFormation deletes the stack but does not * delete the retained resources.</p> * <p> * Retaining resources is useful when you cannot delete a resource, such as a non-empty S3 bucket, but you * want to delete the stack. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteStackRequest withRetainResources(java.util.Collection<String> retainResources) { setRetainResources(retainResources); return this; }
setRetainResources(new com.amazonaws.internal.SdkInternalList<String>(retainResources.length));