commonMain.aws.sdk.kotlin.services.textract.model.AdapterOverview.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
/**
* Contains information on the adapter, including the adapter ID, Name, Creation time, and feature types.
*/
public class AdapterOverview private constructor(builder: Builder) {
/**
* A unique identifier for the adapter resource.
*/
public val adapterId: kotlin.String? = builder.adapterId
/**
* A string naming the adapter resource.
*/
public val adapterName: kotlin.String? = builder.adapterName
/**
* The date and time that the adapter was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The feature types that the adapter is operating on.
*/
public val featureTypes: List? = builder.featureTypes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.AdapterOverview = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AdapterOverview(")
append("adapterId=$adapterId,")
append("adapterName=$adapterName,")
append("creationTime=$creationTime,")
append("featureTypes=$featureTypes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adapterId?.hashCode() ?: 0
result = 31 * result + (adapterName?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (featureTypes?.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 AdapterOverview
if (adapterId != other.adapterId) return false
if (adapterName != other.adapterName) return false
if (creationTime != other.creationTime) return false
if (featureTypes != other.featureTypes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.AdapterOverview = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the adapter resource.
*/
public var adapterId: kotlin.String? = null
/**
* A string naming the adapter resource.
*/
public var adapterName: kotlin.String? = null
/**
* The date and time that the adapter was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The feature types that the adapter is operating on.
*/
public var featureTypes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.AdapterOverview) : this() {
this.adapterId = x.adapterId
this.adapterName = x.adapterName
this.creationTime = x.creationTime
this.featureTypes = x.featureTypes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.AdapterOverview = AdapterOverview(this)
internal fun correctErrors(): Builder {
return this
}
}
}