commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.GetAnomalyGroupRequest.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 GetAnomalyGroupRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the anomaly detector.
*/
public val anomalyDetectorArn: kotlin.String? = builder.anomalyDetectorArn
/**
* The ID of the anomaly group.
*/
public val anomalyGroupId: kotlin.String? = builder.anomalyGroupId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.GetAnomalyGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAnomalyGroupRequest(")
append("anomalyDetectorArn=$anomalyDetectorArn,")
append("anomalyGroupId=$anomalyGroupId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = anomalyDetectorArn?.hashCode() ?: 0
result = 31 * result + (anomalyGroupId?.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 GetAnomalyGroupRequest
if (anomalyDetectorArn != other.anomalyDetectorArn) return false
if (anomalyGroupId != other.anomalyGroupId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.GetAnomalyGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the anomaly detector.
*/
public var anomalyDetectorArn: kotlin.String? = null
/**
* The ID of the anomaly group.
*/
public var anomalyGroupId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.GetAnomalyGroupRequest) : this() {
this.anomalyDetectorArn = x.anomalyDetectorArn
this.anomalyGroupId = x.anomalyGroupId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.GetAnomalyGroupRequest = GetAnomalyGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy