
commonMain.aws.sdk.kotlin.services.configservice.model.EvaluationResultIdentifier.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Uniquely identifies an evaluation result.
*/
class EvaluationResultIdentifier private constructor(builder: Builder) {
/**
* Identifies an Config rule used to evaluate an Amazon Web Services resource, and provides the type and ID of the evaluated resource.
*/
val evaluationResultQualifier: aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier? = builder.evaluationResultQualifier
/**
* The time of the event that triggered the evaluation of your Amazon Web Services resources. The time can indicate when Config delivered a configuration item change notification, or it can indicate when Config delivered the configuration snapshot, depending on which event triggered the evaluation.
*/
val orderingTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.orderingTimestamp
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.EvaluationResultIdentifier = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EvaluationResultIdentifier(")
append("evaluationResultQualifier=$evaluationResultQualifier,")
append("orderingTimestamp=$orderingTimestamp)")
}
override fun hashCode(): kotlin.Int {
var result = evaluationResultQualifier?.hashCode() ?: 0
result = 31 * result + (orderingTimestamp?.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 EvaluationResultIdentifier
if (evaluationResultQualifier != other.evaluationResultQualifier) return false
if (orderingTimestamp != other.orderingTimestamp) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.EvaluationResultIdentifier = Builder(this).apply(block).build()
class Builder {
/**
* Identifies an Config rule used to evaluate an Amazon Web Services resource, and provides the type and ID of the evaluated resource.
*/
var evaluationResultQualifier: aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier? = null
/**
* The time of the event that triggered the evaluation of your Amazon Web Services resources. The time can indicate when Config delivered a configuration item change notification, or it can indicate when Config delivered the configuration snapshot, depending on which event triggered the evaluation.
*/
var orderingTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.EvaluationResultIdentifier) : this() {
this.evaluationResultQualifier = x.evaluationResultQualifier
this.orderingTimestamp = x.orderingTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.EvaluationResultIdentifier = EvaluationResultIdentifier(this)
/**
* construct an [aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier] inside the given [block]
*/
fun evaluationResultQualifier(block: aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier.Builder.() -> kotlin.Unit) {
this.evaluationResultQualifier = aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy