commonMain.aws.sdk.kotlin.services.bedrockagent.model.CreateAgentAliasResponse.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 CreateAgentAliasResponse private constructor(builder: Builder) {
/**
* Contains details about the alias that was created.
*/
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.CreateAgentAliasResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAgentAliasResponse(")
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 CreateAgentAliasResponse
if (agentAlias != other.agentAlias) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.CreateAgentAliasResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Contains details about the alias that was created.
*/
public var agentAlias: aws.sdk.kotlin.services.bedrockagent.model.AgentAlias? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.CreateAgentAliasResponse) : this() {
this.agentAlias = x.agentAlias
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.CreateAgentAliasResponse = CreateAgentAliasResponse(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
}
}
}