commonMain.aws.sdk.kotlin.services.textract.model.AdapterVersionOverview.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of textract-jvm Show documentation
Show all versions of textract-jvm Show documentation
The AWS SDK for Kotlin client for Textract
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.textract.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Summary info for an adapter version. Contains information on the AdapterId, AdapterVersion, CreationTime, FeatureTypes, and Status.
*/
public class AdapterVersionOverview private constructor(builder: Builder) {
/**
* A unique identifier for the adapter associated with a given adapter version.
*/
public val adapterId: kotlin.String? = builder.adapterId
/**
* An identified for a given adapter version.
*/
public val adapterVersion: kotlin.String? = builder.adapterVersion
/**
* The date and time that a given adapter version was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The feature types that the adapter version is operating on.
*/
public val featureTypes: List? = builder.featureTypes
/**
* Contains information on the status of a given adapter version.
*/
public val status: aws.sdk.kotlin.services.textract.model.AdapterVersionStatus? = builder.status
/**
* A message explaining the status of a given adapter vesion.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.AdapterVersionOverview = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AdapterVersionOverview(")
append("adapterId=$adapterId,")
append("adapterVersion=$adapterVersion,")
append("creationTime=$creationTime,")
append("featureTypes=$featureTypes,")
append("status=$status,")
append("statusMessage=$statusMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adapterId?.hashCode() ?: 0
result = 31 * result + (adapterVersion?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (featureTypes?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.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 AdapterVersionOverview
if (adapterId != other.adapterId) return false
if (adapterVersion != other.adapterVersion) return false
if (creationTime != other.creationTime) return false
if (featureTypes != other.featureTypes) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.AdapterVersionOverview = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the adapter associated with a given adapter version.
*/
public var adapterId: kotlin.String? = null
/**
* An identified for a given adapter version.
*/
public var adapterVersion: kotlin.String? = null
/**
* The date and time that a given adapter version was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The feature types that the adapter version is operating on.
*/
public var featureTypes: List? = null
/**
* Contains information on the status of a given adapter version.
*/
public var status: aws.sdk.kotlin.services.textract.model.AdapterVersionStatus? = null
/**
* A message explaining the status of a given adapter vesion.
*/
public var statusMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.AdapterVersionOverview) : this() {
this.adapterId = x.adapterId
this.adapterVersion = x.adapterVersion
this.creationTime = x.creationTime
this.featureTypes = x.featureTypes
this.status = x.status
this.statusMessage = x.statusMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.AdapterVersionOverview = AdapterVersionOverview(this)
internal fun correctErrors(): Builder {
return this
}
}
}