hydra.ext.com.microsoft.kusto.kql.UnionCommand 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
The newest version!
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.com.microsoft.kusto.kql;
import java.io.Serializable;
public class UnionCommand implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.UnionCommand");
public static final hydra.core.Name FIELD_NAME_PARAMETERS = new hydra.core.Name("parameters");
public static final hydra.core.Name FIELD_NAME_KIND = new hydra.core.Name("kind");
public static final hydra.core.Name FIELD_NAME_WITH_SOURCE = new hydra.core.Name("withSource");
public static final hydra.core.Name FIELD_NAME_IS_FUZZY = new hydra.core.Name("isFuzzy");
public static final hydra.core.Name FIELD_NAME_TABLES = new hydra.core.Name("tables");
public final java.util.List parameters;
public final hydra.util.Opt kind;
public final hydra.util.Opt withSource;
public final hydra.util.Opt isFuzzy;
public final java.util.List tables;
public UnionCommand (java.util.List parameters, hydra.util.Opt kind, hydra.util.Opt withSource, hydra.util.Opt isFuzzy, java.util.List tables) {
java.util.Objects.requireNonNull((parameters));
java.util.Objects.requireNonNull((kind));
java.util.Objects.requireNonNull((withSource));
java.util.Objects.requireNonNull((isFuzzy));
java.util.Objects.requireNonNull((tables));
this.parameters = parameters;
this.kind = kind;
this.withSource = withSource;
this.isFuzzy = isFuzzy;
this.tables = tables;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof UnionCommand)) {
return false;
}
UnionCommand o = (UnionCommand) (other);
return parameters.equals(o.parameters) && kind.equals(o.kind) && withSource.equals(o.withSource) && isFuzzy.equals(o.isFuzzy) && tables.equals(o.tables);
}
@Override
public int hashCode() {
return 2 * parameters.hashCode() + 3 * kind.hashCode() + 5 * withSource.hashCode() + 7 * isFuzzy.hashCode() + 11 * tables.hashCode();
}
public UnionCommand withParameters(java.util.List parameters) {
java.util.Objects.requireNonNull((parameters));
return new UnionCommand(parameters, kind, withSource, isFuzzy, tables);
}
public UnionCommand withKind(hydra.util.Opt kind) {
java.util.Objects.requireNonNull((kind));
return new UnionCommand(parameters, kind, withSource, isFuzzy, tables);
}
public UnionCommand withWithSource(hydra.util.Opt withSource) {
java.util.Objects.requireNonNull((withSource));
return new UnionCommand(parameters, kind, withSource, isFuzzy, tables);
}
public UnionCommand withIsFuzzy(hydra.util.Opt isFuzzy) {
java.util.Objects.requireNonNull((isFuzzy));
return new UnionCommand(parameters, kind, withSource, isFuzzy, tables);
}
public UnionCommand withTables(java.util.List tables) {
java.util.Objects.requireNonNull((tables));
return new UnionCommand(parameters, kind, withSource, isFuzzy, tables);
}
}