commonMain.aws.sdk.kotlin.services.textract.model.GetAdapterResponse.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
public class GetAdapterResponse private constructor(builder: Builder) {
/**
* A string identifying the adapter that information has been retrieved for.
*/
public val adapterId: kotlin.String? = builder.adapterId
/**
* The name of the requested adapter.
*/
public val adapterName: kotlin.String? = builder.adapterName
/**
* Binary value indicating if the adapter is being automatically updated or not.
*/
public val autoUpdate: aws.sdk.kotlin.services.textract.model.AutoUpdate? = builder.autoUpdate
/**
* The date and time the requested adapter was created at.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The description for the requested adapter.
*/
public val description: kotlin.String? = builder.description
/**
* List of the targeted feature types for the requested adapter.
*/
public val featureTypes: List? = builder.featureTypes
/**
* A set of tags (key-value pairs) associated with the adapter that has been retrieved.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.GetAdapterResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAdapterResponse(")
append("adapterId=$adapterId,")
append("adapterName=$adapterName,")
append("autoUpdate=$autoUpdate,")
append("creationTime=$creationTime,")
append("description=$description,")
append("featureTypes=$featureTypes,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adapterId?.hashCode() ?: 0
result = 31 * result + (adapterName?.hashCode() ?: 0)
result = 31 * result + (autoUpdate?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (featureTypes?.hashCode() ?: 0)
result = 31 * result + (tags?.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 GetAdapterResponse
if (adapterId != other.adapterId) return false
if (adapterName != other.adapterName) return false
if (autoUpdate != other.autoUpdate) return false
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (featureTypes != other.featureTypes) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.GetAdapterResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A string identifying the adapter that information has been retrieved for.
*/
public var adapterId: kotlin.String? = null
/**
* The name of the requested adapter.
*/
public var adapterName: kotlin.String? = null
/**
* Binary value indicating if the adapter is being automatically updated or not.
*/
public var autoUpdate: aws.sdk.kotlin.services.textract.model.AutoUpdate? = null
/**
* The date and time the requested adapter was created at.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description for the requested adapter.
*/
public var description: kotlin.String? = null
/**
* List of the targeted feature types for the requested adapter.
*/
public var featureTypes: List? = null
/**
* A set of tags (key-value pairs) associated with the adapter that has been retrieved.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.GetAdapterResponse) : this() {
this.adapterId = x.adapterId
this.adapterName = x.adapterName
this.autoUpdate = x.autoUpdate
this.creationTime = x.creationTime
this.description = x.description
this.featureTypes = x.featureTypes
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.GetAdapterResponse = GetAdapterResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}