
commonMain.aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentKnowledgeBaseRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
/**
* Update Agent Knowledge Base Request
*/
public class UpdateAgentKnowledgeBaseRequest private constructor(builder: Builder) {
/**
* 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
/**
* Description of the Resource.
*/
public val description: kotlin.String? = builder.description
/**
* Id generated at the server side when a Knowledge Base is associated to an Agent
*/
public val knowledgeBaseId: kotlin.String? = builder.knowledgeBaseId
/**
* State of the knowledge base; whether it is enabled or disabled
*/
public val knowledgeBaseState: aws.sdk.kotlin.services.bedrockagent.model.KnowledgeBaseState? = builder.knowledgeBaseState
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentKnowledgeBaseRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAgentKnowledgeBaseRequest(")
append("agentId=$agentId,")
append("agentVersion=$agentVersion,")
append("description=$description,")
append("knowledgeBaseId=$knowledgeBaseId,")
append("knowledgeBaseState=$knowledgeBaseState")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agentId?.hashCode() ?: 0
result = 31 * result + (agentVersion?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (knowledgeBaseId?.hashCode() ?: 0)
result = 31 * result + (knowledgeBaseState?.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 UpdateAgentKnowledgeBaseRequest
if (agentId != other.agentId) return false
if (agentVersion != other.agentVersion) return false
if (description != other.description) return false
if (knowledgeBaseId != other.knowledgeBaseId) return false
if (knowledgeBaseState != other.knowledgeBaseState) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentKnowledgeBaseRequest = Builder(this).apply(block).build()
public class Builder {
/**
* 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
/**
* Description of the Resource.
*/
public var description: kotlin.String? = null
/**
* Id generated at the server side when a Knowledge Base is associated to an Agent
*/
public var knowledgeBaseId: kotlin.String? = null
/**
* State of the knowledge base; whether it is enabled or disabled
*/
public var knowledgeBaseState: aws.sdk.kotlin.services.bedrockagent.model.KnowledgeBaseState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentKnowledgeBaseRequest) : this() {
this.agentId = x.agentId
this.agentVersion = x.agentVersion
this.description = x.description
this.knowledgeBaseId = x.knowledgeBaseId
this.knowledgeBaseState = x.knowledgeBaseState
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentKnowledgeBaseRequest = UpdateAgentKnowledgeBaseRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy