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

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

There is a newer version: 0.38.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 GetEvents {
  /** The ID of the cluster to retrieve events about. */
  @JsonProperty("cluster_id")
  private String clusterId;

  /** The end time in epoch milliseconds. If empty, returns events up to the current time. */
  @JsonProperty("end_time")
  private Long endTime;

  /** An optional set of event types to filter on. If empty, all event types are returned. */
  @JsonProperty("event_types")
  private Collection eventTypes;

  /**
   * The maximum number of events to include in a page of events. Defaults to 50, and maximum
   * allowed value is 500.
   */
  @JsonProperty("limit")
  private Long limit;

  /**
   * The offset in the result set. Defaults to 0 (no offset). When an offset is specified and the
   * results are requested in descending order, the end_time field is required.
   */
  @JsonProperty("offset")
  private Long offset;

  /** The order to list events in; either "ASC" or "DESC". Defaults to "DESC". */
  @JsonProperty("order")
  private GetEventsOrder order;

  /**
   * The start time in epoch milliseconds. If empty, returns events starting from the beginning of
   * time.
   */
  @JsonProperty("start_time")
  private Long startTime;

  public GetEvents setClusterId(String clusterId) {
    this.clusterId = clusterId;
    return this;
  }

  public String getClusterId() {
    return clusterId;
  }

  public GetEvents setEndTime(Long endTime) {
    this.endTime = endTime;
    return this;
  }

  public Long getEndTime() {
    return endTime;
  }

  public GetEvents setEventTypes(Collection eventTypes) {
    this.eventTypes = eventTypes;
    return this;
  }

  public Collection getEventTypes() {
    return eventTypes;
  }

  public GetEvents setLimit(Long limit) {
    this.limit = limit;
    return this;
  }

  public Long getLimit() {
    return limit;
  }

  public GetEvents setOffset(Long offset) {
    this.offset = offset;
    return this;
  }

  public Long getOffset() {
    return offset;
  }

  public GetEvents setOrder(GetEventsOrder order) {
    this.order = order;
    return this;
  }

  public GetEventsOrder getOrder() {
    return order;
  }

  public GetEvents setStartTime(Long startTime) {
    this.startTime = startTime;
    return this;
  }

  public Long getStartTime() {
    return startTime;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    GetEvents that = (GetEvents) o;
    return Objects.equals(clusterId, that.clusterId)
        && Objects.equals(endTime, that.endTime)
        && Objects.equals(eventTypes, that.eventTypes)
        && Objects.equals(limit, that.limit)
        && Objects.equals(offset, that.offset)
        && Objects.equals(order, that.order)
        && Objects.equals(startTime, that.startTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clusterId, endTime, eventTypes, limit, offset, order, startTime);
  }

  @Override
  public String toString() {
    return new ToStringer(GetEvents.class)
        .add("clusterId", clusterId)
        .add("endTime", endTime)
        .add("eventTypes", eventTypes)
        .add("limit", limit)
        .add("offset", offset)
        .add("order", order)
        .add("startTime", startTime)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy