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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeConfiguration.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

/**
 * Contains configurations for a Retrieval node in a flow. This node retrieves data from the Amazon S3 location that you specify and returns it as the output.
 */
public class RetrievalFlowNodeConfiguration private constructor(builder: Builder) {
    /**
     * Contains configurations for the service to use for retrieving data to return as the output from the node.
     */
    public val serviceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeServiceConfiguration? = builder.serviceConfiguration

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

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

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

        if (serviceConfiguration != other.serviceConfiguration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Contains configurations for the service to use for retrieving data to return as the output from the node.
         */
        public var serviceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeServiceConfiguration? = null

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy