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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentActionGroupRequest.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 DeleteAgentActionGroupRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the action group to delete.
     */
    public val actionGroupId: kotlin.String? = builder.actionGroupId
    /**
     * The unique identifier of the agent that the action group belongs to.
     */
    public val agentId: kotlin.String? = builder.agentId
    /**
     * The version of the agent that the action group belongs to.
     */
    public val agentVersion: kotlin.String? = builder.agentVersion
    /**
     * By default, this value is `false` and deletion is stopped if the resource is in use. If you set it to `true`, the resource will be deleted even if the resource is in use.
     */
    public val skipResourceInUseCheck: kotlin.Boolean? = builder.skipResourceInUseCheck

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteAgentActionGroupRequest(")
        append("actionGroupId=$actionGroupId,")
        append("agentId=$agentId,")
        append("agentVersion=$agentVersion,")
        append("skipResourceInUseCheck=$skipResourceInUseCheck")
        append(")")
    }

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

        if (actionGroupId != other.actionGroupId) return false
        if (agentId != other.agentId) return false
        if (agentVersion != other.agentVersion) return false
        if (skipResourceInUseCheck != other.skipResourceInUseCheck) return false

        return true
    }

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

    public class Builder {
        /**
         * The unique identifier of the action group to delete.
         */
        public var actionGroupId: kotlin.String? = null
        /**
         * The unique identifier of the agent that the action group belongs to.
         */
        public var agentId: kotlin.String? = null
        /**
         * The version of the agent that the action group belongs to.
         */
        public var agentVersion: kotlin.String? = null
        /**
         * By default, this value is `false` and deletion is stopped if the resource is in use. If you set it to `true`, the resource will be deleted even if the resource is in use.
         */
        public var skipResourceInUseCheck: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentActionGroupRequest) : this() {
            this.actionGroupId = x.actionGroupId
            this.agentId = x.agentId
            this.agentVersion = x.agentVersion
            this.skipResourceInUseCheck = x.skipResourceInUseCheck
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy