commonMain.aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyParameters.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An array that contains the sensitivity parameters.
*/
public class DifferentialPrivacyParameters private constructor(builder: Builder) {
/**
* Provides the sensitivity parameters that you can use to better understand the total amount of noise in query results.
*/
public val sensitivityParameters: List = requireNotNull(builder.sensitivityParameters) { "A non-null value must be provided for sensitivityParameters" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DifferentialPrivacyParameters(")
append("sensitivityParameters=$sensitivityParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sensitivityParameters.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 DifferentialPrivacyParameters
if (sensitivityParameters != other.sensitivityParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Provides the sensitivity parameters that you can use to better understand the total amount of noise in query results.
*/
public var sensitivityParameters: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyParameters) : this() {
this.sensitivityParameters = x.sensitivityParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyParameters = DifferentialPrivacyParameters(this)
internal fun correctErrors(): Builder {
if (sensitivityParameters == null) sensitivityParameters = emptyList()
return this
}
}
}