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

com.databricks.sdk.service.settings.UpdateNotificationDestinationRequest 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.settings;

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

@Generated
public class UpdateNotificationDestinationRequest {
  /**
   * The configuration for the notification destination. Must wrap EXACTLY one of the nested
   * configs.
   */
  @JsonProperty("config")
  private Config config;

  /** The display name for the notification destination. */
  @JsonProperty("display_name")
  private String displayName;

  /** */
  @JsonIgnore private String id;

  public UpdateNotificationDestinationRequest setConfig(Config config) {
    this.config = config;
    return this;
  }

  public Config getConfig() {
    return config;
  }

  public UpdateNotificationDestinationRequest setDisplayName(String displayName) {
    this.displayName = displayName;
    return this;
  }

  public String getDisplayName() {
    return displayName;
  }

  public UpdateNotificationDestinationRequest setId(String id) {
    this.id = id;
    return this;
  }

  public String getId() {
    return id;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    UpdateNotificationDestinationRequest that = (UpdateNotificationDestinationRequest) o;
    return Objects.equals(config, that.config)
        && Objects.equals(displayName, that.displayName)
        && Objects.equals(id, that.id);
  }

  @Override
  public int hashCode() {
    return Objects.hash(config, displayName, id);
  }

  @Override
  public String toString() {
    return new ToStringer(UpdateNotificationDestinationRequest.class)
        .add("config", config)
        .add("displayName", displayName)
        .add("id", id)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy