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

com.databricks.sdk.service.jobs.ViewItem 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.jobs;

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 ViewItem {
  /** Content of the view. */
  @JsonProperty("content")
  private String content;

  /**
   * Name of the view item. In the case of code view, it would be the notebook’s name. In the case
   * of dashboard view, it would be the dashboard’s name.
   */
  @JsonProperty("name")
  private String name;

  /** Type of the view item. */
  @JsonProperty("type")
  private ViewType typeValue;

  public ViewItem setContent(String content) {
    this.content = content;
    return this;
  }

  public String getContent() {
    return content;
  }

  public ViewItem setName(String name) {
    this.name = name;
    return this;
  }

  public String getName() {
    return name;
  }

  public ViewItem setType(ViewType typeValue) {
    this.typeValue = typeValue;
    return this;
  }

  public ViewType getType() {
    return typeValue;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    ViewItem that = (ViewItem) o;
    return Objects.equals(content, that.content)
        && Objects.equals(name, that.name)
        && Objects.equals(typeValue, that.typeValue);
  }

  @Override
  public int hashCode() {
    return Objects.hash(content, name, typeValue);
  }

  @Override
  public String toString() {
    return new ToStringer(ViewItem.class)
        .add("content", content)
        .add("name", name)
        .add("typeValue", typeValue)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy