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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentAliasResponse.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 DeleteAgentAliasResponse private constructor(builder: Builder) {
    /**
     * The unique identifier of the alias that was deleted.
     */
    public val agentAliasId: kotlin.String = requireNotNull(builder.agentAliasId) { "A non-null value must be provided for agentAliasId" }
    /**
     * The status of the alias.
     */
    public val agentAliasStatus: aws.sdk.kotlin.services.bedrockagent.model.AgentAliasStatus = requireNotNull(builder.agentAliasStatus) { "A non-null value must be provided for agentAliasStatus" }
    /**
     * The unique identifier of the agent that the alias belongs to.
     */
    public val agentId: kotlin.String = requireNotNull(builder.agentId) { "A non-null value must be provided for agentId" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteAgentAliasResponse(")
        append("agentAliasId=$agentAliasId,")
        append("agentAliasStatus=$agentAliasStatus,")
        append("agentId=$agentId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = agentAliasId.hashCode()
        result = 31 * result + (agentAliasStatus.hashCode())
        result = 31 * result + (agentId.hashCode())
        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 DeleteAgentAliasResponse

        if (agentAliasId != other.agentAliasId) return false
        if (agentAliasStatus != other.agentAliasStatus) return false
        if (agentId != other.agentId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier of the alias that was deleted.
         */
        public var agentAliasId: kotlin.String? = null
        /**
         * The status of the alias.
         */
        public var agentAliasStatus: aws.sdk.kotlin.services.bedrockagent.model.AgentAliasStatus? = null
        /**
         * The unique identifier of the agent that the alias belongs to.
         */
        public var agentId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentAliasResponse) : this() {
            this.agentAliasId = x.agentAliasId
            this.agentAliasStatus = x.agentAliasStatus
            this.agentId = x.agentId
        }

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

        internal fun correctErrors(): Builder {
            if (agentAliasId == null) agentAliasId = ""
            if (agentAliasStatus == null) agentAliasStatus = AgentAliasStatus.SdkUnknown("no value provided")
            if (agentId == null) agentId = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy