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

commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.CustomerAgentlessCollectorInfo.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 Agentless Collector collectors.
 */
public class CustomerAgentlessCollectorInfo private constructor(builder: Builder) {
    /**
     * The number of active Agentless Collector collectors.
     */
    public val activeAgentlessCollectors: kotlin.Int = builder.activeAgentlessCollectors
    /**
     * The number of deny-listed Agentless Collector collectors.
     */
    public val denyListedAgentlessCollectors: kotlin.Int = builder.denyListedAgentlessCollectors
    /**
     * The number of healthy Agentless Collector collectors.
     */
    public val healthyAgentlessCollectors: kotlin.Int = builder.healthyAgentlessCollectors
    /**
     * The number of Agentless Collector collectors with `SHUTDOWN` status.
     */
    public val shutdownAgentlessCollectors: kotlin.Int = builder.shutdownAgentlessCollectors
    /**
     * The total number of Agentless Collector collectors.
     */
    public val totalAgentlessCollectors: kotlin.Int = builder.totalAgentlessCollectors
    /**
     * The number of unhealthy Agentless Collector collectors.
     */
    public val unhealthyAgentlessCollectors: kotlin.Int = builder.unhealthyAgentlessCollectors
    /**
     * The number of unknown Agentless Collector collectors.
     */
    public val unknownAgentlessCollectors: kotlin.Int = builder.unknownAgentlessCollectors

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

    override fun toString(): kotlin.String = buildString {
        append("CustomerAgentlessCollectorInfo(")
        append("activeAgentlessCollectors=$activeAgentlessCollectors,")
        append("denyListedAgentlessCollectors=$denyListedAgentlessCollectors,")
        append("healthyAgentlessCollectors=$healthyAgentlessCollectors,")
        append("shutdownAgentlessCollectors=$shutdownAgentlessCollectors,")
        append("totalAgentlessCollectors=$totalAgentlessCollectors,")
        append("unhealthyAgentlessCollectors=$unhealthyAgentlessCollectors,")
        append("unknownAgentlessCollectors=$unknownAgentlessCollectors")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = activeAgentlessCollectors
        result = 31 * result + (denyListedAgentlessCollectors)
        result = 31 * result + (healthyAgentlessCollectors)
        result = 31 * result + (shutdownAgentlessCollectors)
        result = 31 * result + (totalAgentlessCollectors)
        result = 31 * result + (unhealthyAgentlessCollectors)
        result = 31 * result + (unknownAgentlessCollectors)
        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 CustomerAgentlessCollectorInfo

        if (activeAgentlessCollectors != other.activeAgentlessCollectors) return false
        if (denyListedAgentlessCollectors != other.denyListedAgentlessCollectors) return false
        if (healthyAgentlessCollectors != other.healthyAgentlessCollectors) return false
        if (shutdownAgentlessCollectors != other.shutdownAgentlessCollectors) return false
        if (totalAgentlessCollectors != other.totalAgentlessCollectors) return false
        if (unhealthyAgentlessCollectors != other.unhealthyAgentlessCollectors) return false
        if (unknownAgentlessCollectors != other.unknownAgentlessCollectors) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of active Agentless Collector collectors.
         */
        public var activeAgentlessCollectors: kotlin.Int = 0
        /**
         * The number of deny-listed Agentless Collector collectors.
         */
        public var denyListedAgentlessCollectors: kotlin.Int = 0
        /**
         * The number of healthy Agentless Collector collectors.
         */
        public var healthyAgentlessCollectors: kotlin.Int = 0
        /**
         * The number of Agentless Collector collectors with `SHUTDOWN` status.
         */
        public var shutdownAgentlessCollectors: kotlin.Int = 0
        /**
         * The total number of Agentless Collector collectors.
         */
        public var totalAgentlessCollectors: kotlin.Int = 0
        /**
         * The number of unhealthy Agentless Collector collectors.
         */
        public var unhealthyAgentlessCollectors: kotlin.Int = 0
        /**
         * The number of unknown Agentless Collector collectors.
         */
        public var unknownAgentlessCollectors: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.CustomerAgentlessCollectorInfo) : this() {
            this.activeAgentlessCollectors = x.activeAgentlessCollectors
            this.denyListedAgentlessCollectors = x.denyListedAgentlessCollectors
            this.healthyAgentlessCollectors = x.healthyAgentlessCollectors
            this.shutdownAgentlessCollectors = x.shutdownAgentlessCollectors
            this.totalAgentlessCollectors = x.totalAgentlessCollectors
            this.unhealthyAgentlessCollectors = x.unhealthyAgentlessCollectors
            this.unknownAgentlessCollectors = x.unknownAgentlessCollectors
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy