commonMain.aws.sdk.kotlin.services.cleanrooms.model.AnalysisRuleList.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
/**
* A type of analysis rule that enables row-level analysis.
*/
public class AnalysisRuleList private constructor(builder: Builder) {
/**
* An indicator as to whether additional analyses (such as Clean Rooms ML) can be applied to the output of the direct query.
*/
public val additionalAnalyses: aws.sdk.kotlin.services.cleanrooms.model.AdditionalAnalyses? = builder.additionalAnalyses
/**
* The logical operators (if any) that are to be used in an INNER JOIN match condition. Default is `AND`.
*/
public val allowedJoinOperators: List? = builder.allowedJoinOperators
/**
* Columns that can be used to join a configured table with the table of the member who can query and other members' configured tables.
*/
public val joinColumns: List = requireNotNull(builder.joinColumns) { "A non-null value must be provided for joinColumns" }
/**
* Columns that can be listed in the output.
*/
public val listColumns: List = requireNotNull(builder.listColumns) { "A non-null value must be provided for listColumns" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.AnalysisRuleList = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnalysisRuleList(")
append("additionalAnalyses=$additionalAnalyses,")
append("allowedJoinOperators=$allowedJoinOperators,")
append("joinColumns=$joinColumns,")
append("listColumns=$listColumns")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = additionalAnalyses?.hashCode() ?: 0
result = 31 * result + (allowedJoinOperators?.hashCode() ?: 0)
result = 31 * result + (joinColumns.hashCode())
result = 31 * result + (listColumns.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 AnalysisRuleList
if (additionalAnalyses != other.additionalAnalyses) return false
if (allowedJoinOperators != other.allowedJoinOperators) return false
if (joinColumns != other.joinColumns) return false
if (listColumns != other.listColumns) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.AnalysisRuleList = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An indicator as to whether additional analyses (such as Clean Rooms ML) can be applied to the output of the direct query.
*/
public var additionalAnalyses: aws.sdk.kotlin.services.cleanrooms.model.AdditionalAnalyses? = null
/**
* The logical operators (if any) that are to be used in an INNER JOIN match condition. Default is `AND`.
*/
public var allowedJoinOperators: List? = null
/**
* Columns that can be used to join a configured table with the table of the member who can query and other members' configured tables.
*/
public var joinColumns: List? = null
/**
* Columns that can be listed in the output.
*/
public var listColumns: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.AnalysisRuleList) : this() {
this.additionalAnalyses = x.additionalAnalyses
this.allowedJoinOperators = x.allowedJoinOperators
this.joinColumns = x.joinColumns
this.listColumns = x.listColumns
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.AnalysisRuleList = AnalysisRuleList(this)
internal fun correctErrors(): Builder {
if (joinColumns == null) joinColumns = emptyList()
if (listColumns == null) listColumns = emptyList()
return this
}
}
}