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

com.databricks.sdk.service.provisioning.Credential 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.provisioning;

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 Credential {
  /** The Databricks account ID that hosts the credential. */
  @JsonProperty("account_id")
  private String accountId;

  /** */
  @JsonProperty("aws_credentials")
  private AwsCredentials awsCredentials;

  /** Time in epoch milliseconds when the credential was created. */
  @JsonProperty("creation_time")
  private Long creationTime;

  /** Databricks credential configuration ID. */
  @JsonProperty("credentials_id")
  private String credentialsId;

  /** The human-readable name of the credential configuration object. */
  @JsonProperty("credentials_name")
  private String credentialsName;

  public Credential setAccountId(String accountId) {
    this.accountId = accountId;
    return this;
  }

  public String getAccountId() {
    return accountId;
  }

  public Credential setAwsCredentials(AwsCredentials awsCredentials) {
    this.awsCredentials = awsCredentials;
    return this;
  }

  public AwsCredentials getAwsCredentials() {
    return awsCredentials;
  }

  public Credential setCreationTime(Long creationTime) {
    this.creationTime = creationTime;
    return this;
  }

  public Long getCreationTime() {
    return creationTime;
  }

  public Credential setCredentialsId(String credentialsId) {
    this.credentialsId = credentialsId;
    return this;
  }

  public String getCredentialsId() {
    return credentialsId;
  }

  public Credential setCredentialsName(String credentialsName) {
    this.credentialsName = credentialsName;
    return this;
  }

  public String getCredentialsName() {
    return credentialsName;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Credential that = (Credential) o;
    return Objects.equals(accountId, that.accountId)
        && Objects.equals(awsCredentials, that.awsCredentials)
        && Objects.equals(creationTime, that.creationTime)
        && Objects.equals(credentialsId, that.credentialsId)
        && Objects.equals(credentialsName, that.credentialsName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountId, awsCredentials, creationTime, credentialsId, credentialsName);
  }

  @Override
  public String toString() {
    return new ToStringer(Credential.class)
        .add("accountId", accountId)
        .add("awsCredentials", awsCredentials)
        .add("creationTime", creationTime)
        .add("credentialsId", credentialsId)
        .add("credentialsName", credentialsName)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy