commonMain.aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig.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 for query compute costs.
*/
public class MembershipQueryComputePaymentConfig private constructor(builder: Builder) {
/**
* Indicates whether the collaboration member has accepted to pay for query compute costs (`TRUE`) or has not accepted to pay for query compute costs (`FALSE`).
*
* If the collaboration creator has not specified anyone to pay for query compute costs, then the member who can query is the default payer.
*
* An error message is returned for the following reasons:
* + If you set the value to `FALSE` but you are responsible to pay for query compute costs.
* + If you set the value to `TRUE` but you are not responsible to pay for query compute costs.
*/
public val isResponsible: kotlin.Boolean = requireNotNull(builder.isResponsible) { "A non-null value must be provided for isResponsible" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MembershipQueryComputePaymentConfig(")
append("isResponsible=$isResponsible")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = isResponsible.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 MembershipQueryComputePaymentConfig
if (isResponsible != other.isResponsible) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether the collaboration member has accepted to pay for query compute costs (`TRUE`) or has not accepted to pay for query compute costs (`FALSE`).
*
* If the collaboration creator has not specified anyone to pay for query compute costs, then the member who can query is the default payer.
*
* An error message is returned for the following reasons:
* + If you set the value to `FALSE` but you are responsible to pay for query compute costs.
* + If you set the value to `TRUE` but you are not responsible to pay for query compute costs.
*/
public var isResponsible: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig) : this() {
this.isResponsible = x.isResponsible
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryComputePaymentConfig = MembershipQueryComputePaymentConfig(this)
internal fun correctErrors(): Builder {
if (isResponsible == null) isResponsible = false
return this
}
}
}