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

com.databricks.sdk.service.pipelines.DataPlaneId 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.pipelines;

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

@Generated
public class DataPlaneId {
  /** The instance name of the data plane emitting an event. */
  @JsonProperty("instance")
  private String instance;

  /** A sequence number, unique and increasing within the data plane instance. */
  @JsonProperty("seq_no")
  private Long seqNo;

  public DataPlaneId setInstance(String instance) {
    this.instance = instance;
    return this;
  }

  public String getInstance() {
    return instance;
  }

  public DataPlaneId setSeqNo(Long seqNo) {
    this.seqNo = seqNo;
    return this;
  }

  public Long getSeqNo() {
    return seqNo;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    DataPlaneId that = (DataPlaneId) o;
    return Objects.equals(instance, that.instance) && Objects.equals(seqNo, that.seqNo);
  }

  @Override
  public int hashCode() {
    return Objects.hash(instance, seqNo);
  }

  @Override
  public String toString() {
    return new ToStringer(DataPlaneId.class)
        .add("instance", instance)
        .add("seqNo", seqNo)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy