commonMain.aws.sdk.kotlin.services.cleanrooms.model.UpdateMembershipRequest.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
public class UpdateMembershipRequest private constructor(builder: Builder) {
/**
* The default protected query result configuration as specified by the member who can receive results.
*/
public val defaultResultConfiguration: aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration? = builder.defaultResultConfiguration
/**
* The unique identifier of the membership.
*/
public val membershipIdentifier: kotlin.String = requireNotNull(builder.membershipIdentifier) { "A non-null value must be provided for membershipIdentifier" }
/**
* An indicator as to whether query logging has been enabled or disabled for the membership.
*/
public val queryLogStatus: aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryLogStatus? = builder.queryLogStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.UpdateMembershipRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateMembershipRequest(")
append("defaultResultConfiguration=$defaultResultConfiguration,")
append("membershipIdentifier=$membershipIdentifier,")
append("queryLogStatus=$queryLogStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultResultConfiguration?.hashCode() ?: 0
result = 31 * result + (membershipIdentifier.hashCode())
result = 31 * result + (queryLogStatus?.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 UpdateMembershipRequest
if (defaultResultConfiguration != other.defaultResultConfiguration) return false
if (membershipIdentifier != other.membershipIdentifier) return false
if (queryLogStatus != other.queryLogStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.UpdateMembershipRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The default protected query result configuration as specified by the member who can receive results.
*/
public var defaultResultConfiguration: aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration? = null
/**
* The unique identifier of the membership.
*/
public var membershipIdentifier: kotlin.String? = null
/**
* An indicator as to whether query logging has been enabled or disabled for the membership.
*/
public var queryLogStatus: aws.sdk.kotlin.services.cleanrooms.model.MembershipQueryLogStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.UpdateMembershipRequest) : this() {
this.defaultResultConfiguration = x.defaultResultConfiguration
this.membershipIdentifier = x.membershipIdentifier
this.queryLogStatus = x.queryLogStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.UpdateMembershipRequest = UpdateMembershipRequest(this)
/**
* construct an [aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration] inside the given [block]
*/
public fun defaultResultConfiguration(block: aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration.Builder.() -> kotlin.Unit) {
this.defaultResultConfiguration = aws.sdk.kotlin.services.cleanrooms.model.MembershipProtectedQueryResultConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (membershipIdentifier == null) membershipIdentifier = ""
return this
}
}
}