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

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

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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



public class DeleteAgentAliasRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the alias to delete.
     */
    public val agentAliasId: kotlin.String? = builder.agentAliasId
    /**
     * The unique identifier of the agent that the alias belongs to.
     */
    public val agentId: kotlin.String? = builder.agentId

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * The unique identifier of the alias to delete.
         */
        public var agentAliasId: kotlin.String? = 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.DeleteAgentAliasRequest) : this() {
            this.agentAliasId = x.agentAliasId
            this.agentId = x.agentId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy