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

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

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

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



/**
 *
 */
public class GetComplianceSummaryByConfigRuleResponse private constructor(builder: Builder) {
    /**
     * The number of Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.
     */
    public val complianceSummary: aws.sdk.kotlin.services.configservice.model.ComplianceSummary? = builder.complianceSummary

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

    override fun toString(): kotlin.String = buildString {
        append("GetComplianceSummaryByConfigRuleResponse(")
        append("complianceSummary=$complianceSummary")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = complianceSummary?.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 GetComplianceSummaryByConfigRuleResponse

        if (complianceSummary != other.complianceSummary) return false

        return true
    }

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

    public class Builder {
        /**
         * The number of Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.
         */
        public var complianceSummary: aws.sdk.kotlin.services.configservice.model.ComplianceSummary? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.GetComplianceSummaryByConfigRuleResponse) : this() {
            this.complianceSummary = x.complianceSummary
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.configservice.model.ComplianceSummary] inside the given [block]
         */
        public fun complianceSummary(block: aws.sdk.kotlin.services.configservice.model.ComplianceSummary.Builder.() -> kotlin.Unit) {
            this.complianceSummary = aws.sdk.kotlin.services.configservice.model.ComplianceSummary.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy