commonMain.aws.sdk.kotlin.services.glue.model.GetDataQualityRuleRecommendationRunResponse.kt Maven / Gradle / Ivy
// 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 GetDataQualityRuleRecommendationRunResponse private constructor(builder: Builder) {
/**
* The date and time when this run was completed.
*/
public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
/**
* The name of the ruleset that was created by the run.
*/
public val createdRulesetName: kotlin.String? = builder.createdRulesetName
/**
* The name of the security configuration created with the data quality encryption option.
*/
public val dataQualitySecurityConfiguration: kotlin.String? = builder.dataQualitySecurityConfiguration
/**
* The data source (an Glue table) associated with this run.
*/
public val dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = builder.dataSource
/**
* The error strings that are associated with the run.
*/
public val errorString: kotlin.String? = builder.errorString
/**
* The amount of time (in seconds) that the run consumed resources.
*/
public val executionTime: kotlin.Int = builder.executionTime
/**
* A timestamp. The last point in time when this data quality rule recommendation run was modified.
*/
public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
/**
* The number of `G.1X` workers to be used in the run. The default is 5.
*/
public val numberOfWorkers: kotlin.Int? = builder.numberOfWorkers
/**
* When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member has those rules in Data Quality Definition Language (DQDL) format.
*/
public val recommendedRuleset: kotlin.String? = builder.recommendedRuleset
/**
* An IAM role supplied to encrypt the results of the run.
*/
public val role: kotlin.String? = builder.role
/**
* The unique run identifier associated with this run.
*/
public val runId: kotlin.String? = builder.runId
/**
* The date and time when this run started.
*/
public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
/**
* The status for this run.
*/
public val status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = builder.status
/**
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
*/
public val timeout: kotlin.Int? = builder.timeout
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetDataQualityRuleRecommendationRunResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDataQualityRuleRecommendationRunResponse(")
append("completedOn=$completedOn,")
append("createdRulesetName=$createdRulesetName,")
append("dataQualitySecurityConfiguration=$dataQualitySecurityConfiguration,")
append("dataSource=$dataSource,")
append("errorString=$errorString,")
append("executionTime=$executionTime,")
append("lastModifiedOn=$lastModifiedOn,")
append("numberOfWorkers=$numberOfWorkers,")
append("recommendedRuleset=$recommendedRuleset,")
append("role=$role,")
append("runId=$runId,")
append("startedOn=$startedOn,")
append("status=$status,")
append("timeout=$timeout")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = completedOn?.hashCode() ?: 0
result = 31 * result + (createdRulesetName?.hashCode() ?: 0)
result = 31 * result + (dataQualitySecurityConfiguration?.hashCode() ?: 0)
result = 31 * result + (dataSource?.hashCode() ?: 0)
result = 31 * result + (errorString?.hashCode() ?: 0)
result = 31 * result + (executionTime)
result = 31 * result + (lastModifiedOn?.hashCode() ?: 0)
result = 31 * result + (numberOfWorkers ?: 0)
result = 31 * result + (recommendedRuleset?.hashCode() ?: 0)
result = 31 * result + (role?.hashCode() ?: 0)
result = 31 * result + (runId?.hashCode() ?: 0)
result = 31 * result + (startedOn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (timeout ?: 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 GetDataQualityRuleRecommendationRunResponse
if (completedOn != other.completedOn) return false
if (createdRulesetName != other.createdRulesetName) return false
if (dataQualitySecurityConfiguration != other.dataQualitySecurityConfiguration) return false
if (dataSource != other.dataSource) return false
if (errorString != other.errorString) return false
if (executionTime != other.executionTime) return false
if (lastModifiedOn != other.lastModifiedOn) return false
if (numberOfWorkers != other.numberOfWorkers) return false
if (recommendedRuleset != other.recommendedRuleset) return false
if (role != other.role) return false
if (runId != other.runId) return false
if (startedOn != other.startedOn) return false
if (status != other.status) return false
if (timeout != other.timeout) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetDataQualityRuleRecommendationRunResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time when this run was completed.
*/
public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the ruleset that was created by the run.
*/
public var createdRulesetName: kotlin.String? = null
/**
* The name of the security configuration created with the data quality encryption option.
*/
public var dataQualitySecurityConfiguration: kotlin.String? = null
/**
* The data source (an Glue table) associated with this run.
*/
public var dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = null
/**
* The error strings that are associated with the run.
*/
public var errorString: kotlin.String? = null
/**
* The amount of time (in seconds) that the run consumed resources.
*/
public var executionTime: kotlin.Int = 0
/**
* A timestamp. The last point in time when this data quality rule recommendation run was modified.
*/
public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The number of `G.1X` workers to be used in the run. The default is 5.
*/
public var numberOfWorkers: kotlin.Int? = null
/**
* When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member has those rules in Data Quality Definition Language (DQDL) format.
*/
public var recommendedRuleset: kotlin.String? = null
/**
* An IAM role supplied to encrypt the results of the run.
*/
public var role: kotlin.String? = null
/**
* The unique run identifier associated with this run.
*/
public var runId: kotlin.String? = null
/**
* The date and time when this run started.
*/
public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status for this run.
*/
public var status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = null
/**
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
*/
public var timeout: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetDataQualityRuleRecommendationRunResponse) : this() {
this.completedOn = x.completedOn
this.createdRulesetName = x.createdRulesetName
this.dataQualitySecurityConfiguration = x.dataQualitySecurityConfiguration
this.dataSource = x.dataSource
this.errorString = x.errorString
this.executionTime = x.executionTime
this.lastModifiedOn = x.lastModifiedOn
this.numberOfWorkers = x.numberOfWorkers
this.recommendedRuleset = x.recommendedRuleset
this.role = x.role
this.runId = x.runId
this.startedOn = x.startedOn
this.status = x.status
this.timeout = x.timeout
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetDataQualityRuleRecommendationRunResponse = GetDataQualityRuleRecommendationRunResponse(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
}
}
}