com.databricks.sdk.service.workspace.CredentialInfo Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.workspace;
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 CredentialInfo {
/** ID of the credential object in the workspace. */
@JsonProperty("credential_id")
private Long credentialId;
/**
* Git provider. This field is case-insensitive. The available Git providers are gitHub,
* gitHubOAuth, bitbucketCloud, gitLab, azureDevOpsServices, gitHubEnterprise, bitbucketServer,
* gitLabEnterpriseEdition and awsCodeCommit.
*/
@JsonProperty("git_provider")
private String gitProvider;
/**
* The username or email provided with your Git provider account, depending on which provider you
* are using. For GitHub, GitHub Enterprise Server, or Azure DevOps Services, either email or
* username may be used. For GitLab, GitLab Enterprise Edition, email must be used. For AWS
* CodeCommit, BitBucket or BitBucket Server, username must be used. For all other providers
* please see your provider's Personal Access Token authentication documentation to see what is
* supported.
*/
@JsonProperty("git_username")
private String gitUsername;
public CredentialInfo setCredentialId(Long credentialId) {
this.credentialId = credentialId;
return this;
}
public Long getCredentialId() {
return credentialId;
}
public CredentialInfo setGitProvider(String gitProvider) {
this.gitProvider = gitProvider;
return this;
}
public String getGitProvider() {
return gitProvider;
}
public CredentialInfo setGitUsername(String gitUsername) {
this.gitUsername = gitUsername;
return this;
}
public String getGitUsername() {
return gitUsername;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CredentialInfo that = (CredentialInfo) o;
return Objects.equals(credentialId, that.credentialId)
&& Objects.equals(gitProvider, that.gitProvider)
&& Objects.equals(gitUsername, that.gitUsername);
}
@Override
public int hashCode() {
return Objects.hash(credentialId, gitProvider, gitUsername);
}
@Override
public String toString() {
return new ToStringer(CredentialInfo.class)
.add("credentialId", credentialId)
.add("gitProvider", gitProvider)
.add("gitUsername", gitUsername)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy