
commonMain.aws.sdk.kotlin.services.comprehend.model.EntityRecognizerSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describes the information about an entity recognizer and its versions.
*/
public class EntityRecognizerSummary private constructor(builder: Builder) {
/**
* The time that the latest entity recognizer version was submitted for processing.
*/
public val latestVersionCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.latestVersionCreatedAt
/**
* The version name you assigned to the latest entity recognizer version.
*/
public val latestVersionName: kotlin.String? = builder.latestVersionName
/**
* Provides the status of the latest entity recognizer version.
*/
public val latestVersionStatus: aws.sdk.kotlin.services.comprehend.model.ModelStatus? = builder.latestVersionStatus
/**
* The number of versions you created.
*/
public val numberOfVersions: kotlin.Int? = builder.numberOfVersions
/**
* The name that you assigned the entity recognizer.
*/
public val recognizerName: kotlin.String? = builder.recognizerName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.EntityRecognizerSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EntityRecognizerSummary(")
append("latestVersionCreatedAt=$latestVersionCreatedAt,")
append("latestVersionName=$latestVersionName,")
append("latestVersionStatus=$latestVersionStatus,")
append("numberOfVersions=$numberOfVersions,")
append("recognizerName=$recognizerName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = latestVersionCreatedAt?.hashCode() ?: 0
result = 31 * result + (latestVersionName?.hashCode() ?: 0)
result = 31 * result + (latestVersionStatus?.hashCode() ?: 0)
result = 31 * result + (numberOfVersions ?: 0)
result = 31 * result + (recognizerName?.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 EntityRecognizerSummary
if (latestVersionCreatedAt != other.latestVersionCreatedAt) return false
if (latestVersionName != other.latestVersionName) return false
if (latestVersionStatus != other.latestVersionStatus) return false
if (numberOfVersions != other.numberOfVersions) return false
if (recognizerName != other.recognizerName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.EntityRecognizerSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The time that the latest entity recognizer version was submitted for processing.
*/
public var latestVersionCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The version name you assigned to the latest entity recognizer version.
*/
public var latestVersionName: kotlin.String? = null
/**
* Provides the status of the latest entity recognizer version.
*/
public var latestVersionStatus: aws.sdk.kotlin.services.comprehend.model.ModelStatus? = null
/**
* The number of versions you created.
*/
public var numberOfVersions: kotlin.Int? = null
/**
* The name that you assigned the entity recognizer.
*/
public var recognizerName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.EntityRecognizerSummary) : this() {
this.latestVersionCreatedAt = x.latestVersionCreatedAt
this.latestVersionName = x.latestVersionName
this.latestVersionStatus = x.latestVersionStatus
this.numberOfVersions = x.numberOfVersions
this.recognizerName = x.recognizerName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.EntityRecognizerSummary = EntityRecognizerSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy