commonMain.aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationResponse.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 GetCollaborationIdNamespaceAssociationResponse private constructor(builder: Builder) {
/**
* The ID namespace association that you requested.
*/
public val collaborationIdNamespaceAssociation: aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation? = builder.collaborationIdNamespaceAssociation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCollaborationIdNamespaceAssociationResponse(")
append("collaborationIdNamespaceAssociation=$collaborationIdNamespaceAssociation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collaborationIdNamespaceAssociation?.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 GetCollaborationIdNamespaceAssociationResponse
if (collaborationIdNamespaceAssociation != other.collaborationIdNamespaceAssociation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID namespace association that you requested.
*/
public var collaborationIdNamespaceAssociation: aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationResponse) : this() {
this.collaborationIdNamespaceAssociation = x.collaborationIdNamespaceAssociation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationResponse = GetCollaborationIdNamespaceAssociationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation] inside the given [block]
*/
public fun collaborationIdNamespaceAssociation(block: aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation.Builder.() -> kotlin.Unit) {
this.collaborationIdNamespaceAssociation = aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}