commonMain.aws.sdk.kotlin.services.configservice.model.EvaluationContext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Use EvaluationContext to group independently initiated proactive resource evaluations. For example, CFN Stack. If you want to check just a resource definition, you do not need to provide evaluation context.
*/
public class EvaluationContext private constructor(builder: Builder) {
/**
* A unique EvaluationContextIdentifier ID for an EvaluationContext.
*/
public val evaluationContextIdentifier: kotlin.String? = builder.evaluationContextIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.EvaluationContext = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EvaluationContext(")
append("evaluationContextIdentifier=$evaluationContextIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = evaluationContextIdentifier?.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 EvaluationContext
if (evaluationContextIdentifier != other.evaluationContextIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.EvaluationContext = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique EvaluationContextIdentifier ID for an EvaluationContext.
*/
public var evaluationContextIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.EvaluationContext) : this() {
this.evaluationContextIdentifier = x.evaluationContextIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.EvaluationContext = EvaluationContext(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy