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

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

/**
 * A location for storing content from data sources temporarily as it is processed by custom components in the ingestion pipeline.
 */
public class IntermediateStorage private constructor(builder: Builder) {
    /**
     * An S3 bucket path.
     */
    public val s3Location: aws.sdk.kotlin.services.bedrockagent.model.S3Location? = builder.s3Location

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

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

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

        if (s3Location != other.s3Location) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An S3 bucket path.
         */
        public var s3Location: aws.sdk.kotlin.services.bedrockagent.model.S3Location? = null

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

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

        /**
         * construct an [aws.sdk.kotlin.services.bedrockagent.model.S3Location] inside the given [block]
         */
        public fun s3Location(block: aws.sdk.kotlin.services.bedrockagent.model.S3Location.Builder.() -> kotlin.Unit) {
            this.s3Location = aws.sdk.kotlin.services.bedrockagent.model.S3Location.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy