commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.DetectMetricSetConfigRequest.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
public class DetectMetricSetConfigRequest private constructor(builder: Builder) {
/**
* An anomaly detector ARN.
*/
public val anomalyDetectorArn: kotlin.String? = builder.anomalyDetectorArn
/**
* A data source.
*/
public val autoDetectionMetricSource: aws.sdk.kotlin.services.lookoutmetrics.model.AutoDetectionMetricSource? = builder.autoDetectionMetricSource
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.DetectMetricSetConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectMetricSetConfigRequest(")
append("anomalyDetectorArn=$anomalyDetectorArn,")
append("autoDetectionMetricSource=$autoDetectionMetricSource")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = anomalyDetectorArn?.hashCode() ?: 0
result = 31 * result + (autoDetectionMetricSource?.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 DetectMetricSetConfigRequest
if (anomalyDetectorArn != other.anomalyDetectorArn) return false
if (autoDetectionMetricSource != other.autoDetectionMetricSource) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.DetectMetricSetConfigRequest = Builder(this).apply(block).build()
public class Builder {
/**
* An anomaly detector ARN.
*/
public var anomalyDetectorArn: kotlin.String? = null
/**
* A data source.
*/
public var autoDetectionMetricSource: aws.sdk.kotlin.services.lookoutmetrics.model.AutoDetectionMetricSource? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.DetectMetricSetConfigRequest) : this() {
this.anomalyDetectorArn = x.anomalyDetectorArn
this.autoDetectionMetricSource = x.autoDetectionMetricSource
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.DetectMetricSetConfigRequest = DetectMetricSetConfigRequest(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutmetrics.model.AutoDetectionMetricSource] inside the given [block]
*/
public fun autoDetectionMetricSource(block: aws.sdk.kotlin.services.lookoutmetrics.model.AutoDetectionMetricSource.Builder.() -> kotlin.Unit) {
this.autoDetectionMetricSource = aws.sdk.kotlin.services.lookoutmetrics.model.AutoDetectionMetricSource.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy