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

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

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

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



/**
 * Information about the association.
 */
public class AssociationOverview private constructor(builder: Builder) {
    /**
     * Returns the number of targets for the association status. For example, if you created an association with two managed nodes, and one of them was successful, this would return the count of managed nodes by status.
     */
    public val associationStatusAggregatedCount: Map? = builder.associationStatusAggregatedCount
    /**
     * A detailed status of the association.
     */
    public val detailedStatus: kotlin.String? = builder.detailedStatus
    /**
     * The status of the association. Status can be: Pending, Success, or Failed.
     */
    public val status: kotlin.String? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("AssociationOverview(")
        append("associationStatusAggregatedCount=$associationStatusAggregatedCount,")
        append("detailedStatus=$detailedStatus,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = associationStatusAggregatedCount?.hashCode() ?: 0
        result = 31 * result + (detailedStatus?.hashCode() ?: 0)
        result = 31 * result + (status?.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 AssociationOverview

        if (associationStatusAggregatedCount != other.associationStatusAggregatedCount) return false
        if (detailedStatus != other.detailedStatus) return false
        if (status != other.status) return false

        return true
    }

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

    public class Builder {
        /**
         * Returns the number of targets for the association status. For example, if you created an association with two managed nodes, and one of them was successful, this would return the count of managed nodes by status.
         */
        public var associationStatusAggregatedCount: Map? = null
        /**
         * A detailed status of the association.
         */
        public var detailedStatus: kotlin.String? = null
        /**
         * The status of the association. Status can be: Pending, Success, or Failed.
         */
        public var status: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.AssociationOverview) : this() {
            this.associationStatusAggregatedCount = x.associationStatusAggregatedCount
            this.detailedStatus = x.detailedStatus
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy