com.databricks.sdk.service.catalog.PermissionsChange 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.JsonProperty;
import java.util.Collection;
import java.util.Objects;
@Generated
public class PermissionsChange {
/** The set of privileges to add. */
@JsonProperty("add")
private Collection add;
/** The principal whose privileges we are changing. */
@JsonProperty("principal")
private String principal;
/** The set of privileges to remove. */
@JsonProperty("remove")
private Collection remove;
public PermissionsChange setAdd(Collection add) {
this.add = add;
return this;
}
public Collection getAdd() {
return add;
}
public PermissionsChange setPrincipal(String principal) {
this.principal = principal;
return this;
}
public String getPrincipal() {
return principal;
}
public PermissionsChange setRemove(Collection remove) {
this.remove = remove;
return this;
}
public Collection getRemove() {
return remove;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PermissionsChange that = (PermissionsChange) o;
return Objects.equals(add, that.add)
&& Objects.equals(principal, that.principal)
&& Objects.equals(remove, that.remove);
}
@Override
public int hashCode() {
return Objects.hash(add, principal, remove);
}
@Override
public String toString() {
return new ToStringer(PermissionsChange.class)
.add("add", add)
.add("principal", principal)
.add("remove", remove)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy