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

commonMain.aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.configservice.model



/**
 * Identifies an Config rule that evaluated an Amazon Web Services resource, and provides the type and ID of the resource that the rule evaluated.
 */
class EvaluationResultQualifier private constructor(builder: Builder) {
    /**
     * The name of the Config rule that was used in the evaluation.
     */
    val configRuleName: kotlin.String? = builder.configRuleName
    /**
     * The ID of the evaluated Amazon Web Services resource.
     */
    val resourceId: kotlin.String? = builder.resourceId
    /**
     * The type of Amazon Web Services resource that was evaluated.
     */
    val resourceType: kotlin.String? = builder.resourceType

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

    override fun toString(): kotlin.String = buildString {
        append("EvaluationResultQualifier(")
        append("configRuleName=$configRuleName,")
        append("resourceId=$resourceId,")
        append("resourceType=$resourceType)")
    }

    override fun hashCode(): kotlin.Int {
        var result = configRuleName?.hashCode() ?: 0
        result = 31 * result + (resourceId?.hashCode() ?: 0)
        result = 31 * result + (resourceType?.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 EvaluationResultQualifier

        if (configRuleName != other.configRuleName) return false
        if (resourceId != other.resourceId) return false
        if (resourceType != other.resourceType) return false

        return true
    }

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

    class Builder {
        /**
         * The name of the Config rule that was used in the evaluation.
         */
        var configRuleName: kotlin.String? = null
        /**
         * The ID of the evaluated Amazon Web Services resource.
         */
        var resourceId: kotlin.String? = null
        /**
         * The type of Amazon Web Services resource that was evaluated.
         */
        var resourceType: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier) : this() {
            this.configRuleName = x.configRuleName
            this.resourceId = x.resourceId
            this.resourceType = x.resourceType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.configservice.model.EvaluationResultQualifier = EvaluationResultQualifier(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy