commonMain.aws.sdk.kotlin.services.bedrockagent.model.AgentAliasHistoryEvent.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
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Contains details about the history of the alias.
*/
public class AgentAliasHistoryEvent private constructor(builder: Builder) {
/**
* The date that the alias stopped being associated to the version in the `routingConfiguration` object
*/
public val endDate: aws.smithy.kotlin.runtime.time.Instant? = builder.endDate
/**
* Contains details about the version of the agent with which the alias is associated.
*/
public val routingConfiguration: List? = builder.routingConfiguration
/**
* The date that the alias began being associated to the version in the `routingConfiguration` object.
*/
public val startDate: aws.smithy.kotlin.runtime.time.Instant? = builder.startDate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.AgentAliasHistoryEvent = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AgentAliasHistoryEvent(")
append("endDate=$endDate,")
append("routingConfiguration=$routingConfiguration,")
append("startDate=$startDate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endDate?.hashCode() ?: 0
result = 31 * result + (routingConfiguration?.hashCode() ?: 0)
result = 31 * result + (startDate?.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 AgentAliasHistoryEvent
if (endDate != other.endDate) return false
if (routingConfiguration != other.routingConfiguration) return false
if (startDate != other.startDate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.AgentAliasHistoryEvent = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date that the alias stopped being associated to the version in the `routingConfiguration` object
*/
public var endDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Contains details about the version of the agent with which the alias is associated.
*/
public var routingConfiguration: List? = null
/**
* The date that the alias began being associated to the version in the `routingConfiguration` object.
*/
public var startDate: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.AgentAliasHistoryEvent) : this() {
this.endDate = x.endDate
this.routingConfiguration = x.routingConfiguration
this.startDate = x.startDate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.AgentAliasHistoryEvent = AgentAliasHistoryEvent(this)
internal fun correctErrors(): Builder {
return this
}
}
}