com.databricks.sdk.service.catalog.UpdateConnection Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.catalog;
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.Map;
import java.util.Objects;
@Generated
public class UpdateConnection {
/** Name of the connection. */
@JsonIgnore private String name;
/** New name for the connection. */
@JsonProperty("new_name")
private String newName;
/** A map of key-value properties attached to the securable. */
@JsonProperty("options")
private Map options;
/** Username of current owner of the connection. */
@JsonProperty("owner")
private String owner;
public UpdateConnection setName(String name) {
this.name = name;
return this;
}
public String getName() {
return name;
}
public UpdateConnection setNewName(String newName) {
this.newName = newName;
return this;
}
public String getNewName() {
return newName;
}
public UpdateConnection setOptions(Map options) {
this.options = options;
return this;
}
public Map getOptions() {
return options;
}
public UpdateConnection setOwner(String owner) {
this.owner = owner;
return this;
}
public String getOwner() {
return owner;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateConnection that = (UpdateConnection) o;
return Objects.equals(name, that.name)
&& Objects.equals(newName, that.newName)
&& Objects.equals(options, that.options)
&& Objects.equals(owner, that.owner);
}
@Override
public int hashCode() {
return Objects.hash(name, newName, options, owner);
}
@Override
public String toString() {
return new ToStringer(UpdateConnection.class)
.add("name", name)
.add("newName", newName)
.add("options", options)
.add("owner", owner)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy