commonMain.aws.sdk.kotlin.services.cleanroomsml.model.UpdateConfiguredAudienceModelRequest.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 UpdateConfiguredAudienceModelRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the new audience model that you want to use.
*/
public val audienceModelArn: kotlin.String? = builder.audienceModelArn
/**
* The new audience size configuration.
*/
public val audienceSizeConfig: aws.sdk.kotlin.services.cleanroomsml.model.AudienceSizeConfig? = builder.audienceSizeConfig
/**
* The Amazon Resource Name (ARN) of the configured audience model that you want to update.
*/
public val configuredAudienceModelArn: kotlin.String? = builder.configuredAudienceModelArn
/**
* The new description of the configured audience model.
*/
public val description: kotlin.String? = builder.description
/**
* The minimum number of users from the seed audience that must match with users in the training data of the audience model.
*/
public val minMatchingSeedSize: kotlin.Int? = builder.minMatchingSeedSize
/**
* The new output configuration.
*/
public val outputConfig: aws.sdk.kotlin.services.cleanroomsml.model.ConfiguredAudienceModelOutputConfig? = builder.outputConfig
/**
* The new value for whether to share audience metrics.
*/
public val sharedAudienceMetrics: List? = builder.sharedAudienceMetrics
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.UpdateConfiguredAudienceModelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateConfiguredAudienceModelRequest(")
append("audienceModelArn=$audienceModelArn,")
append("audienceSizeConfig=$audienceSizeConfig,")
append("configuredAudienceModelArn=$configuredAudienceModelArn,")
append("description=$description,")
append("minMatchingSeedSize=$minMatchingSeedSize,")
append("outputConfig=$outputConfig,")
append("sharedAudienceMetrics=$sharedAudienceMetrics")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = audienceModelArn?.hashCode() ?: 0
result = 31 * result + (audienceSizeConfig?.hashCode() ?: 0)
result = 31 * result + (configuredAudienceModelArn?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (minMatchingSeedSize ?: 0)
result = 31 * result + (outputConfig?.hashCode() ?: 0)
result = 31 * result + (sharedAudienceMetrics?.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 UpdateConfiguredAudienceModelRequest
if (audienceModelArn != other.audienceModelArn) return false
if (audienceSizeConfig != other.audienceSizeConfig) return false
if (configuredAudienceModelArn != other.configuredAudienceModelArn) return false
if (description != other.description) return false
if (minMatchingSeedSize != other.minMatchingSeedSize) return false
if (outputConfig != other.outputConfig) return false
if (sharedAudienceMetrics != other.sharedAudienceMetrics) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.UpdateConfiguredAudienceModelRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the new audience model that you want to use.
*/
public var audienceModelArn: kotlin.String? = null
/**
* The new audience size configuration.
*/
public var audienceSizeConfig: aws.sdk.kotlin.services.cleanroomsml.model.AudienceSizeConfig? = null
/**
* The Amazon Resource Name (ARN) of the configured audience model that you want to update.
*/
public var configuredAudienceModelArn: kotlin.String? = null
/**
* The new description of the configured audience model.
*/
public var description: kotlin.String? = null
/**
* The minimum number of users from the seed audience that must match with users in the training data of the audience model.
*/
public var minMatchingSeedSize: kotlin.Int? = null
/**
* The new output configuration.
*/
public var outputConfig: aws.sdk.kotlin.services.cleanroomsml.model.ConfiguredAudienceModelOutputConfig? = null
/**
* The new value for whether to share audience metrics.
*/
public var sharedAudienceMetrics: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.UpdateConfiguredAudienceModelRequest) : this() {
this.audienceModelArn = x.audienceModelArn
this.audienceSizeConfig = x.audienceSizeConfig
this.configuredAudienceModelArn = x.configuredAudienceModelArn
this.description = x.description
this.minMatchingSeedSize = x.minMatchingSeedSize
this.outputConfig = x.outputConfig
this.sharedAudienceMetrics = x.sharedAudienceMetrics
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.UpdateConfiguredAudienceModelRequest = UpdateConfiguredAudienceModelRequest(this)
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.AudienceSizeConfig] inside the given [block]
*/
public fun audienceSizeConfig(block: aws.sdk.kotlin.services.cleanroomsml.model.AudienceSizeConfig.Builder.() -> kotlin.Unit) {
this.audienceSizeConfig = aws.sdk.kotlin.services.cleanroomsml.model.AudienceSizeConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.ConfiguredAudienceModelOutputConfig] inside the given [block]
*/
public fun outputConfig(block: aws.sdk.kotlin.services.cleanroomsml.model.ConfiguredAudienceModelOutputConfig.Builder.() -> kotlin.Unit) {
this.outputConfig = aws.sdk.kotlin.services.cleanroomsml.model.ConfiguredAudienceModelOutputConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}