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

com.databricks.sdk.service.catalog.AzureServicePrincipal Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
// 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.JsonProperty;
import java.util.Objects;

@Generated
public class AzureServicePrincipal {
  /** The application ID of the application registration within the referenced AAD tenant. */
  @JsonProperty("application_id")
  private String applicationId;

  /** The client secret generated for the above app ID in AAD. */
  @JsonProperty("client_secret")
  private String clientSecret;

  /**
   * The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application.
   */
  @JsonProperty("directory_id")
  private String directoryId;

  public AzureServicePrincipal setApplicationId(String applicationId) {
    this.applicationId = applicationId;
    return this;
  }

  public String getApplicationId() {
    return applicationId;
  }

  public AzureServicePrincipal setClientSecret(String clientSecret) {
    this.clientSecret = clientSecret;
    return this;
  }

  public String getClientSecret() {
    return clientSecret;
  }

  public AzureServicePrincipal setDirectoryId(String directoryId) {
    this.directoryId = directoryId;
    return this;
  }

  public String getDirectoryId() {
    return directoryId;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    AzureServicePrincipal that = (AzureServicePrincipal) o;
    return Objects.equals(applicationId, that.applicationId)
        && Objects.equals(clientSecret, that.clientSecret)
        && Objects.equals(directoryId, that.directoryId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(applicationId, clientSecret, directoryId);
  }

  @Override
  public String toString() {
    return new ToStringer(AzureServicePrincipal.class)
        .add("applicationId", applicationId)
        .add("clientSecret", clientSecret)
        .add("directoryId", directoryId)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy