All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.datazone.model.TermRelations.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The details of the term relations.
 */
public class TermRelations private constructor(builder: Builder) {
    /**
     * The classifies of the term relations.
     */
    public val classifies: List? = builder.classifies
    /**
     * The `isA` property of the term relations.
     */
    public val isA: List? = builder.isA

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.TermRelations = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("TermRelations(")
        append("classifies=$classifies,")
        append("isA=$isA")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = classifies?.hashCode() ?: 0
        result = 31 * result + (isA?.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 TermRelations

        if (classifies != other.classifies) return false
        if (isA != other.isA) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.TermRelations = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The classifies of the term relations.
         */
        public var classifies: List? = null
        /**
         * The `isA` property of the term relations.
         */
        public var isA: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.TermRelations) : this() {
            this.classifies = x.classifies
            this.isA = x.isA
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.datazone.model.TermRelations = TermRelations(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy