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