Class DbtTest.DbtTestBuilder<C extends DbtTest,B extends DbtTest.DbtTestBuilder<C,B>>

Enclosing class:
DbtTest

public abstract static class DbtTest.DbtTestBuilder<C extends DbtTest,B extends DbtTest.DbtTestBuilder<C,B>> extends Asset.AssetBuilder<C,B>
  • Constructor Details

    • DbtTestBuilder

      public DbtTestBuilder()
  • Method Details

    • $fillValuesFrom

      protected B $fillValuesFrom(C instance)
      Overrides:
      $fillValuesFrom in class Asset.AssetBuilder<C extends DbtTest,B extends DbtTest.DbtTestBuilder<C,B>>
    • typeName

      public B typeName(String typeName)
      Fixed typeName for DbtTests.
      Overrides:
      typeName in class Reference.ReferenceBuilder<C extends DbtTest,B extends DbtTest.DbtTestBuilder<C,B>>
      Returns:
      this.
    • applicationContainer

      public B applicationContainer(IApplicationContainer applicationContainer)
      ApplicationContainer asset containing this Catalog asset.
      Returns:
      this.
    • assetApplicationQualifiedName

      public B assetApplicationQualifiedName(String assetApplicationQualifiedName)
      Qualified name of the Application Container that contains this asset.
      Returns:
      this.
    • dbtAccountName

      public B dbtAccountName(String dbtAccountName)
      TBC
      Returns:
      this.
    • dbtAlias

      public B dbtAlias(String dbtAlias)
      TBC
      Returns:
      this.
    • dbtConnectionContext

      public B dbtConnectionContext(String dbtConnectionContext)
      TBC
      Returns:
      this.
    • dbtEnvironmentDbtVersion

      public B dbtEnvironmentDbtVersion(String dbtEnvironmentDbtVersion)
      TBC
      Returns:
      this.
    • dbtEnvironmentName

      public B dbtEnvironmentName(String dbtEnvironmentName)
      TBC
      Returns:
      this.
    • dbtJobLastRun

      public B dbtJobLastRun(Long dbtJobLastRun)
      TBC
      Returns:
      this.
    • dbtJobName

      public B dbtJobName(String dbtJobName)
      TBC
      Returns:
      this.
    • dbtJobNextRun

      public B dbtJobNextRun(Long dbtJobNextRun)
      TBC
      Returns:
      this.
    • dbtJobNextRunHumanized

      public B dbtJobNextRunHumanized(String dbtJobNextRunHumanized)
      TBC
      Returns:
      this.
    • dbtJobRun

      public B dbtJobRun(DbtJobRun dbtJobRun)
    • dbtJobRuns

      public B dbtJobRuns(Collection<? extends DbtJobRun> dbtJobRuns)
    • clearDbtJobRuns

      public B clearDbtJobRuns()
    • dbtJobSchedule

      public B dbtJobSchedule(String dbtJobSchedule)
      TBC
      Returns:
      this.
    • dbtJobScheduleCronHumanized

      public B dbtJobScheduleCronHumanized(String dbtJobScheduleCronHumanized)
      TBC
      Returns:
      this.
    • dbtJobStatus

      public B dbtJobStatus(String dbtJobStatus)
      TBC
      Returns:
      this.
    • dbtMeta

      public B dbtMeta(String dbtMeta)
      TBC
      Returns:
      this.
    • dbtModelColumn

      public B dbtModelColumn(IDbtModelColumn dbtModelColumn)
    • dbtModelColumns

      public B dbtModelColumns(Collection<? extends IDbtModelColumn> dbtModelColumns)
    • clearDbtModelColumns

      public B clearDbtModelColumns()
    • dbtModel

      public B dbtModel(IDbtModel dbtModel)
    • dbtModels

      public B dbtModels(Collection<? extends IDbtModel> dbtModels)
    • clearDbtModels

      public B clearDbtModels()
    • dbtPackageName

      public B dbtPackageName(String dbtPackageName)
      TBC
      Returns:
      this.
    • dbtProjectName

      public B dbtProjectName(String dbtProjectName)
      TBC
      Returns:
      this.
    • dbtSemanticLayerProxyUrl

      public B dbtSemanticLayerProxyUrl(String dbtSemanticLayerProxyUrl)
      TBC
      Returns:
      this.
    • dbtSource

      public B dbtSource(IDbtSource dbtSource)
    • dbtSources

      public B dbtSources(Collection<? extends IDbtSource> dbtSources)
    • clearDbtSources

      public B clearDbtSources()
    • dbtTag

      public B dbtTag(String dbtTag)
    • dbtTags

      public B dbtTags(Collection<? extends String> dbtTags)
    • clearDbtTags

      public B clearDbtTags()
    • dbtTestCompiledCode

      public B dbtTestCompiledCode(String dbtTestCompiledCode)
      Compiled code of the test (when the test is defined using Python).
      Returns:
      this.
    • dbtTestCompiledSQL

      public B dbtTestCompiledSQL(String dbtTestCompiledSQL)
      Compiled SQL of the test.
      Returns:
      this.
    • dbtTestError

      public B dbtTestError(String dbtTestError)
      Error message in the case of state being "error".
      Returns:
      this.
    • dbtTestLanguage

      public B dbtTestLanguage(String dbtTestLanguage)
      Language in which the test is written, for example: SQL or Python.
      Returns:
      this.
    • dbtTestRawCode

      public B dbtTestRawCode(String dbtTestRawCode)
      Raw code of the test (when the test is defined using Python).
      Returns:
      this.
    • dbtTestRawSQL

      public B dbtTestRawSQL(String dbtTestRawSQL)
      Raw SQL of the test.
      Returns:
      this.
    • dbtTestState

      public B dbtTestState(String dbtTestState)
      Test results. Can be one of, in order of severity, "error", "fail", "warn", "pass".
      Returns:
      this.
    • dbtTestStatus

      public B dbtTestStatus(String dbtTestStatus)
      Details of the results of the test. For errors, it reads "ERROR".
      Returns:
      this.
    • dbtUniqueId

      public B dbtUniqueId(String dbtUniqueId)
      TBC
      Returns:
      this.
    • inputToAirflowTask

      public B inputToAirflowTask(IAirflowTask inputToAirflowTask)
    • inputToAirflowTasks

      public B inputToAirflowTasks(Collection<? extends IAirflowTask> inputToAirflowTasks)
    • clearInputToAirflowTasks

      public B clearInputToAirflowTasks()
    • inputToProcess

      public B inputToProcess(ILineageProcess inputToProcess)
    • inputToProcesses

      public B inputToProcesses(Collection<? extends ILineageProcess> inputToProcesses)
    • clearInputToProcesses

      public B clearInputToProcesses()
    • inputToSparkJob

      public B inputToSparkJob(ISparkJob inputToSparkJob)
    • inputToSparkJobs

      public B inputToSparkJobs(Collection<? extends ISparkJob> inputToSparkJobs)
    • clearInputToSparkJobs

      public B clearInputToSparkJobs()
    • modelImplementedEntity

      public B modelImplementedEntity(IModelEntity modelImplementedEntity)
    • modelImplementedEntities

      public B modelImplementedEntities(Collection<? extends IModelEntity> modelImplementedEntities)
    • clearModelImplementedEntities

      public B clearModelImplementedEntities()
    • outputFromAirflowTask

      public B outputFromAirflowTask(IAirflowTask outputFromAirflowTask)
    • outputFromAirflowTasks

      public B outputFromAirflowTasks(Collection<? extends IAirflowTask> outputFromAirflowTasks)
    • clearOutputFromAirflowTasks

      public B clearOutputFromAirflowTasks()
    • outputFromProcess

      public B outputFromProcess(ILineageProcess outputFromProcess)
    • outputFromProcesses

      public B outputFromProcesses(Collection<? extends ILineageProcess> outputFromProcesses)
    • clearOutputFromProcesses

      public B clearOutputFromProcesses()
    • outputFromSparkJob

      public B outputFromSparkJob(ISparkJob outputFromSparkJob)
    • outputFromSparkJobs

      public B outputFromSparkJobs(Collection<? extends ISparkJob> outputFromSparkJobs)
    • clearOutputFromSparkJobs

      public B clearOutputFromSparkJobs()
    • sqlAsset

      public B sqlAsset(ISQL sqlAsset)
    • sqlAssets

      public B sqlAssets(Collection<? extends ISQL> sqlAssets)
    • clearSqlAssets

      public B clearSqlAssets()
    • self

      protected abstract B self()
      Specified by:
      self in class Asset.AssetBuilder<C extends DbtTest,B extends DbtTest.DbtTestBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class Asset.AssetBuilder<C extends DbtTest,B extends DbtTest.DbtTestBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class Asset.AssetBuilder<C extends DbtTest,B extends DbtTest.DbtTestBuilder<C,B>>