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

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

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

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



/**
 * Create Agent Alias Request
 */
public class CreateAgentAliasRequest private constructor(builder: Builder) {
    /**
     * 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
    /**
     * Client specified token used for idempotency checks
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * Description of the Resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Routing configuration for an Agent alias.
     */
    public val routingConfiguration: List? = builder.routingConfiguration
    /**
     * A map of tag keys and values
     */
    public val tags: Map? = builder.tags

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * 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
        /**
         * Client specified token used for idempotency checks
         */
        public var clientToken: kotlin.String? = null
        /**
         * Description of the Resource.
         */
        public var description: kotlin.String? = null
        /**
         * Routing configuration for an Agent alias.
         */
        public var routingConfiguration: List? = null
        /**
         * A map of tag keys and values
         */
        public var tags: Map? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy