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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.time.Instant

/**
 * History event for an alias for an Agent.
 */
public class AgentAliasHistoryEvent private constructor(builder: Builder) {
    /**
     * Time Stamp.
     */
    public val endDate: aws.smithy.kotlin.runtime.time.Instant? = builder.endDate
    /**
     * Routing configuration for an Agent alias.
     */
    public val routingConfiguration: List? = builder.routingConfiguration
    /**
     * Time Stamp.
     */
    public val startDate: aws.smithy.kotlin.runtime.time.Instant? = builder.startDate

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

    override fun toString(): kotlin.String = buildString {
        append("AgentAliasHistoryEvent(")
        append("endDate=$endDate,")
        append("routingConfiguration=$routingConfiguration,")
        append("startDate=$startDate")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = endDate?.hashCode() ?: 0
        result = 31 * result + (routingConfiguration?.hashCode() ?: 0)
        result = 31 * result + (startDate?.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 AgentAliasHistoryEvent

        if (endDate != other.endDate) return false
        if (routingConfiguration != other.routingConfiguration) return false
        if (startDate != other.startDate) return false

        return true
    }

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

    public class Builder {
        /**
         * Time Stamp.
         */
        public var endDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Routing configuration for an Agent alias.
         */
        public var routingConfiguration: List? = null
        /**
         * Time Stamp.
         */
        public var startDate: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.AgentAliasHistoryEvent) : this() {
            this.endDate = x.endDate
            this.routingConfiguration = x.routingConfiguration
            this.startDate = x.startDate
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy