commonMain.aws.sdk.kotlin.services.configservice.model.EvaluationModeConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
/**
* The configuration object for Config rule evaluation mode. The supported valid values are Detective or Proactive.
*/
public class EvaluationModeConfiguration private constructor(builder: Builder) {
/**
* The mode of an evaluation. The valid values are Detective or Proactive.
*/
public val mode: aws.sdk.kotlin.services.configservice.model.EvaluationMode? = builder.mode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.EvaluationModeConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EvaluationModeConfiguration(")
append("mode=$mode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mode?.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 EvaluationModeConfiguration
if (mode != other.mode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.EvaluationModeConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The mode of an evaluation. The valid values are Detective or Proactive.
*/
public var mode: aws.sdk.kotlin.services.configservice.model.EvaluationMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.EvaluationModeConfiguration) : this() {
this.mode = x.mode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.EvaluationModeConfiguration = EvaluationModeConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy