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

commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentInfo.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

/**
 * Information about agents associated with the user’s Amazon Web Services account. Information includes agent IDs, IP addresses, media access control (MAC) addresses, agent or collector status, hostname where the agent resides, and agent version for each agent.
 */
public class AgentInfo private constructor(builder: Builder) {
    /**
     * The agent or collector ID.
     */
    public val agentId: kotlin.String? = builder.agentId
    /**
     * Network details about the host where the agent or collector resides.
     */
    public val agentNetworkInfoList: List? = builder.agentNetworkInfoList
    /**
     * Type of agent.
     */
    public val agentType: kotlin.String? = builder.agentType
    /**
     * Status of the collection process for an agent.
     */
    public val collectionStatus: kotlin.String? = builder.collectionStatus
    /**
     * The ID of the connector.
     */
    public val connectorId: kotlin.String? = builder.connectorId
    /**
     * The health of the agent.
     */
    public val health: aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentStatus? = builder.health
    /**
     * The name of the host where the agent or collector resides. The host can be a server or virtual machine.
     */
    public val hostName: kotlin.String? = builder.hostName
    /**
     * Time since agent health was reported.
     */
    public val lastHealthPingTime: kotlin.String? = builder.lastHealthPingTime
    /**
     * Agent's first registration timestamp in UTC.
     */
    public val registeredTime: kotlin.String? = builder.registeredTime
    /**
     * The agent or collector version.
     */
    public val version: kotlin.String? = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("AgentInfo(")
        append("agentId=$agentId,")
        append("agentNetworkInfoList=*** Sensitive Data Redacted ***,")
        append("agentType=$agentType,")
        append("collectionStatus=$collectionStatus,")
        append("connectorId=$connectorId,")
        append("health=$health,")
        append("hostName=$hostName,")
        append("lastHealthPingTime=$lastHealthPingTime,")
        append("registeredTime=$registeredTime,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = agentId?.hashCode() ?: 0
        result = 31 * result + (agentNetworkInfoList?.hashCode() ?: 0)
        result = 31 * result + (agentType?.hashCode() ?: 0)
        result = 31 * result + (collectionStatus?.hashCode() ?: 0)
        result = 31 * result + (connectorId?.hashCode() ?: 0)
        result = 31 * result + (health?.hashCode() ?: 0)
        result = 31 * result + (hostName?.hashCode() ?: 0)
        result = 31 * result + (lastHealthPingTime?.hashCode() ?: 0)
        result = 31 * result + (registeredTime?.hashCode() ?: 0)
        result = 31 * result + (version?.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 AgentInfo

        if (agentId != other.agentId) return false
        if (agentNetworkInfoList != other.agentNetworkInfoList) return false
        if (agentType != other.agentType) return false
        if (collectionStatus != other.collectionStatus) return false
        if (connectorId != other.connectorId) return false
        if (health != other.health) return false
        if (hostName != other.hostName) return false
        if (lastHealthPingTime != other.lastHealthPingTime) return false
        if (registeredTime != other.registeredTime) return false
        if (version != other.version) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The agent or collector ID.
         */
        public var agentId: kotlin.String? = null
        /**
         * Network details about the host where the agent or collector resides.
         */
        public var agentNetworkInfoList: List? = null
        /**
         * Type of agent.
         */
        public var agentType: kotlin.String? = null
        /**
         * Status of the collection process for an agent.
         */
        public var collectionStatus: kotlin.String? = null
        /**
         * The ID of the connector.
         */
        public var connectorId: kotlin.String? = null
        /**
         * The health of the agent.
         */
        public var health: aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentStatus? = null
        /**
         * The name of the host where the agent or collector resides. The host can be a server or virtual machine.
         */
        public var hostName: kotlin.String? = null
        /**
         * Time since agent health was reported.
         */
        public var lastHealthPingTime: kotlin.String? = null
        /**
         * Agent's first registration timestamp in UTC.
         */
        public var registeredTime: kotlin.String? = null
        /**
         * The agent or collector version.
         */
        public var version: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentInfo) : this() {
            this.agentId = x.agentId
            this.agentNetworkInfoList = x.agentNetworkInfoList
            this.agentType = x.agentType
            this.collectionStatus = x.collectionStatus
            this.connectorId = x.connectorId
            this.health = x.health
            this.hostName = x.hostName
            this.lastHealthPingTime = x.lastHealthPingTime
            this.registeredTime = x.registeredTime
            this.version = x.version
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy