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

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

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



/**
 * Update Agent Alias Request
 */
public class UpdateAgentAliasRequest private constructor(builder: Builder) {
    /**
     * Id generated at the server side when an Agent Alias is created
     */
    public val agentAliasId: kotlin.String? = builder.agentAliasId
    /**
     * Name for a resource.
     */
    public val agentAliasName: kotlin.String? = builder.agentAliasName
    /**
     * Id generated at the server side when an Agent is created
     */
    public val agentId: kotlin.String? = builder.agentId
    /**
     * Description of the Resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Routing configuration for an Agent 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()

    public class Builder {
        /**
         * Id generated at the server side when an Agent Alias is created
         */
        public var agentAliasId: kotlin.String? = null
        /**
         * Name for a resource.
         */
        public var agentAliasName: kotlin.String? = null
        /**
         * Id generated at the server side when an Agent is created
         */
        public var agentId: kotlin.String? = null
        /**
         * Description of the Resource.
         */
        public var description: kotlin.String? = null
        /**
         * Routing configuration for an Agent 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 - 2025 Weber Informatics LLC | Privacy Policy