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

hydra.ext.com.microsoft.kusto.kql.LetBinding 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 LetBinding implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.LetBinding");
  
  public static final hydra.core.Name FIELD_NAME_NAME = new hydra.core.Name("name");
  
  public static final hydra.core.Name FIELD_NAME_EXPRESSION = new hydra.core.Name("expression");
  
  public final hydra.ext.com.microsoft.kusto.kql.ColumnName name;
  
  public final hydra.ext.com.microsoft.kusto.kql.Expression expression;
  
  public LetBinding (hydra.ext.com.microsoft.kusto.kql.ColumnName name, hydra.ext.com.microsoft.kusto.kql.Expression expression) {
    java.util.Objects.requireNonNull((name));
    java.util.Objects.requireNonNull((expression));
    this.name = name;
    this.expression = expression;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof LetBinding)) {
      return false;
    }
    LetBinding o = (LetBinding) (other);
    return name.equals(o.name) && expression.equals(o.expression);
  }
  
  @Override
  public int hashCode() {
    return 2 * name.hashCode() + 3 * expression.hashCode();
  }
  
  public LetBinding withName(hydra.ext.com.microsoft.kusto.kql.ColumnName name) {
    java.util.Objects.requireNonNull((name));
    return new LetBinding(name, expression);
  }
  
  public LetBinding withExpression(hydra.ext.com.microsoft.kusto.kql.Expression expression) {
    java.util.Objects.requireNonNull((expression));
    return new LetBinding(name, expression);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy