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

com.databricks.sdk.service.workspace.CreateScope 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.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 CreateScope {
  /** The metadata for the secret scope if the type is `AZURE_KEYVAULT` */
  @JsonProperty("backend_azure_keyvault")
  private AzureKeyVaultSecretScopeMetadata backendAzureKeyvault;

  /** The principal that is initially granted `MANAGE` permission to the created scope. */
  @JsonProperty("initial_manage_principal")
  private String initialManagePrincipal;

  /** Scope name requested by the user. Scope names are unique. */
  @JsonProperty("scope")
  private String scope;

  /**
   * The backend type the scope will be created with. If not specified, will default to `DATABRICKS`
   */
  @JsonProperty("scope_backend_type")
  private ScopeBackendType scopeBackendType;

  public CreateScope setBackendAzureKeyvault(
      AzureKeyVaultSecretScopeMetadata backendAzureKeyvault) {
    this.backendAzureKeyvault = backendAzureKeyvault;
    return this;
  }

  public AzureKeyVaultSecretScopeMetadata getBackendAzureKeyvault() {
    return backendAzureKeyvault;
  }

  public CreateScope setInitialManagePrincipal(String initialManagePrincipal) {
    this.initialManagePrincipal = initialManagePrincipal;
    return this;
  }

  public String getInitialManagePrincipal() {
    return initialManagePrincipal;
  }

  public CreateScope setScope(String scope) {
    this.scope = scope;
    return this;
  }

  public String getScope() {
    return scope;
  }

  public CreateScope setScopeBackendType(ScopeBackendType scopeBackendType) {
    this.scopeBackendType = scopeBackendType;
    return this;
  }

  public ScopeBackendType getScopeBackendType() {
    return scopeBackendType;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    CreateScope that = (CreateScope) o;
    return Objects.equals(backendAzureKeyvault, that.backendAzureKeyvault)
        && Objects.equals(initialManagePrincipal, that.initialManagePrincipal)
        && Objects.equals(scope, that.scope)
        && Objects.equals(scopeBackendType, that.scopeBackendType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(backendAzureKeyvault, initialManagePrincipal, scope, scopeBackendType);
  }

  @Override
  public String toString() {
    return new ToStringer(CreateScope.class)
        .add("backendAzureKeyvault", backendAzureKeyvault)
        .add("initialManagePrincipal", initialManagePrincipal)
        .add("scope", scope)
        .add("scopeBackendType", scopeBackendType)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy