
commonMain.aws.sdk.kotlin.services.bedrockagent.model.CreateAgentActionGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
/**
* Create Action Group Request
*/
public class CreateAgentActionGroupRequest private constructor(builder: Builder) {
/**
* Type of Executors for an Action Group
*/
public val actionGroupExecutor: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupExecutor? = builder.actionGroupExecutor
/**
* 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
/**
* Client specified token used for idempotency checks
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* 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.CreateAgentActionGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAgentActionGroupRequest(")
append("actionGroupExecutor=$actionGroupExecutor,")
append("actionGroupName=$actionGroupName,")
append("actionGroupState=$actionGroupState,")
append("agentId=$agentId,")
append("agentVersion=$agentVersion,")
append("apiSchema=$apiSchema,")
append("clientToken=$clientToken,")
append("description=$description,")
append("parentActionGroupSignature=$parentActionGroupSignature")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionGroupExecutor?.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 + (clientToken?.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 CreateAgentActionGroupRequest
if (actionGroupExecutor != other.actionGroupExecutor) 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 (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.CreateAgentActionGroupRequest = 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
/**
* 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
/**
* Client specified token used for idempotency checks
*/
public var clientToken: kotlin.String? = 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.CreateAgentActionGroupRequest) : this() {
this.actionGroupExecutor = x.actionGroupExecutor
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.description = x.description
this.parentActionGroupSignature = x.parentActionGroupSignature
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.CreateAgentActionGroupRequest = CreateAgentActionGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy