commonMain.aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyPrivacyImpact.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
/**
* Information about the number of aggregation functions that the member who can query can run given the epsilon and noise parameters.
*/
public class DifferentialPrivacyPrivacyImpact private constructor(builder: Builder) {
/**
* The number of aggregation functions that you can perform.
*/
public val aggregations: List = requireNotNull(builder.aggregations) { "A non-null value must be provided for aggregations" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyPrivacyImpact = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DifferentialPrivacyPrivacyImpact(")
append("aggregations=$aggregations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregations.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 DifferentialPrivacyPrivacyImpact
if (aggregations != other.aggregations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyPrivacyImpact = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of aggregation functions that you can perform.
*/
public var aggregations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyPrivacyImpact) : this() {
this.aggregations = x.aggregations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.DifferentialPrivacyPrivacyImpact = DifferentialPrivacyPrivacyImpact(this)
internal fun correctErrors(): Builder {
if (aggregations == null) aggregations = emptyList()
return this
}
}
}