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

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

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

  /** UUID relating to the service principal */
  @JsonProperty("applicationId")
  private String applicationId;

  /** String that represents a concatenation of given and family names. */
  @JsonProperty("displayName")
  private String displayName;

  /**
   * Entitlements assigned to the service principal. 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 service principal ID. */ @JsonProperty("id") private String id; /** Corresponds to AWS instance profile/arn role. */ @JsonProperty("roles") private Collection roles; /** The schema of the List response. */ @JsonProperty("schemas") private Collection schemas; public ServicePrincipal setActive(Boolean active) { this.active = active; return this; } public Boolean getActive() { return active; } public ServicePrincipal setApplicationId(String applicationId) { this.applicationId = applicationId; return this; } public String getApplicationId() { return applicationId; } public ServicePrincipal setDisplayName(String displayName) { this.displayName = displayName; return this; } public String getDisplayName() { return displayName; } public ServicePrincipal setEntitlements(Collection entitlements) { this.entitlements = entitlements; return this; } public Collection getEntitlements() { return entitlements; } public ServicePrincipal setExternalId(String externalId) { this.externalId = externalId; return this; } public String getExternalId() { return externalId; } public ServicePrincipal setGroups(Collection groups) { this.groups = groups; return this; } public Collection getGroups() { return groups; } public ServicePrincipal setId(String id) { this.id = id; return this; } public String getId() { return id; } public ServicePrincipal setRoles(Collection roles) { this.roles = roles; return this; } public Collection getRoles() { return roles; } public ServicePrincipal 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; ServicePrincipal that = (ServicePrincipal) o; return Objects.equals(active, that.active) && Objects.equals(applicationId, that.applicationId) && 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(roles, that.roles) && Objects.equals(schemas, that.schemas); } @Override public int hashCode() { return Objects.hash( active, applicationId, displayName, entitlements, externalId, groups, id, roles, schemas); } @Override public String toString() { return new ToStringer(ServicePrincipal.class) .add("active", active) .add("applicationId", applicationId) .add("displayName", displayName) .add("entitlements", entitlements) .add("externalId", externalId) .add("groups", groups) .add("id", id) .add("roles", roles) .add("schemas", schemas) .toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy