
commonMain.aws.sdk.kotlin.services.opensearch.model.AutoTune.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Information about an 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 AutoTune private constructor(builder: Builder) {
/**
* Details about an Auto-Tune action.
*/
public val autoTuneDetails: aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails? = builder.autoTuneDetails
/**
* The type of Auto-Tune action.
*/
public val autoTuneType: aws.sdk.kotlin.services.opensearch.model.AutoTuneType? = builder.autoTuneType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.AutoTune = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AutoTune(")
append("autoTuneDetails=$autoTuneDetails,")
append("autoTuneType=$autoTuneType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = autoTuneDetails?.hashCode() ?: 0
result = 31 * result + (autoTuneType?.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 AutoTune
if (autoTuneDetails != other.autoTuneDetails) return false
if (autoTuneType != other.autoTuneType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.AutoTune = Builder(this).apply(block).build()
public class Builder {
/**
* Details about an Auto-Tune action.
*/
public var autoTuneDetails: aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails? = null
/**
* The type of Auto-Tune action.
*/
public var autoTuneType: aws.sdk.kotlin.services.opensearch.model.AutoTuneType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.AutoTune) : this() {
this.autoTuneDetails = x.autoTuneDetails
this.autoTuneType = x.autoTuneType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.AutoTune = AutoTune(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails] inside the given [block]
*/
public fun autoTuneDetails(block: aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails.Builder.() -> kotlin.Unit) {
this.autoTuneDetails = aws.sdk.kotlin.services.opensearch.model.AutoTuneDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy