com.databricks.sdk.service.catalog.UpdatePermissions 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.Collection;
import java.util.Objects;
@Generated
public class UpdatePermissions {
/** Array of permissions change objects. */
@JsonProperty("changes")
private Collection changes;
/** Full name of securable. */
@JsonIgnore private String fullName;
/** Type of securable. */
@JsonIgnore private SecurableType securableType;
public UpdatePermissions setChanges(Collection changes) {
this.changes = changes;
return this;
}
public Collection getChanges() {
return changes;
}
public UpdatePermissions setFullName(String fullName) {
this.fullName = fullName;
return this;
}
public String getFullName() {
return fullName;
}
public UpdatePermissions setSecurableType(SecurableType securableType) {
this.securableType = securableType;
return this;
}
public SecurableType getSecurableType() {
return securableType;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdatePermissions that = (UpdatePermissions) o;
return Objects.equals(changes, that.changes)
&& Objects.equals(fullName, that.fullName)
&& Objects.equals(securableType, that.securableType);
}
@Override
public int hashCode() {
return Objects.hash(changes, fullName, securableType);
}
@Override
public String toString() {
return new ToStringer(UpdatePermissions.class)
.add("changes", changes)
.add("fullName", fullName)
.add("securableType", securableType)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy