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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.DuplicateConnectionsFlowValidationDetails.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.bedrockagent.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Details about duplicate connections found between two nodes in the flow.
 */
public class DuplicateConnectionsFlowValidationDetails private constructor(builder: Builder) {
    /**
     * The name of the source node where the duplicate connection starts.
     */
    public val source: kotlin.String = requireNotNull(builder.source) { "A non-null value must be provided for source" }
    /**
     * The name of the target node where the duplicate connection ends.
     */
    public val target: kotlin.String = requireNotNull(builder.target) { "A non-null value must be provided for target" }

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

    override fun toString(): kotlin.String = buildString {
        append("DuplicateConnectionsFlowValidationDetails(")
        append("source=$source,")
        append("target=$target")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = source.hashCode()
        result = 31 * result + (target.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 DuplicateConnectionsFlowValidationDetails

        if (source != other.source) return false
        if (target != other.target) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the source node where the duplicate connection starts.
         */
        public var source: kotlin.String? = null
        /**
         * The name of the target node where the duplicate connection ends.
         */
        public var target: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.DuplicateConnectionsFlowValidationDetails) : this() {
            this.source = x.source
            this.target = x.target
        }

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

        internal fun correctErrors(): Builder {
            if (source == null) source = ""
            if (target == null) target = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy