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

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

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

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



/**
 * The number of conformance packs that are compliant and noncompliant.
 */
public class AggregateConformancePackComplianceCount private constructor(builder: Builder) {
    /**
     * Number of compliant conformance packs.
     */
    public val compliantConformancePackCount: kotlin.Int = builder.compliantConformancePackCount
    /**
     * Number of noncompliant conformance packs.
     */
    public val nonCompliantConformancePackCount: kotlin.Int = builder.nonCompliantConformancePackCount

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

    override fun toString(): kotlin.String = buildString {
        append("AggregateConformancePackComplianceCount(")
        append("compliantConformancePackCount=$compliantConformancePackCount,")
        append("nonCompliantConformancePackCount=$nonCompliantConformancePackCount")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = compliantConformancePackCount
        result = 31 * result + (nonCompliantConformancePackCount)
        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 AggregateConformancePackComplianceCount

        if (compliantConformancePackCount != other.compliantConformancePackCount) return false
        if (nonCompliantConformancePackCount != other.nonCompliantConformancePackCount) return false

        return true
    }

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

    public class Builder {
        /**
         * Number of compliant conformance packs.
         */
        public var compliantConformancePackCount: kotlin.Int = 0
        /**
         * Number of noncompliant conformance packs.
         */
        public var nonCompliantConformancePackCount: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.configservice.model.AggregateConformancePackComplianceCount) : this() {
            this.compliantConformancePackCount = x.compliantConformancePackCount
            this.nonCompliantConformancePackCount = x.nonCompliantConformancePackCount
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy