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

commonMain.aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.opensearch.model



/**
 * Specifies details about a scheduled Auto-Tune action. For more information, see [Auto-Tune for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html).
 */
public class AutoTuneDetails private constructor(builder: Builder) {
    /**
     * Container for details about a scheduled Auto-Tune action.
     */
    public val scheduledAutoTuneDetails: aws.sdk.kotlin.services.opensearch.model.ScheduledAutoTuneDetails? = builder.scheduledAutoTuneDetails

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

    override fun toString(): kotlin.String = buildString {
        append("AutoTuneDetails(")
        append("scheduledAutoTuneDetails=$scheduledAutoTuneDetails")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = scheduledAutoTuneDetails?.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 AutoTuneDetails

        if (scheduledAutoTuneDetails != other.scheduledAutoTuneDetails) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Container for details about a scheduled Auto-Tune action.
         */
        public var scheduledAutoTuneDetails: aws.sdk.kotlin.services.opensearch.model.ScheduledAutoTuneDetails? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails) : this() {
            this.scheduledAutoTuneDetails = x.scheduledAutoTuneDetails
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy