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

commonMain.aws.sdk.kotlin.services.rum.model.AppMonitorSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.rum.model



/**
 * A structure that includes some data about app monitors and their settings.
 */
public class AppMonitorSummary private constructor(builder: Builder) {
    /**
     * The date and time that the app monitor was created.
     */
    public val created: kotlin.String? = builder.created
    /**
     * The unique ID of this app monitor.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The date and time of the most recent changes to this app monitor's configuration.
     */
    public val lastModified: kotlin.String? = builder.lastModified
    /**
     * The name of this app monitor.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The current state of this app monitor.
     */
    public val state: aws.sdk.kotlin.services.rum.model.StateEnum? = builder.state

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

    override fun toString(): kotlin.String = buildString {
        append("AppMonitorSummary(")
        append("created=$created,")
        append("id=$id,")
        append("lastModified=$lastModified,")
        append("name=$name,")
        append("state=$state")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = created?.hashCode() ?: 0
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (lastModified?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (state?.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 AppMonitorSummary

        if (created != other.created) return false
        if (id != other.id) return false
        if (lastModified != other.lastModified) return false
        if (name != other.name) return false
        if (state != other.state) return false

        return true
    }

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

    public class Builder {
        /**
         * The date and time that the app monitor was created.
         */
        public var created: kotlin.String? = null
        /**
         * The unique ID of this app monitor.
         */
        public var id: kotlin.String? = null
        /**
         * The date and time of the most recent changes to this app monitor's configuration.
         */
        public var lastModified: kotlin.String? = null
        /**
         * The name of this app monitor.
         */
        public var name: kotlin.String? = null
        /**
         * The current state of this app monitor.
         */
        public var state: aws.sdk.kotlin.services.rum.model.StateEnum? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rum.model.AppMonitorSummary) : this() {
            this.created = x.created
            this.id = x.id
            this.lastModified = x.lastModified
            this.name = x.name
            this.state = x.state
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy