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

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

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

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



/**
 * The Auto-Tune settings for a domain, displayed when enabling or disabling Auto-Tune.
 */
public class AutoTuneOptionsOutput private constructor(builder: Builder) {
    /**
     * Any errors that occurred while enabling or disabling Auto-Tune.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * The current state of Auto-Tune on the domain.
     */
    public val state: aws.sdk.kotlin.services.opensearch.model.AutoTuneState? = builder.state
    /**
     * Whether the domain's off-peak window will be used to deploy Auto-Tune changes rather than a maintenance schedule.
     */
    public val useOffPeakWindow: kotlin.Boolean? = builder.useOffPeakWindow

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

    override fun toString(): kotlin.String = buildString {
        append("AutoTuneOptionsOutput(")
        append("errorMessage=$errorMessage,")
        append("state=$state,")
        append("useOffPeakWindow=$useOffPeakWindow")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = errorMessage?.hashCode() ?: 0
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (useOffPeakWindow?.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 AutoTuneOptionsOutput

        if (errorMessage != other.errorMessage) return false
        if (state != other.state) return false
        if (useOffPeakWindow != other.useOffPeakWindow) return false

        return true
    }

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

    public class Builder {
        /**
         * Any errors that occurred while enabling or disabling Auto-Tune.
         */
        public var errorMessage: kotlin.String? = null
        /**
         * The current state of Auto-Tune on the domain.
         */
        public var state: aws.sdk.kotlin.services.opensearch.model.AutoTuneState? = null
        /**
         * Whether the domain's off-peak window will be used to deploy Auto-Tune changes rather than a maintenance schedule.
         */
        public var useOffPeakWindow: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.AutoTuneOptionsOutput) : this() {
            this.errorMessage = x.errorMessage
            this.state = x.state
            this.useOffPeakWindow = x.useOffPeakWindow
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy