
commonMain.aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* ActionGroup Summary
*/
public class ActionGroupSummary private constructor(builder: Builder) {
/**
* Identifier for a resource.
*/
public val actionGroupId: kotlin.String = requireNotNull(builder.actionGroupId) { "A non-null value must be provided for actionGroupId" }
/**
* Name for a resource.
*/
public val actionGroupName: kotlin.String = requireNotNull(builder.actionGroupName) { "A non-null value must be provided for actionGroupName" }
/**
* State of the action group
*/
public val actionGroupState: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupState = requireNotNull(builder.actionGroupState) { "A non-null value must be provided for actionGroupState" }
/**
* Description of the Resource.
*/
public val description: kotlin.String? = builder.description
/**
* Time Stamp.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updatedAt) { "A non-null value must be provided for updatedAt" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionGroupSummary(")
append("actionGroupId=$actionGroupId,")
append("actionGroupName=$actionGroupName,")
append("actionGroupState=$actionGroupState,")
append("description=$description,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionGroupId.hashCode()
result = 31 * result + (actionGroupName.hashCode())
result = 31 * result + (actionGroupState.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (updatedAt.hashCode())
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 ActionGroupSummary
if (actionGroupId != other.actionGroupId) return false
if (actionGroupName != other.actionGroupName) return false
if (actionGroupState != other.actionGroupState) return false
if (description != other.description) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Identifier for a resource.
*/
public var actionGroupId: kotlin.String? = 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
/**
* Description of the Resource.
*/
public var description: kotlin.String? = null
/**
* Time Stamp.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSummary) : this() {
this.actionGroupId = x.actionGroupId
this.actionGroupName = x.actionGroupName
this.actionGroupState = x.actionGroupState
this.description = x.description
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSummary = ActionGroupSummary(this)
internal fun correctErrors(): Builder {
if (actionGroupId == null) actionGroupId = ""
if (actionGroupName == null) actionGroupName = ""
if (actionGroupState == null) actionGroupState = ActionGroupState.SdkUnknown("no value provided")
if (updatedAt == null) updatedAt = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy