commonMain.aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentAliasResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
public class UpdateAgentAliasResponse private constructor(builder: Builder) {
/**
* Contains details about the alias that was updated.
*/
public val agentAlias: aws.sdk.kotlin.services.bedrockagent.model.AgentAlias? = builder.agentAlias
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentAliasResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAgentAliasResponse(")
append("agentAlias=$agentAlias")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agentAlias?.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 UpdateAgentAliasResponse
if (agentAlias != other.agentAlias) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentAliasResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Contains details about the alias that was updated.
*/
public var agentAlias: aws.sdk.kotlin.services.bedrockagent.model.AgentAlias? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentAliasResponse) : this() {
this.agentAlias = x.agentAlias
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.UpdateAgentAliasResponse = UpdateAgentAliasResponse(this)
/**
* construct an [aws.sdk.kotlin.services.bedrockagent.model.AgentAlias] inside the given [block]
*/
public fun agentAlias(block: aws.sdk.kotlin.services.bedrockagent.model.AgentAlias.Builder.() -> kotlin.Unit) {
this.agentAlias = aws.sdk.kotlin.services.bedrockagent.model.AgentAlias.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}