commonMain.aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationRequest.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 GetCollaborationIdNamespaceAssociationRequest private constructor(builder: Builder) {
/**
* The unique identifier of the collaboration that contains the ID namespace association that you want to retrieve.
*/
public val collaborationIdentifier: kotlin.String? = builder.collaborationIdentifier
/**
* The unique identifier of the ID namespace association that you want to retrieve.
*/
public val idNamespaceAssociationIdentifier: kotlin.String? = builder.idNamespaceAssociationIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCollaborationIdNamespaceAssociationRequest(")
append("collaborationIdentifier=$collaborationIdentifier,")
append("idNamespaceAssociationIdentifier=$idNamespaceAssociationIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collaborationIdentifier?.hashCode() ?: 0
result = 31 * result + (idNamespaceAssociationIdentifier?.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 GetCollaborationIdNamespaceAssociationRequest
if (collaborationIdentifier != other.collaborationIdentifier) return false
if (idNamespaceAssociationIdentifier != other.idNamespaceAssociationIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the collaboration that contains the ID namespace association that you want to retrieve.
*/
public var collaborationIdentifier: kotlin.String? = null
/**
* The unique identifier of the ID namespace association that you want to retrieve.
*/
public var idNamespaceAssociationIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationRequest) : this() {
this.collaborationIdentifier = x.collaborationIdentifier
this.idNamespaceAssociationIdentifier = x.idNamespaceAssociationIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationIdNamespaceAssociationRequest = GetCollaborationIdNamespaceAssociationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}