com.databricks.sdk.service.iam.Group Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.iam;
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 Group {
/** String that represents a human-readable group name */
@JsonProperty("displayName")
private String displayName;
/**
* Entitlements assigned to the group. See [assigning entitlements] for a full list of supported
* values.
*
* [assigning entitlements]:
* https://docs.databricks.com/administration-guide/users-groups/index.html#assigning-entitlements
*/
@JsonProperty("entitlements")
private Collection entitlements;
/** */
@JsonProperty("externalId")
private String externalId;
/** */
@JsonProperty("groups")
private Collection groups;
/** Databricks group ID */
@JsonProperty("id")
private String id;
/** */
@JsonProperty("members")
private Collection members;
/** Container for the group identifier. Workspace local versus account. */
@JsonProperty("meta")
private ResourceMeta meta;
/** Corresponds to AWS instance profile/arn role. */
@JsonProperty("roles")
private Collection roles;
/** The schema of the group. */
@JsonProperty("schemas")
private Collection schemas;
public Group setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public String getDisplayName() {
return displayName;
}
public Group setEntitlements(Collection entitlements) {
this.entitlements = entitlements;
return this;
}
public Collection getEntitlements() {
return entitlements;
}
public Group setExternalId(String externalId) {
this.externalId = externalId;
return this;
}
public String getExternalId() {
return externalId;
}
public Group setGroups(Collection groups) {
this.groups = groups;
return this;
}
public Collection getGroups() {
return groups;
}
public Group setId(String id) {
this.id = id;
return this;
}
public String getId() {
return id;
}
public Group setMembers(Collection members) {
this.members = members;
return this;
}
public Collection getMembers() {
return members;
}
public Group setMeta(ResourceMeta meta) {
this.meta = meta;
return this;
}
public ResourceMeta getMeta() {
return meta;
}
public Group setRoles(Collection roles) {
this.roles = roles;
return this;
}
public Collection getRoles() {
return roles;
}
public Group setSchemas(Collection schemas) {
this.schemas = schemas;
return this;
}
public Collection getSchemas() {
return schemas;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Group that = (Group) o;
return Objects.equals(displayName, that.displayName)
&& Objects.equals(entitlements, that.entitlements)
&& Objects.equals(externalId, that.externalId)
&& Objects.equals(groups, that.groups)
&& Objects.equals(id, that.id)
&& Objects.equals(members, that.members)
&& Objects.equals(meta, that.meta)
&& Objects.equals(roles, that.roles)
&& Objects.equals(schemas, that.schemas);
}
@Override
public int hashCode() {
return Objects.hash(
displayName, entitlements, externalId, groups, id, members, meta, roles, schemas);
}
@Override
public String toString() {
return new ToStringer(Group.class)
.add("displayName", displayName)
.add("entitlements", entitlements)
.add("externalId", externalId)
.add("groups", groups)
.add("id", id)
.add("members", members)
.add("meta", meta)
.add("roles", roles)
.add("schemas", schemas)
.toString();
}
}