commonMain.aws.sdk.kotlin.services.glue.model.GetDataQualityResultResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetDataQualityResultResponse private constructor(builder: Builder) {
/**
* A list of `DataQualityAnalyzerResult` objects representing the results for each analyzer.
*/
public val analyzerResults: List? = builder.analyzerResults
/**
* The date and time when the run for this data quality result was completed.
*/
public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
/**
* The table associated with the data quality result, if any.
*/
public val dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = builder.dataSource
/**
* In the context of a job in Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the `evaluationContext` can differentiate the nodes.
*/
public val evaluationContext: kotlin.String? = builder.evaluationContext
/**
* The job name associated with the data quality result, if any.
*/
public val jobName: kotlin.String? = builder.jobName
/**
* The job run ID associated with the data quality result, if any.
*/
public val jobRunId: kotlin.String? = builder.jobRunId
/**
* A list of `DataQualityObservation` objects representing the observations generated after evaluating the rules and analyzers.
*/
public val observations: List? = builder.observations
/**
* The Profile ID for the data quality result.
*/
public val profileId: kotlin.String? = builder.profileId
/**
* A unique result ID for the data quality result.
*/
public val resultId: kotlin.String? = builder.resultId
/**
* A list of `DataQualityRuleResult` objects representing the results for each rule.
*/
public val ruleResults: List? = builder.ruleResults
/**
* The unique run ID associated with the ruleset evaluation.
*/
public val rulesetEvaluationRunId: kotlin.String? = builder.rulesetEvaluationRunId
/**
* The name of the ruleset associated with the data quality result.
*/
public val rulesetName: kotlin.String? = builder.rulesetName
/**
* An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
*/
public val score: kotlin.Double? = builder.score
/**
* The date and time when the run for this data quality result started.
*/
public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetDataQualityResultResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDataQualityResultResponse(")
append("analyzerResults=$analyzerResults,")
append("completedOn=$completedOn,")
append("dataSource=$dataSource,")
append("evaluationContext=$evaluationContext,")
append("jobName=$jobName,")
append("jobRunId=$jobRunId,")
append("observations=$observations,")
append("profileId=$profileId,")
append("resultId=$resultId,")
append("ruleResults=$ruleResults,")
append("rulesetEvaluationRunId=$rulesetEvaluationRunId,")
append("rulesetName=$rulesetName,")
append("score=$score,")
append("startedOn=$startedOn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analyzerResults?.hashCode() ?: 0
result = 31 * result + (completedOn?.hashCode() ?: 0)
result = 31 * result + (dataSource?.hashCode() ?: 0)
result = 31 * result + (evaluationContext?.hashCode() ?: 0)
result = 31 * result + (jobName?.hashCode() ?: 0)
result = 31 * result + (jobRunId?.hashCode() ?: 0)
result = 31 * result + (observations?.hashCode() ?: 0)
result = 31 * result + (profileId?.hashCode() ?: 0)
result = 31 * result + (resultId?.hashCode() ?: 0)
result = 31 * result + (ruleResults?.hashCode() ?: 0)
result = 31 * result + (rulesetEvaluationRunId?.hashCode() ?: 0)
result = 31 * result + (rulesetName?.hashCode() ?: 0)
result = 31 * result + (score?.hashCode() ?: 0)
result = 31 * result + (startedOn?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as GetDataQualityResultResponse
if (analyzerResults != other.analyzerResults) return false
if (completedOn != other.completedOn) return false
if (dataSource != other.dataSource) return false
if (evaluationContext != other.evaluationContext) return false
if (jobName != other.jobName) return false
if (jobRunId != other.jobRunId) return false
if (observations != other.observations) return false
if (profileId != other.profileId) return false
if (resultId != other.resultId) return false
if (ruleResults != other.ruleResults) return false
if (rulesetEvaluationRunId != other.rulesetEvaluationRunId) return false
if (rulesetName != other.rulesetName) return false
if (!(score?.equals(other.score) ?: (other.score == null))) return false
if (startedOn != other.startedOn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetDataQualityResultResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of `DataQualityAnalyzerResult` objects representing the results for each analyzer.
*/
public var analyzerResults: List? = null
/**
* The date and time when the run for this data quality result was completed.
*/
public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The table associated with the data quality result, if any.
*/
public var dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = null
/**
* In the context of a job in Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the `evaluationContext` can differentiate the nodes.
*/
public var evaluationContext: kotlin.String? = null
/**
* The job name associated with the data quality result, if any.
*/
public var jobName: kotlin.String? = null
/**
* The job run ID associated with the data quality result, if any.
*/
public var jobRunId: kotlin.String? = null
/**
* A list of `DataQualityObservation` objects representing the observations generated after evaluating the rules and analyzers.
*/
public var observations: List? = null
/**
* The Profile ID for the data quality result.
*/
public var profileId: kotlin.String? = null
/**
* A unique result ID for the data quality result.
*/
public var resultId: kotlin.String? = null
/**
* A list of `DataQualityRuleResult` objects representing the results for each rule.
*/
public var ruleResults: List? = null
/**
* The unique run ID associated with the ruleset evaluation.
*/
public var rulesetEvaluationRunId: kotlin.String? = null
/**
* The name of the ruleset associated with the data quality result.
*/
public var rulesetName: kotlin.String? = null
/**
* An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
*/
public var score: kotlin.Double? = null
/**
* The date and time when the run for this data quality result started.
*/
public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetDataQualityResultResponse) : this() {
this.analyzerResults = x.analyzerResults
this.completedOn = x.completedOn
this.dataSource = x.dataSource
this.evaluationContext = x.evaluationContext
this.jobName = x.jobName
this.jobRunId = x.jobRunId
this.observations = x.observations
this.profileId = x.profileId
this.resultId = x.resultId
this.ruleResults = x.ruleResults
this.rulesetEvaluationRunId = x.rulesetEvaluationRunId
this.rulesetName = x.rulesetName
this.score = x.score
this.startedOn = x.startedOn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetDataQualityResultResponse = GetDataQualityResultResponse(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.DataSource] inside the given [block]
*/
public fun dataSource(block: aws.sdk.kotlin.services.glue.model.DataSource.Builder.() -> kotlin.Unit) {
this.dataSource = aws.sdk.kotlin.services.glue.model.DataSource.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}