public UpdateCloudFormationCollectionFilter withStackNames(java.util.Collection<String> stackNames) {
        setStackNames(stackNames);
        return this;
    }
<p>
An array of the names of the Amazon Web Services CloudFormation stacks to update. You can specify up to 500
Amazon Web Services CloudFormation stacks.
</p>

@param stackNames
       An array of the names of the Amazon Web Services CloudFormation stacks to update. You can specify up to
       500 Amazon Web Services CloudFormation stacks.
@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/UpdateCloudFormationCollectionFilter.java