com.databricks.sdk.service.pipelines.PipelineEvent Maven / Gradle / Ivy
// 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 PipelineEvent {
/** Information about an error captured by the event. */
@JsonProperty("error")
private ErrorDetail error;
/** The event type. Should always correspond to the details */
@JsonProperty("event_type")
private String eventType;
/** A time-based, globally unique id. */
@JsonProperty("id")
private String id;
/** The severity level of the event. */
@JsonProperty("level")
private EventLevel level;
/** Maturity level for event_type. */
@JsonProperty("maturity_level")
private MaturityLevel maturityLevel;
/** The display message associated with the event. */
@JsonProperty("message")
private String message;
/** Describes where the event originates from. */
@JsonProperty("origin")
private Origin origin;
/** A sequencing object to identify and order events. */
@JsonProperty("sequence")
private Sequencing sequence;
/** The time of the event. */
@JsonProperty("timestamp")
private String timestamp;
public PipelineEvent setError(ErrorDetail error) {
this.error = error;
return this;
}
public ErrorDetail getError() {
return error;
}
public PipelineEvent setEventType(String eventType) {
this.eventType = eventType;
return this;
}
public String getEventType() {
return eventType;
}
public PipelineEvent setId(String id) {
this.id = id;
return this;
}
public String getId() {
return id;
}
public PipelineEvent setLevel(EventLevel level) {
this.level = level;
return this;
}
public EventLevel getLevel() {
return level;
}
public PipelineEvent setMaturityLevel(MaturityLevel maturityLevel) {
this.maturityLevel = maturityLevel;
return this;
}
public MaturityLevel getMaturityLevel() {
return maturityLevel;
}
public PipelineEvent setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return message;
}
public PipelineEvent setOrigin(Origin origin) {
this.origin = origin;
return this;
}
public Origin getOrigin() {
return origin;
}
public PipelineEvent setSequence(Sequencing sequence) {
this.sequence = sequence;
return this;
}
public Sequencing getSequence() {
return sequence;
}
public PipelineEvent setTimestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
public String getTimestamp() {
return timestamp;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PipelineEvent that = (PipelineEvent) o;
return Objects.equals(error, that.error)
&& Objects.equals(eventType, that.eventType)
&& Objects.equals(id, that.id)
&& Objects.equals(level, that.level)
&& Objects.equals(maturityLevel, that.maturityLevel)
&& Objects.equals(message, that.message)
&& Objects.equals(origin, that.origin)
&& Objects.equals(sequence, that.sequence)
&& Objects.equals(timestamp, that.timestamp);
}
@Override
public int hashCode() {
return Objects.hash(
error, eventType, id, level, maturityLevel, message, origin, sequence, timestamp);
}
@Override
public String toString() {
return new ToStringer(PipelineEvent.class)
.add("error", error)
.add("eventType", eventType)
.add("id", id)
.add("level", level)
.add("maturityLevel", maturityLevel)
.add("message", message)
.add("origin", origin)
.add("sequence", sequence)
.add("timestamp", timestamp)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy