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

com.databricks.sdk.service.compute.InitScriptEventDetails Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.compute;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;

@Generated
public class InitScriptEventDetails {
  /** The cluster scoped init scripts associated with this cluster event */
  @JsonProperty("cluster")
  private Collection cluster;

  /** The global init scripts associated with this cluster event */
  @JsonProperty("global")
  private Collection global;

  /** The private ip address of the node where the init scripts were run. */
  @JsonProperty("reported_for_node")
  private String reportedForNode;

  public InitScriptEventDetails setCluster(Collection cluster) {
    this.cluster = cluster;
    return this;
  }

  public Collection getCluster() {
    return cluster;
  }

  public InitScriptEventDetails setGlobal(Collection global) {
    this.global = global;
    return this;
  }

  public Collection getGlobal() {
    return global;
  }

  public InitScriptEventDetails setReportedForNode(String reportedForNode) {
    this.reportedForNode = reportedForNode;
    return this;
  }

  public String getReportedForNode() {
    return reportedForNode;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    InitScriptEventDetails that = (InitScriptEventDetails) o;
    return Objects.equals(cluster, that.cluster)
        && Objects.equals(global, that.global)
        && Objects.equals(reportedForNode, that.reportedForNode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cluster, global, reportedForNode);
  }

  @Override
  public String toString() {
    return new ToStringer(InitScriptEventDetails.class)
        .add("cluster", cluster)
        .add("global", global)
        .add("reportedForNode", reportedForNode)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy