All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.GetFeedbackRequest.kt Maven / Gradle / Ivy

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 GetFeedbackRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the anomaly detector.
     */
    public val anomalyDetectorArn: kotlin.String? = builder.anomalyDetectorArn
    /**
     * The anomalous metric and group ID.
     */
    public val anomalyGroupTimeSeriesFeedback: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeries? = builder.anomalyGroupTimeSeriesFeedback
    /**
     * The maximum number of results to return.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * Specify the pagination token that's returned by a previous request to retrieve the next page of results.
     */
    public val nextToken: kotlin.String? = builder.nextToken

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.GetFeedbackRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetFeedbackRequest(")
        append("anomalyDetectorArn=$anomalyDetectorArn,")
        append("anomalyGroupTimeSeriesFeedback=$anomalyGroupTimeSeriesFeedback,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = anomalyDetectorArn?.hashCode() ?: 0
        result = 31 * result + (anomalyGroupTimeSeriesFeedback?.hashCode() ?: 0)
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.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 GetFeedbackRequest

        if (anomalyDetectorArn != other.anomalyDetectorArn) return false
        if (anomalyGroupTimeSeriesFeedback != other.anomalyGroupTimeSeriesFeedback) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.GetFeedbackRequest = 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 anomalous metric and group ID.
         */
        public var anomalyGroupTimeSeriesFeedback: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeries? = null
        /**
         * The maximum number of results to return.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * Specify the pagination token that's returned by a previous request to retrieve the next page of results.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.GetFeedbackRequest) : this() {
            this.anomalyDetectorArn = x.anomalyDetectorArn
            this.anomalyGroupTimeSeriesFeedback = x.anomalyGroupTimeSeriesFeedback
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.GetFeedbackRequest = GetFeedbackRequest(this)

        /**
         * construct an [aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeries] inside the given [block]
         */
        public fun anomalyGroupTimeSeriesFeedback(block: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeries.Builder.() -> kotlin.Unit) {
            this.anomalyGroupTimeSeriesFeedback = aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupTimeSeries.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy