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