commonMain.aws.sdk.kotlin.services.cleanroomsml.model.PutMlConfigurationRequest.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
public class PutMlConfigurationRequest private constructor(builder: Builder) {
/**
* The default Amazon S3 location where ML output is stored for the specified member.
*/
public val defaultOutputLocation: aws.sdk.kotlin.services.cleanroomsml.model.MlOutputConfiguration? = builder.defaultOutputLocation
/**
* The membership ID of the member that is being configured.
*/
public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.PutMlConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutMlConfigurationRequest(")
append("defaultOutputLocation=$defaultOutputLocation,")
append("membershipIdentifier=$membershipIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultOutputLocation?.hashCode() ?: 0
result = 31 * result + (membershipIdentifier?.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 PutMlConfigurationRequest
if (defaultOutputLocation != other.defaultOutputLocation) return false
if (membershipIdentifier != other.membershipIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.PutMlConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The default Amazon S3 location where ML output is stored for the specified member.
*/
public var defaultOutputLocation: aws.sdk.kotlin.services.cleanroomsml.model.MlOutputConfiguration? = null
/**
* The membership ID of the member that is being configured.
*/
public var membershipIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.PutMlConfigurationRequest) : this() {
this.defaultOutputLocation = x.defaultOutputLocation
this.membershipIdentifier = x.membershipIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.PutMlConfigurationRequest = PutMlConfigurationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.MlOutputConfiguration] inside the given [block]
*/
public fun defaultOutputLocation(block: aws.sdk.kotlin.services.cleanroomsml.model.MlOutputConfiguration.Builder.() -> kotlin.Unit) {
this.defaultOutputLocation = aws.sdk.kotlin.services.cleanroomsml.model.MlOutputConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}