commonMain.aws.sdk.kotlin.services.datazone.model.AcceptPredictionsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
public class AcceptPredictionsRequest private constructor(builder: Builder) {
/**
* Specifies the prediction (aka, the automatically generated piece of metadata) and the target (for example, a column name) that can be accepted.
*/
public val acceptChoices: List? = builder.acceptChoices
/**
* Specifies the rule (or the conditions) under which a prediction can be accepted.
*/
public val acceptRule: aws.sdk.kotlin.services.datazone.model.AcceptRule? = builder.acceptRule
/**
* A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The identifier of the Amazon DataZone domain.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The identifier of the asset.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* The revision that is to be made to the asset.
*/
public val revision: kotlin.String? = builder.revision
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.AcceptPredictionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AcceptPredictionsRequest(")
append("acceptChoices=$acceptChoices,")
append("acceptRule=$acceptRule,")
append("clientToken=$clientToken,")
append("domainIdentifier=$domainIdentifier,")
append("identifier=$identifier,")
append("revision=$revision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = acceptChoices?.hashCode() ?: 0
result = 31 * result + (acceptRule?.hashCode() ?: 0)
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (identifier?.hashCode() ?: 0)
result = 31 * result + (revision?.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 AcceptPredictionsRequest
if (acceptChoices != other.acceptChoices) return false
if (acceptRule != other.acceptRule) return false
if (clientToken != other.clientToken) return false
if (domainIdentifier != other.domainIdentifier) return false
if (identifier != other.identifier) return false
if (revision != other.revision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.AcceptPredictionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the prediction (aka, the automatically generated piece of metadata) and the target (for example, a column name) that can be accepted.
*/
public var acceptChoices: List? = null
/**
* Specifies the rule (or the conditions) under which a prediction can be accepted.
*/
public var acceptRule: aws.sdk.kotlin.services.datazone.model.AcceptRule? = null
/**
* A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.
*/
public var clientToken: kotlin.String? = null
/**
* The identifier of the Amazon DataZone domain.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The identifier of the asset.
*/
public var identifier: kotlin.String? = null
/**
* The revision that is to be made to the asset.
*/
public var revision: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.AcceptPredictionsRequest) : this() {
this.acceptChoices = x.acceptChoices
this.acceptRule = x.acceptRule
this.clientToken = x.clientToken
this.domainIdentifier = x.domainIdentifier
this.identifier = x.identifier
this.revision = x.revision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.AcceptPredictionsRequest = AcceptPredictionsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.datazone.model.AcceptRule] inside the given [block]
*/
public fun acceptRule(block: aws.sdk.kotlin.services.datazone.model.AcceptRule.Builder.() -> kotlin.Unit) {
this.acceptRule = aws.sdk.kotlin.services.datazone.model.AcceptRule.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy