public CloudFormationCollectionFilter withStackNames(java.util.Collection<String> stackNames) {
        setStackNames(stackNames);
        return this;
    }
<p>
An array of CloudFormation stack names.
</p>

@param stackNames
       An array of CloudFormation stack names.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/CloudFormationCollectionFilter.java