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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Contains the information of an Agent Action Group
 */
public class AgentActionGroup private constructor(builder: Builder) {
    /**
     * Type of Executors for an Action Group
     */
    public val actionGroupExecutor: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupExecutor? = builder.actionGroupExecutor
    /**
     * Identifier for a resource.
     */
    public val actionGroupId: kotlin.String = requireNotNull(builder.actionGroupId) { "A non-null value must be provided for actionGroupId" }
    /**
     * Name for a resource.
     */
    public val actionGroupName: kotlin.String = requireNotNull(builder.actionGroupName) { "A non-null value must be provided for actionGroupName" }
    /**
     * State of the action group
     */
    public val actionGroupState: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupState = requireNotNull(builder.actionGroupState) { "A non-null value must be provided for actionGroupState" }
    /**
     * Identifier for a resource.
     */
    public val agentId: kotlin.String = requireNotNull(builder.agentId) { "A non-null value must be provided for agentId" }
    /**
     * Agent Version.
     */
    public val agentVersion: kotlin.String = requireNotNull(builder.agentVersion) { "A non-null value must be provided for agentVersion" }
    /**
     * Contains information about the API Schema for the Action Group
     */
    public val apiSchema: aws.sdk.kotlin.services.bedrockagent.model.ApiSchema? = builder.apiSchema
    /**
     * Client specified token used for idempotency checks
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * Time Stamp.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createdAt) { "A non-null value must be provided for createdAt" }
    /**
     * Description of the Resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Action Group Signature for a BuiltIn Action
     */
    public val parentActionSignature: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature? = builder.parentActionSignature
    /**
     * Time Stamp.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updatedAt) { "A non-null value must be provided for updatedAt" }

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

    override fun toString(): kotlin.String = buildString {
        append("AgentActionGroup(")
        append("actionGroupExecutor=$actionGroupExecutor,")
        append("actionGroupId=$actionGroupId,")
        append("actionGroupName=$actionGroupName,")
        append("actionGroupState=$actionGroupState,")
        append("agentId=$agentId,")
        append("agentVersion=$agentVersion,")
        append("apiSchema=$apiSchema,")
        append("clientToken=$clientToken,")
        append("createdAt=$createdAt,")
        append("description=$description,")
        append("parentActionSignature=$parentActionSignature,")
        append("updatedAt=$updatedAt")
        append(")")
    }

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

        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 (clientToken != other.clientToken) return false
        if (createdAt != other.createdAt) return false
        if (description != other.description) return false
        if (parentActionSignature != other.parentActionSignature) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.AgentActionGroup = 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
        /**
         * Identifier for a resource.
         */
        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
        /**
         * Identifier for a resource.
         */
        public var agentId: kotlin.String? = null
        /**
         * Agent Version.
         */
        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
        /**
         * Client specified token used for idempotency checks
         */
        public var clientToken: kotlin.String? = null
        /**
         * Time Stamp.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Description of the Resource.
         */
        public var description: kotlin.String? = null
        /**
         * Action Group Signature for a BuiltIn Action
         */
        public var parentActionSignature: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature? = null
        /**
         * Time Stamp.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.AgentActionGroup) : 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.clientToken = x.clientToken
            this.createdAt = x.createdAt
            this.description = x.description
            this.parentActionSignature = x.parentActionSignature
            this.updatedAt = x.updatedAt
        }

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

        internal fun correctErrors(): Builder {
            if (actionGroupId == null) actionGroupId = ""
            if (actionGroupName == null) actionGroupName = ""
            if (actionGroupState == null) actionGroupState = ActionGroupState.SdkUnknown("no value provided")
            if (agentId == null) agentId = ""
            if (agentVersion == null) agentVersion = ""
            if (createdAt == null) createdAt = Instant.fromEpochSeconds(0)
            if (updatedAt == null) updatedAt = Instant.fromEpochSeconds(0)
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy