commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.DetectedField.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An inferred field.
*/
public class DetectedField private constructor(builder: Builder) {
/**
* The field's confidence.
*/
public val confidence: aws.sdk.kotlin.services.lookoutmetrics.model.Confidence? = builder.confidence
/**
* The field's message.
*/
public val message: kotlin.String? = builder.message
/**
* The field's value.
*/
public val value: aws.sdk.kotlin.services.lookoutmetrics.model.AttributeValue? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.DetectedField = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectedField(")
append("confidence=$confidence,")
append("message=$message,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = confidence?.hashCode() ?: 0
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (value?.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 DetectedField
if (confidence != other.confidence) return false
if (message != other.message) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.DetectedField = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The field's confidence.
*/
public var confidence: aws.sdk.kotlin.services.lookoutmetrics.model.Confidence? = null
/**
* The field's message.
*/
public var message: kotlin.String? = null
/**
* The field's value.
*/
public var value: aws.sdk.kotlin.services.lookoutmetrics.model.AttributeValue? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.DetectedField) : this() {
this.confidence = x.confidence
this.message = x.message
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.DetectedField = DetectedField(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutmetrics.model.AttributeValue] inside the given [block]
*/
public fun value(block: aws.sdk.kotlin.services.lookoutmetrics.model.AttributeValue.Builder.() -> kotlin.Unit) {
this.value = aws.sdk.kotlin.services.lookoutmetrics.model.AttributeValue.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy