All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hydra.ext.com.microsoft.kusto.kql.PrintCommand Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show 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 PrintCommand implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.PrintCommand");
  
  public static final hydra.core.Name FIELD_NAME_COLUMN = new hydra.core.Name("column");
  
  public static final hydra.core.Name FIELD_NAME_EXPRESSION = new hydra.core.Name("expression");
  
  public final hydra.util.Opt column;
  
  public final hydra.ext.com.microsoft.kusto.kql.Expression expression;
  
  public PrintCommand (hydra.util.Opt column, hydra.ext.com.microsoft.kusto.kql.Expression expression) {
    java.util.Objects.requireNonNull((column));
    java.util.Objects.requireNonNull((expression));
    this.column = column;
    this.expression = expression;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof PrintCommand)) {
      return false;
    }
    PrintCommand o = (PrintCommand) (other);
    return column.equals(o.column) && expression.equals(o.expression);
  }
  
  @Override
  public int hashCode() {
    return 2 * column.hashCode() + 3 * expression.hashCode();
  }
  
  public PrintCommand withColumn(hydra.util.Opt column) {
    java.util.Objects.requireNonNull((column));
    return new PrintCommand(column, expression);
  }
  
  public PrintCommand withExpression(hydra.ext.com.microsoft.kusto.kql.Expression expression) {
    java.util.Objects.requireNonNull((expression));
    return new PrintCommand(column, expression);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy