All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.iam.User Maven / Gradle / Ivy

There is a newer version: 0.31.1
Show newest version
// 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 User {
  /** If this user is active */
  @JsonProperty("active")
  private Boolean active;

  /**
   * String that represents a concatenation of given and family names. For example `John Smith`.
   * This field cannot be updated through the Workspace SCIM APIs when [identity federation is
   * enabled]. Use Account SCIM APIs to update `displayName`.
   *
   * 

[identity federation is enabled]: * https://docs.databricks.com/administration-guide/users-groups/best-practices.html#enable-identity-federation */ @JsonProperty("displayName") private String displayName; /** All the emails associated with the Databricks user. */ @JsonProperty("emails") private Collection emails; /** * Entitlements assigned to the user. 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; /** External ID is not currently supported. It is reserved for future use. */ @JsonProperty("externalId") private String externalId; /** */ @JsonProperty("groups") private Collection groups; /** * Databricks user ID. This is automatically set by Databricks. Any value provided by the client * will be ignored. */ @JsonProperty("id") private String id; /** */ @JsonProperty("name") private Name name; /** Corresponds to AWS instance profile/arn role. */ @JsonProperty("roles") private Collection roles; /** The schema of the user. */ @JsonProperty("schemas") private Collection schemas; /** Email address of the Databricks user. */ @JsonProperty("userName") private String userName; public User setActive(Boolean active) { this.active = active; return this; } public Boolean getActive() { return active; } public User setDisplayName(String displayName) { this.displayName = displayName; return this; } public String getDisplayName() { return displayName; } public User setEmails(Collection emails) { this.emails = emails; return this; } public Collection getEmails() { return emails; } public User setEntitlements(Collection entitlements) { this.entitlements = entitlements; return this; } public Collection getEntitlements() { return entitlements; } public User setExternalId(String externalId) { this.externalId = externalId; return this; } public String getExternalId() { return externalId; } public User setGroups(Collection groups) { this.groups = groups; return this; } public Collection getGroups() { return groups; } public User setId(String id) { this.id = id; return this; } public String getId() { return id; } public User setName(Name name) { this.name = name; return this; } public Name getName() { return name; } public User setRoles(Collection roles) { this.roles = roles; return this; } public Collection getRoles() { return roles; } public User setSchemas(Collection schemas) { this.schemas = schemas; return this; } public Collection getSchemas() { return schemas; } public User setUserName(String userName) { this.userName = userName; return this; } public String getUserName() { return userName; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; User that = (User) o; return Objects.equals(active, that.active) && Objects.equals(displayName, that.displayName) && Objects.equals(emails, that.emails) && Objects.equals(entitlements, that.entitlements) && Objects.equals(externalId, that.externalId) && Objects.equals(groups, that.groups) && Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(roles, that.roles) && Objects.equals(schemas, that.schemas) && Objects.equals(userName, that.userName); } @Override public int hashCode() { return Objects.hash( active, displayName, emails, entitlements, externalId, groups, id, name, roles, schemas, userName); } @Override public String toString() { return new ToStringer(User.class) .add("active", active) .add("displayName", displayName) .add("emails", emails) .add("entitlements", entitlements) .add("externalId", externalId) .add("groups", groups) .add("id", id) .add("name", name) .add("roles", roles) .add("schemas", schemas) .add("userName", userName) .toString(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy