hydra.ext.com.microsoft.kusto.kql.SearchCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.com.microsoft.kusto.kql;
import java.io.Serializable;
/**
* Search across all datasets and columns or, if provided, specific datasets and/or columns
*/
public class SearchCommand implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.SearchCommand");
public static final hydra.core.Name FIELD_NAME_DATASETS = new hydra.core.Name("datasets");
public static final hydra.core.Name FIELD_NAME_PATTERN = new hydra.core.Name("pattern");
public final java.util.List datasets;
public final hydra.ext.com.microsoft.kusto.kql.Expression pattern;
public SearchCommand (java.util.List datasets, hydra.ext.com.microsoft.kusto.kql.Expression pattern) {
java.util.Objects.requireNonNull((datasets));
java.util.Objects.requireNonNull((pattern));
this.datasets = datasets;
this.pattern = pattern;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof SearchCommand)) {
return false;
}
SearchCommand o = (SearchCommand) (other);
return datasets.equals(o.datasets) && pattern.equals(o.pattern);
}
@Override
public int hashCode() {
return 2 * datasets.hashCode() + 3 * pattern.hashCode();
}
public SearchCommand withDatasets(java.util.List datasets) {
java.util.Objects.requireNonNull((datasets));
return new SearchCommand(datasets, pattern);
}
public SearchCommand withPattern(hydra.ext.com.microsoft.kusto.kql.Expression pattern) {
java.util.Objects.requireNonNull((pattern));
return new SearchCommand(datasets, pattern);
}
}