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

commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.CustomerMeCollectorInfo.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.applicationdiscoveryservice.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The inventory data for installed Migration Evaluator collectors.
 */
public class CustomerMeCollectorInfo private constructor(builder: Builder) {
    /**
     * The number of active Migration Evaluator collectors.
     */
    public val activeMeCollectors: kotlin.Int = builder.activeMeCollectors
    /**
     * The number of deny-listed Migration Evaluator collectors.
     */
    public val denyListedMeCollectors: kotlin.Int = builder.denyListedMeCollectors
    /**
     * The number of healthy Migration Evaluator collectors.
     */
    public val healthyMeCollectors: kotlin.Int = builder.healthyMeCollectors
    /**
     * The number of Migration Evaluator collectors with `SHUTDOWN` status.
     */
    public val shutdownMeCollectors: kotlin.Int = builder.shutdownMeCollectors
    /**
     * The total number of Migration Evaluator collectors.
     */
    public val totalMeCollectors: kotlin.Int = builder.totalMeCollectors
    /**
     * The number of unhealthy Migration Evaluator collectors.
     */
    public val unhealthyMeCollectors: kotlin.Int = builder.unhealthyMeCollectors
    /**
     * The number of unknown Migration Evaluator collectors.
     */
    public val unknownMeCollectors: kotlin.Int = builder.unknownMeCollectors

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

    override fun toString(): kotlin.String = buildString {
        append("CustomerMeCollectorInfo(")
        append("activeMeCollectors=$activeMeCollectors,")
        append("denyListedMeCollectors=$denyListedMeCollectors,")
        append("healthyMeCollectors=$healthyMeCollectors,")
        append("shutdownMeCollectors=$shutdownMeCollectors,")
        append("totalMeCollectors=$totalMeCollectors,")
        append("unhealthyMeCollectors=$unhealthyMeCollectors,")
        append("unknownMeCollectors=$unknownMeCollectors")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = activeMeCollectors
        result = 31 * result + (denyListedMeCollectors)
        result = 31 * result + (healthyMeCollectors)
        result = 31 * result + (shutdownMeCollectors)
        result = 31 * result + (totalMeCollectors)
        result = 31 * result + (unhealthyMeCollectors)
        result = 31 * result + (unknownMeCollectors)
        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 CustomerMeCollectorInfo

        if (activeMeCollectors != other.activeMeCollectors) return false
        if (denyListedMeCollectors != other.denyListedMeCollectors) return false
        if (healthyMeCollectors != other.healthyMeCollectors) return false
        if (shutdownMeCollectors != other.shutdownMeCollectors) return false
        if (totalMeCollectors != other.totalMeCollectors) return false
        if (unhealthyMeCollectors != other.unhealthyMeCollectors) return false
        if (unknownMeCollectors != other.unknownMeCollectors) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of active Migration Evaluator collectors.
         */
        public var activeMeCollectors: kotlin.Int = 0
        /**
         * The number of deny-listed Migration Evaluator collectors.
         */
        public var denyListedMeCollectors: kotlin.Int = 0
        /**
         * The number of healthy Migration Evaluator collectors.
         */
        public var healthyMeCollectors: kotlin.Int = 0
        /**
         * The number of Migration Evaluator collectors with `SHUTDOWN` status.
         */
        public var shutdownMeCollectors: kotlin.Int = 0
        /**
         * The total number of Migration Evaluator collectors.
         */
        public var totalMeCollectors: kotlin.Int = 0
        /**
         * The number of unhealthy Migration Evaluator collectors.
         */
        public var unhealthyMeCollectors: kotlin.Int = 0
        /**
         * The number of unknown Migration Evaluator collectors.
         */
        public var unknownMeCollectors: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.CustomerMeCollectorInfo) : this() {
            this.activeMeCollectors = x.activeMeCollectors
            this.denyListedMeCollectors = x.denyListedMeCollectors
            this.healthyMeCollectors = x.healthyMeCollectors
            this.shutdownMeCollectors = x.shutdownMeCollectors
            this.totalMeCollectors = x.totalMeCollectors
            this.unhealthyMeCollectors = x.unhealthyMeCollectors
            this.unknownMeCollectors = x.unknownMeCollectors
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy