commonMain.aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Defines details for the collaboration ID namespace association.
*/
public class CollaborationIdNamespaceAssociation private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the collaboration ID namespace association.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The Amazon Resource Name (ARN) of the collaboration that contains the collaboration ID namespace association.
*/
public val collaborationArn: kotlin.String = requireNotNull(builder.collaborationArn) { "A non-null value must be provided for collaborationArn" }
/**
* The unique identifier of the collaboration that contains the collaboration ID namespace association.
*/
public val collaborationId: kotlin.String = requireNotNull(builder.collaborationId) { "A non-null value must be provided for collaborationId" }
/**
* The time at which the collaboration ID namespace association was created.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createTime) { "A non-null value must be provided for createTime" }
/**
* The unique identifier of the Amazon Web Services account that created the collaboration ID namespace association.
*/
public val creatorAccountId: kotlin.String = requireNotNull(builder.creatorAccountId) { "A non-null value must be provided for creatorAccountId" }
/**
* The description of the collaboration ID namespace association.
*/
public val description: kotlin.String? = builder.description
/**
* The unique identifier of the collaboration ID namespace association.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The configuration settings for the ID mapping table.
*/
public val idMappingConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingConfig? = builder.idMappingConfig
/**
* The input reference configuration that's necessary to create the collaboration ID namespace association.
*/
public val inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceConfig? = builder.inputReferenceConfig
/**
* The input reference properties that are needed to create the collaboration ID namespace association.
*/
public val inputReferenceProperties: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceProperties? = builder.inputReferenceProperties
/**
* The name of the collaboration ID namespace association.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The most recent time at which the collaboration ID namespace was updated.
*/
public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CollaborationIdNamespaceAssociation(")
append("arn=$arn,")
append("collaborationArn=$collaborationArn,")
append("collaborationId=$collaborationId,")
append("createTime=$createTime,")
append("creatorAccountId=$creatorAccountId,")
append("description=$description,")
append("id=$id,")
append("idMappingConfig=$idMappingConfig,")
append("inputReferenceConfig=$inputReferenceConfig,")
append("inputReferenceProperties=$inputReferenceProperties,")
append("name=$name,")
append("updateTime=$updateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (collaborationArn.hashCode())
result = 31 * result + (collaborationId.hashCode())
result = 31 * result + (createTime.hashCode())
result = 31 * result + (creatorAccountId.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (idMappingConfig?.hashCode() ?: 0)
result = 31 * result + (inputReferenceConfig?.hashCode() ?: 0)
result = 31 * result + (inputReferenceProperties?.hashCode() ?: 0)
result = 31 * result + (name.hashCode())
result = 31 * result + (updateTime.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 CollaborationIdNamespaceAssociation
if (arn != other.arn) return false
if (collaborationArn != other.collaborationArn) return false
if (collaborationId != other.collaborationId) return false
if (createTime != other.createTime) return false
if (creatorAccountId != other.creatorAccountId) return false
if (description != other.description) return false
if (id != other.id) return false
if (idMappingConfig != other.idMappingConfig) return false
if (inputReferenceConfig != other.inputReferenceConfig) return false
if (inputReferenceProperties != other.inputReferenceProperties) return false
if (name != other.name) return false
if (updateTime != other.updateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the collaboration ID namespace association.
*/
public var arn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the collaboration that contains the collaboration ID namespace association.
*/
public var collaborationArn: kotlin.String? = null
/**
* The unique identifier of the collaboration that contains the collaboration ID namespace association.
*/
public var collaborationId: kotlin.String? = null
/**
* The time at which the collaboration ID namespace association was created.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The unique identifier of the Amazon Web Services account that created the collaboration ID namespace association.
*/
public var creatorAccountId: kotlin.String? = null
/**
* The description of the collaboration ID namespace association.
*/
public var description: kotlin.String? = null
/**
* The unique identifier of the collaboration ID namespace association.
*/
public var id: kotlin.String? = null
/**
* The configuration settings for the ID mapping table.
*/
public var idMappingConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingConfig? = null
/**
* The input reference configuration that's necessary to create the collaboration ID namespace association.
*/
public var inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceConfig? = null
/**
* The input reference properties that are needed to create the collaboration ID namespace association.
*/
public var inputReferenceProperties: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceProperties? = null
/**
* The name of the collaboration ID namespace association.
*/
public var name: kotlin.String? = null
/**
* The most recent time at which the collaboration ID namespace was updated.
*/
public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation) : this() {
this.arn = x.arn
this.collaborationArn = x.collaborationArn
this.collaborationId = x.collaborationId
this.createTime = x.createTime
this.creatorAccountId = x.creatorAccountId
this.description = x.description
this.id = x.id
this.idMappingConfig = x.idMappingConfig
this.inputReferenceConfig = x.inputReferenceConfig
this.inputReferenceProperties = x.inputReferenceProperties
this.name = x.name
this.updateTime = x.updateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.CollaborationIdNamespaceAssociation = CollaborationIdNamespaceAssociation(this)
/**
* construct an [aws.sdk.kotlin.services.cleanrooms.model.IdMappingConfig] inside the given [block]
*/
public fun idMappingConfig(block: aws.sdk.kotlin.services.cleanrooms.model.IdMappingConfig.Builder.() -> kotlin.Unit) {
this.idMappingConfig = aws.sdk.kotlin.services.cleanrooms.model.IdMappingConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceConfig] inside the given [block]
*/
public fun inputReferenceConfig(block: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceConfig.Builder.() -> kotlin.Unit) {
this.inputReferenceConfig = aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceProperties] inside the given [block]
*/
public fun inputReferenceProperties(block: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceProperties.Builder.() -> kotlin.Unit) {
this.inputReferenceProperties = aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceProperties.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (collaborationArn == null) collaborationArn = ""
if (collaborationId == null) collaborationId = ""
if (createTime == null) createTime = Instant.fromEpochSeconds(0)
if (creatorAccountId == null) creatorAccountId = ""
if (id == null) id = ""
if (name == null) name = ""
if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
return this
}
}
}