commonMain.aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters.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
/**
* The parameters for the SQL type Protected Query.
*/
public class ProtectedQuerySqlParameters private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
*/
public val analysisTemplateArn: kotlin.String? = builder.analysisTemplateArn
/**
* The protected query SQL parameters.
*/
public val parameters: Map? = builder.parameters
/**
* The query string to be submitted.
*/
public val queryString: kotlin.String? = builder.queryString
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProtectedQuerySqlParameters(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisTemplateArn?.hashCode() ?: 0
result = 31 * result + (parameters?.hashCode() ?: 0)
result = 31 * result + (queryString?.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 ProtectedQuerySqlParameters
if (analysisTemplateArn != other.analysisTemplateArn) return false
if (parameters != other.parameters) return false
if (queryString != other.queryString) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
*/
public var analysisTemplateArn: kotlin.String? = null
/**
* The protected query SQL parameters.
*/
public var parameters: Map? = null
/**
* The query string to be submitted.
*/
public var queryString: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters) : this() {
this.analysisTemplateArn = x.analysisTemplateArn
this.parameters = x.parameters
this.queryString = x.queryString
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.ProtectedQuerySqlParameters = ProtectedQuerySqlParameters(this)
internal fun correctErrors(): Builder {
return this
}
}
}