commonMain.aws.sdk.kotlin.services.textract.model.UpdateAdapterRequest.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
public class UpdateAdapterRequest private constructor(builder: Builder) {
/**
* A string containing a unique ID for the adapter that will be updated.
*/
public val adapterId: kotlin.String? = builder.adapterId
/**
* The new name to be applied to the adapter.
*/
public val adapterName: kotlin.String? = builder.adapterName
/**
* The new auto-update status to be applied to the adapter.
*/
public val autoUpdate: aws.sdk.kotlin.services.textract.model.AutoUpdate? = builder.autoUpdate
/**
* The new description to be applied to the adapter.
*/
public val description: kotlin.String? = builder.description
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.UpdateAdapterRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAdapterRequest(")
append("adapterId=$adapterId,")
append("adapterName=$adapterName,")
append("autoUpdate=$autoUpdate,")
append("description=$description")
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 + (description?.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 UpdateAdapterRequest
if (adapterId != other.adapterId) return false
if (adapterName != other.adapterName) return false
if (autoUpdate != other.autoUpdate) return false
if (description != other.description) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.UpdateAdapterRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A string containing a unique ID for the adapter that will be updated.
*/
public var adapterId: kotlin.String? = null
/**
* The new name to be applied to the adapter.
*/
public var adapterName: kotlin.String? = null
/**
* The new auto-update status to be applied to the adapter.
*/
public var autoUpdate: aws.sdk.kotlin.services.textract.model.AutoUpdate? = null
/**
* The new description to be applied to the adapter.
*/
public var description: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.UpdateAdapterRequest) : this() {
this.adapterId = x.adapterId
this.adapterName = x.adapterName
this.autoUpdate = x.autoUpdate
this.description = x.description
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.UpdateAdapterRequest = UpdateAdapterRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}