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

commonMain.aws.sdk.kotlin.services.ssm.model.SeveritySummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The number of managed nodes found for each patch severity level defined in the request filter.
 */
public class SeveritySummary private constructor(builder: Builder) {
    /**
     * The total number of resources or compliance items that have a severity level of `Critical`. Critical severity is determined by the organization that published the compliance items.
     */
    public val criticalCount: kotlin.Int = builder.criticalCount
    /**
     * The total number of resources or compliance items that have a severity level of high. High severity is determined by the organization that published the compliance items.
     */
    public val highCount: kotlin.Int = builder.highCount
    /**
     * The total number of resources or compliance items that have a severity level of informational. Informational severity is determined by the organization that published the compliance items.
     */
    public val informationalCount: kotlin.Int = builder.informationalCount
    /**
     * The total number of resources or compliance items that have a severity level of low. Low severity is determined by the organization that published the compliance items.
     */
    public val lowCount: kotlin.Int = builder.lowCount
    /**
     * The total number of resources or compliance items that have a severity level of medium. Medium severity is determined by the organization that published the compliance items.
     */
    public val mediumCount: kotlin.Int = builder.mediumCount
    /**
     * The total number of resources or compliance items that have a severity level of unspecified. Unspecified severity is determined by the organization that published the compliance items.
     */
    public val unspecifiedCount: kotlin.Int = builder.unspecifiedCount

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

    override fun toString(): kotlin.String = buildString {
        append("SeveritySummary(")
        append("criticalCount=$criticalCount,")
        append("highCount=$highCount,")
        append("informationalCount=$informationalCount,")
        append("lowCount=$lowCount,")
        append("mediumCount=$mediumCount,")
        append("unspecifiedCount=$unspecifiedCount")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = criticalCount
        result = 31 * result + (highCount)
        result = 31 * result + (informationalCount)
        result = 31 * result + (lowCount)
        result = 31 * result + (mediumCount)
        result = 31 * result + (unspecifiedCount)
        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 SeveritySummary

        if (criticalCount != other.criticalCount) return false
        if (highCount != other.highCount) return false
        if (informationalCount != other.informationalCount) return false
        if (lowCount != other.lowCount) return false
        if (mediumCount != other.mediumCount) return false
        if (unspecifiedCount != other.unspecifiedCount) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The total number of resources or compliance items that have a severity level of `Critical`. Critical severity is determined by the organization that published the compliance items.
         */
        public var criticalCount: kotlin.Int = 0
        /**
         * The total number of resources or compliance items that have a severity level of high. High severity is determined by the organization that published the compliance items.
         */
        public var highCount: kotlin.Int = 0
        /**
         * The total number of resources or compliance items that have a severity level of informational. Informational severity is determined by the organization that published the compliance items.
         */
        public var informationalCount: kotlin.Int = 0
        /**
         * The total number of resources or compliance items that have a severity level of low. Low severity is determined by the organization that published the compliance items.
         */
        public var lowCount: kotlin.Int = 0
        /**
         * The total number of resources or compliance items that have a severity level of medium. Medium severity is determined by the organization that published the compliance items.
         */
        public var mediumCount: kotlin.Int = 0
        /**
         * The total number of resources or compliance items that have a severity level of unspecified. Unspecified severity is determined by the organization that published the compliance items.
         */
        public var unspecifiedCount: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.SeveritySummary) : this() {
            this.criticalCount = x.criticalCount
            this.highCount = x.highCount
            this.informationalCount = x.informationalCount
            this.lowCount = x.lowCount
            this.mediumCount = x.mediumCount
            this.unspecifiedCount = x.unspecifiedCount
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy