commonMain.aws.sdk.kotlin.services.cleanroomsml.model.InferenceOutputConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanroomsml-jvm Show documentation
Show all versions of cleanroomsml-jvm Show documentation
The AWS SDK for Kotlin client for CleanRoomsML
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanroomsml.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configuration information about how the inference output is stored.
*/
public class InferenceOutputConfiguration private constructor(builder: Builder) {
/**
* The MIME type used to specify the output data.
*/
public val accept: kotlin.String = builder.accept
/**
* Defines the members that can receive inference output.
*/
public val members: List = requireNotNull(builder.members) { "A non-null value must be provided for members" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.InferenceOutputConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InferenceOutputConfiguration(")
append("accept=$accept,")
append("members=$members")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accept.hashCode()
result = 31 * result + (members.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 InferenceOutputConfiguration
if (accept != other.accept) return false
if (members != other.members) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.InferenceOutputConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The MIME type used to specify the output data.
*/
public var accept: kotlin.String = "application/json"
/**
* Defines the members that can receive inference output.
*/
public var members: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.InferenceOutputConfiguration) : this() {
this.accept = x.accept
this.members = x.members
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.InferenceOutputConfiguration = InferenceOutputConfiguration(this)
internal fun correctErrors(): Builder {
if (members == null) members = emptyList()
return this
}
}
}