
commonMain.aws.sdk.kotlin.services.rekognition.model.UpdateDatasetEntriesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateDatasetEntriesRequest private constructor(builder: Builder) {
/**
* The changes that you want to make to the dataset.
*/
public val changes: aws.sdk.kotlin.services.rekognition.model.DatasetChanges? = builder.changes
/**
* The Amazon Resource Name (ARN) of the dataset that you want to update.
*/
public val datasetArn: kotlin.String? = builder.datasetArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.UpdateDatasetEntriesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDatasetEntriesRequest(")
append("changes=$changes,")
append("datasetArn=$datasetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changes?.hashCode() ?: 0
result = 31 * result + (datasetArn?.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 UpdateDatasetEntriesRequest
if (changes != other.changes) return false
if (datasetArn != other.datasetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.UpdateDatasetEntriesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The changes that you want to make to the dataset.
*/
public var changes: aws.sdk.kotlin.services.rekognition.model.DatasetChanges? = null
/**
* The Amazon Resource Name (ARN) of the dataset that you want to update.
*/
public var datasetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.UpdateDatasetEntriesRequest) : this() {
this.changes = x.changes
this.datasetArn = x.datasetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.UpdateDatasetEntriesRequest = UpdateDatasetEntriesRequest(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.DatasetChanges] inside the given [block]
*/
public fun changes(block: aws.sdk.kotlin.services.rekognition.model.DatasetChanges.Builder.() -> kotlin.Unit) {
this.changes = aws.sdk.kotlin.services.rekognition.model.DatasetChanges.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy