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

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

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

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



/**
 * Update Action Group Request
 */
public class UpdateAgentActionGroupRequest private constructor(builder: Builder) {
    /**
     * Type of Executors for an Action Group
     */
    public val actionGroupExecutor: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupExecutor? = builder.actionGroupExecutor
    /**
     * Id generated at the server side when an Action Group is created under Agent
     */
    public val actionGroupId: kotlin.String? = builder.actionGroupId
    /**
     * Name for a resource.
     */
    public val actionGroupName: kotlin.String? = builder.actionGroupName
    /**
     * State of the action group
     */
    public val actionGroupState: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupState? = builder.actionGroupState
    /**
     * Id generated at the server side when an Agent is created
     */
    public val agentId: kotlin.String? = builder.agentId
    /**
     * Draft Version of the Agent.
     */
    public val agentVersion: kotlin.String? = builder.agentVersion
    /**
     * Contains information about the API Schema for the Action Group
     */
    public val apiSchema: aws.sdk.kotlin.services.bedrockagent.model.ApiSchema? = builder.apiSchema
    /**
     * Description of the Resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Action Group Signature for a BuiltIn Action
     */
    public val parentActionGroupSignature: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature? = builder.parentActionGroupSignature

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAgentActionGroupRequest(")
        append("actionGroupExecutor=$actionGroupExecutor,")
        append("actionGroupId=$actionGroupId,")
        append("actionGroupName=$actionGroupName,")
        append("actionGroupState=$actionGroupState,")
        append("agentId=$agentId,")
        append("agentVersion=$agentVersion,")
        append("apiSchema=$apiSchema,")
        append("description=$description,")
        append("parentActionGroupSignature=$parentActionGroupSignature")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actionGroupExecutor?.hashCode() ?: 0
        result = 31 * result + (actionGroupId?.hashCode() ?: 0)
        result = 31 * result + (actionGroupName?.hashCode() ?: 0)
        result = 31 * result + (actionGroupState?.hashCode() ?: 0)
        result = 31 * result + (agentId?.hashCode() ?: 0)
        result = 31 * result + (agentVersion?.hashCode() ?: 0)
        result = 31 * result + (apiSchema?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (parentActionGroupSignature?.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 UpdateAgentActionGroupRequest

        if (actionGroupExecutor != other.actionGroupExecutor) return false
        if (actionGroupId != other.actionGroupId) return false
        if (actionGroupName != other.actionGroupName) return false
        if (actionGroupState != other.actionGroupState) return false
        if (agentId != other.agentId) return false
        if (agentVersion != other.agentVersion) return false
        if (apiSchema != other.apiSchema) return false
        if (description != other.description) return false
        if (parentActionGroupSignature != other.parentActionGroupSignature) return false

        return true
    }

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

    public class Builder {
        /**
         * Type of Executors for an Action Group
         */
        public var actionGroupExecutor: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupExecutor? = null
        /**
         * Id generated at the server side when an Action Group is created under Agent
         */
        public var actionGroupId: kotlin.String? = null
        /**
         * Name for a resource.
         */
        public var actionGroupName: kotlin.String? = null
        /**
         * State of the action group
         */
        public var actionGroupState: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupState? = null
        /**
         * Id generated at the server side when an Agent is created
         */
        public var agentId: kotlin.String? = null
        /**
         * Draft Version of the Agent.
         */
        public var agentVersion: kotlin.String? = null
        /**
         * Contains information about the API Schema for the Action Group
         */
        public var apiSchema: aws.sdk.kotlin.services.bedrockagent.model.ApiSchema? = null
        /**
         * Description of the Resource.
         */
        public var description: kotlin.String? = null
        /**
         * Action Group Signature for a BuiltIn Action
         */
        public var parentActionGroupSignature: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentActionGroupRequest) : this() {
            this.actionGroupExecutor = x.actionGroupExecutor
            this.actionGroupId = x.actionGroupId
            this.actionGroupName = x.actionGroupName
            this.actionGroupState = x.actionGroupState
            this.agentId = x.agentId
            this.agentVersion = x.agentVersion
            this.apiSchema = x.apiSchema
            this.description = x.description
            this.parentActionGroupSignature = x.parentActionGroupSignature
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy