com.databricks.sdk.service.sharing.PrivilegeAssignment Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.sharing;
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 PrivilegeAssignment {
/** The principal (user email address or group name). */
@JsonProperty("principal")
private String principal;
/** The privileges assigned to the principal. */
@JsonProperty("privileges")
private Collection privileges;
public PrivilegeAssignment setPrincipal(String principal) {
this.principal = principal;
return this;
}
public String getPrincipal() {
return principal;
}
public PrivilegeAssignment setPrivileges(Collection privileges) {
this.privileges = privileges;
return this;
}
public Collection getPrivileges() {
return privileges;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PrivilegeAssignment that = (PrivilegeAssignment) o;
return Objects.equals(principal, that.principal) && Objects.equals(privileges, that.privileges);
}
@Override
public int hashCode() {
return Objects.hash(principal, privileges);
}
@Override
public String toString() {
return new ToStringer(PrivilegeAssignment.class)
.add("principal", principal)
.add("privileges", privileges)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy