com.databricks.sdk.service.catalog.ValidateStorageCredential Maven / Gradle / Ivy
// 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 ValidateStorageCredential {
/** The AWS IAM role configuration. */
@JsonProperty("aws_iam_role")
private AwsIamRoleRequest awsIamRole;
/** The Azure managed identity configuration. */
@JsonProperty("azure_managed_identity")
private AzureManagedIdentityRequest azureManagedIdentity;
/** The Azure service principal configuration. */
@JsonProperty("azure_service_principal")
private AzureServicePrincipal azureServicePrincipal;
/** The Cloudflare API token configuration. */
@JsonProperty("cloudflare_api_token")
private CloudflareApiToken cloudflareApiToken;
/** The Databricks created GCP service account configuration. */
@JsonProperty("databricks_gcp_service_account")
private DatabricksGcpServiceAccountRequest databricksGcpServiceAccount;
/** The name of an existing external location to validate. */
@JsonProperty("external_location_name")
private String externalLocationName;
/** Whether the storage credential is only usable for read operations. */
@JsonProperty("read_only")
private Boolean readOnly;
/** The name of the storage credential to validate. */
@JsonProperty("storage_credential_name")
private String storageCredentialName;
/** The external location url to validate. */
@JsonProperty("url")
private String url;
public ValidateStorageCredential setAwsIamRole(AwsIamRoleRequest awsIamRole) {
this.awsIamRole = awsIamRole;
return this;
}
public AwsIamRoleRequest getAwsIamRole() {
return awsIamRole;
}
public ValidateStorageCredential setAzureManagedIdentity(
AzureManagedIdentityRequest azureManagedIdentity) {
this.azureManagedIdentity = azureManagedIdentity;
return this;
}
public AzureManagedIdentityRequest getAzureManagedIdentity() {
return azureManagedIdentity;
}
public ValidateStorageCredential setAzureServicePrincipal(
AzureServicePrincipal azureServicePrincipal) {
this.azureServicePrincipal = azureServicePrincipal;
return this;
}
public AzureServicePrincipal getAzureServicePrincipal() {
return azureServicePrincipal;
}
public ValidateStorageCredential setCloudflareApiToken(CloudflareApiToken cloudflareApiToken) {
this.cloudflareApiToken = cloudflareApiToken;
return this;
}
public CloudflareApiToken getCloudflareApiToken() {
return cloudflareApiToken;
}
public ValidateStorageCredential setDatabricksGcpServiceAccount(
DatabricksGcpServiceAccountRequest databricksGcpServiceAccount) {
this.databricksGcpServiceAccount = databricksGcpServiceAccount;
return this;
}
public DatabricksGcpServiceAccountRequest getDatabricksGcpServiceAccount() {
return databricksGcpServiceAccount;
}
public ValidateStorageCredential setExternalLocationName(String externalLocationName) {
this.externalLocationName = externalLocationName;
return this;
}
public String getExternalLocationName() {
return externalLocationName;
}
public ValidateStorageCredential setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
public Boolean getReadOnly() {
return readOnly;
}
public ValidateStorageCredential setStorageCredentialName(String storageCredentialName) {
this.storageCredentialName = storageCredentialName;
return this;
}
public String getStorageCredentialName() {
return storageCredentialName;
}
public ValidateStorageCredential setUrl(String url) {
this.url = url;
return this;
}
public String getUrl() {
return url;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ValidateStorageCredential that = (ValidateStorageCredential) o;
return Objects.equals(awsIamRole, that.awsIamRole)
&& Objects.equals(azureManagedIdentity, that.azureManagedIdentity)
&& Objects.equals(azureServicePrincipal, that.azureServicePrincipal)
&& Objects.equals(cloudflareApiToken, that.cloudflareApiToken)
&& Objects.equals(databricksGcpServiceAccount, that.databricksGcpServiceAccount)
&& Objects.equals(externalLocationName, that.externalLocationName)
&& Objects.equals(readOnly, that.readOnly)
&& Objects.equals(storageCredentialName, that.storageCredentialName)
&& Objects.equals(url, that.url);
}
@Override
public int hashCode() {
return Objects.hash(
awsIamRole,
azureManagedIdentity,
azureServicePrincipal,
cloudflareApiToken,
databricksGcpServiceAccount,
externalLocationName,
readOnly,
storageCredentialName,
url);
}
@Override
public String toString() {
return new ToStringer(ValidateStorageCredential.class)
.add("awsIamRole", awsIamRole)
.add("azureManagedIdentity", azureManagedIdentity)
.add("azureServicePrincipal", azureServicePrincipal)
.add("cloudflareApiToken", cloudflareApiToken)
.add("databricksGcpServiceAccount", databricksGcpServiceAccount)
.add("externalLocationName", externalLocationName)
.add("readOnly", readOnly)
.add("storageCredentialName", storageCredentialName)
.add("url", url)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy