commonMain.aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQueryInputParameters.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
/**
* Provides information necessary to perform the protected query.
*/
public class ProtectedQueryInputParameters private constructor(builder: Builder) {
/**
* Provides configuration information for the workers that will perform the protected query.
*/
public val computeConfiguration: aws.sdk.kotlin.services.cleanroomsml.model.ComputeConfiguration? = builder.computeConfiguration
/**
* The parameters for the SQL type Protected Query.
*/
public val sqlParameters: aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters? = builder.sqlParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQueryInputParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProtectedQueryInputParameters(")
append("computeConfiguration=$computeConfiguration,")
append("sqlParameters=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = computeConfiguration?.hashCode() ?: 0
result = 31 * result + (sqlParameters?.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 ProtectedQueryInputParameters
if (computeConfiguration != other.computeConfiguration) return false
if (sqlParameters != other.sqlParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQueryInputParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Provides configuration information for the workers that will perform the protected query.
*/
public var computeConfiguration: aws.sdk.kotlin.services.cleanroomsml.model.ComputeConfiguration? = null
/**
* The parameters for the SQL type Protected Query.
*/
public var sqlParameters: aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQueryInputParameters) : this() {
this.computeConfiguration = x.computeConfiguration
this.sqlParameters = x.sqlParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQueryInputParameters = ProtectedQueryInputParameters(this)
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters] inside the given [block]
*/
public fun sqlParameters(block: aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters.Builder.() -> kotlin.Unit) {
this.sqlParameters = aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}