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

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

public class UpdateAgentAliasRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the alias.
     */
    public val agentAliasId: kotlin.String? = builder.agentAliasId
    /**
     * Specifies a new name for the alias.
     */
    public val agentAliasName: kotlin.String? = builder.agentAliasName
    /**
     * The unique identifier of the agent.
     */
    public val agentId: kotlin.String? = builder.agentId
    /**
     * Specifies a new description for the alias.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Contains details about the routing configuration of the alias.
     */
    public val routingConfiguration: List? = builder.routingConfiguration

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAgentAliasRequest(")
        append("agentAliasId=$agentAliasId,")
        append("agentAliasName=$agentAliasName,")
        append("agentId=$agentId,")
        append("description=$description,")
        append("routingConfiguration=$routingConfiguration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = agentAliasId?.hashCode() ?: 0
        result = 31 * result + (agentAliasName?.hashCode() ?: 0)
        result = 31 * result + (agentId?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (routingConfiguration?.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 UpdateAgentAliasRequest

        if (agentAliasId != other.agentAliasId) return false
        if (agentAliasName != other.agentAliasName) return false
        if (agentId != other.agentId) return false
        if (description != other.description) return false
        if (routingConfiguration != other.routingConfiguration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier of the alias.
         */
        public var agentAliasId: kotlin.String? = null
        /**
         * Specifies a new name for the alias.
         */
        public var agentAliasName: kotlin.String? = null
        /**
         * The unique identifier of the agent.
         */
        public var agentId: kotlin.String? = null
        /**
         * Specifies a new description for the alias.
         */
        public var description: kotlin.String? = null
        /**
         * Contains details about the routing configuration of the alias.
         */
        public var routingConfiguration: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentAliasRequest) : this() {
            this.agentAliasId = x.agentAliasId
            this.agentAliasName = x.agentAliasName
            this.agentId = x.agentId
            this.description = x.description
            this.routingConfiguration = x.routingConfiguration
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy