commonMain.aws.sdk.kotlin.services.cleanrooms.model.MembershipPaymentConfiguration.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
/**
* An object representing the payment responsibilities accepted by the collaboration member.
*/
public class MembershipPaymentConfiguration private constructor(builder: Builder) {
/**
* The payment responsibilities accepted by the collaboration member for query compute costs.
*/
public val queryCompute: aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig? = builder.queryCompute
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.MembershipPaymentConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MembershipPaymentConfiguration(")
append("queryCompute=$queryCompute")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = queryCompute?.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 MembershipPaymentConfiguration
if (queryCompute != other.queryCompute) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.MembershipPaymentConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The payment responsibilities accepted by the collaboration member for query compute costs.
*/
public var queryCompute: aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.MembershipPaymentConfiguration) : this() {
this.queryCompute = x.queryCompute
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.MembershipPaymentConfiguration = MembershipPaymentConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig] inside the given [block]
*/
public fun queryCompute(block: aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig.Builder.() -> kotlin.Unit) {
this.queryCompute = aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}