commonMain.aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration.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
/**
* Contains configurations for protected query results.
*/
public class MembershipProtectedQueryResultConfiguration private constructor(builder: Builder) {
/**
* Configuration for protected query results.
*/
public val outputConfiguration: aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryOutputConfiguration? = builder.outputConfiguration
/**
* The unique ARN for an IAM role that is used by Clean Rooms to write protected query results to the result location, given by the member who can receive results.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MembershipProtectedQueryResultConfiguration(")
append("outputConfiguration=$outputConfiguration,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = outputConfiguration?.hashCode() ?: 0
result = 31 * result + (roleArn?.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 MembershipProtectedQueryResultConfiguration
if (outputConfiguration != other.outputConfiguration) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Configuration for protected query results.
*/
public var outputConfiguration: aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryOutputConfiguration? = null
/**
* The unique ARN for an IAM role that is used by Clean Rooms to write protected query results to the result location, given by the member who can receive results.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration) : this() {
this.outputConfiguration = x.outputConfiguration
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration = MembershipProtectedQueryResultConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}