commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.PutFeedbackRequest.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
import aws.smithy.kotlin.runtime.SdkDsl
public class PutFeedbackRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the anomaly detector.
*/
public val anomalyDetectorArn: kotlin.String? = builder.anomalyDetectorArn
/**
* Feedback for an anomalous metric.
*/
public val anomalyGroupTimeSeriesFeedback: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeriesFeedback? = builder.anomalyGroupTimeSeriesFeedback
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.PutFeedbackRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutFeedbackRequest(")
append("anomalyDetectorArn=$anomalyDetectorArn,")
append("anomalyGroupTimeSeriesFeedback=$anomalyGroupTimeSeriesFeedback")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = anomalyDetectorArn?.hashCode() ?: 0
result = 31 * result + (anomalyGroupTimeSeriesFeedback?.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 PutFeedbackRequest
if (anomalyDetectorArn != other.anomalyDetectorArn) return false
if (anomalyGroupTimeSeriesFeedback != other.anomalyGroupTimeSeriesFeedback) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.PutFeedbackRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the anomaly detector.
*/
public var anomalyDetectorArn: kotlin.String? = null
/**
* Feedback for an anomalous metric.
*/
public var anomalyGroupTimeSeriesFeedback: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeriesFeedback? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.PutFeedbackRequest) : this() {
this.anomalyDetectorArn = x.anomalyDetectorArn
this.anomalyGroupTimeSeriesFeedback = x.anomalyGroupTimeSeriesFeedback
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.PutFeedbackRequest = PutFeedbackRequest(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeriesFeedback] inside the given [block]
*/
public fun anomalyGroupTimeSeriesFeedback(block: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeriesFeedback.Builder.() -> kotlin.Unit) {
this.anomalyGroupTimeSeriesFeedback = aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeriesFeedback.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy