public void setStackNames(java.util.Collection<String> stackNames) {
        if (stackNames == null) {
            this.stackNames = null;
            return;
        }

        this.stackNames = new java.util.ArrayList<String>(stackNames);
    }
<p>
An array of CloudFormation stack names.
</p>

@param stackNames
       An array of CloudFormation stack names.
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/CloudFormationCollectionFilter.java