commonMain.aws.sdk.kotlin.services.datazone.model.AcceptPredictionsResponse.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 AcceptPredictionsResponse private constructor(builder: Builder) {
/**
* The ID of the asset.
*/
public val assetId: kotlin.String = requireNotNull(builder.assetId) { "A non-null value must be provided for assetId" }
/**
* The identifier of the Amazon DataZone domain.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* The revision that is to be made to the asset.
*/
public val revision: kotlin.String = requireNotNull(builder.revision) { "A non-null value must be provided for revision" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.AcceptPredictionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AcceptPredictionsResponse(")
append("assetId=$assetId,")
append("domainId=$domainId,")
append("revision=$revision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetId.hashCode()
result = 31 * result + (domainId.hashCode())
result = 31 * result + (revision.hashCode())
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 AcceptPredictionsResponse
if (assetId != other.assetId) return false
if (domainId != other.domainId) return false
if (revision != other.revision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.AcceptPredictionsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the asset.
*/
public var assetId: kotlin.String? = null
/**
* The identifier of the Amazon DataZone domain.
*/
public var domainId: 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.AcceptPredictionsResponse) : this() {
this.assetId = x.assetId
this.domainId = x.domainId
this.revision = x.revision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.AcceptPredictionsResponse = AcceptPredictionsResponse(this)
internal fun correctErrors(): Builder {
if (assetId == null) assetId = ""
if (domainId == null) domainId = ""
if (revision == null) revision = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy