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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.CustomOrchestration.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 of custom orchestration.
 */
public class CustomOrchestration private constructor(builder: Builder) {
    /**
     * The structure of the executor invoking the actions in custom orchestration.
     */
    public val executor: aws.sdk.kotlin.services.bedrockagent.model.OrchestrationExecutor? = builder.executor

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

    override fun toString(): kotlin.String = buildString {
        append("CustomOrchestration(")
        append("executor=$executor")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = executor?.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 CustomOrchestration

        if (executor != other.executor) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The structure of the executor invoking the actions in custom orchestration.
         */
        public var executor: aws.sdk.kotlin.services.bedrockagent.model.OrchestrationExecutor? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.CustomOrchestration) : this() {
            this.executor = x.executor
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy