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

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

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

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



/**
 * The OpsData summary.
 */
public class OpsEntityItem private constructor(builder: Builder) {
    /**
     * The time the OpsData was captured.
     */
    public val captureTime: kotlin.String? = builder.captureTime
    /**
     * The details of an OpsData summary.
     */
    public val content: List>? = builder.content

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

    override fun toString(): kotlin.String = buildString {
        append("OpsEntityItem(")
        append("captureTime=$captureTime,")
        append("content=$content")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = captureTime?.hashCode() ?: 0
        result = 31 * result + (content?.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 OpsEntityItem

        if (captureTime != other.captureTime) return false
        if (content != other.content) return false

        return true
    }

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

    public class Builder {
        /**
         * The time the OpsData was captured.
         */
        public var captureTime: kotlin.String? = null
        /**
         * The details of an OpsData summary.
         */
        public var content: List>? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.OpsEntityItem) : this() {
            this.captureTime = x.captureTime
            this.content = x.content
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy