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

commonMain.aws.sdk.kotlin.services.redshift.model.EventInfoMap.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes event information.
 */
public class EventInfoMap private constructor(builder: Builder) {
    /**
     * The category of an Amazon Redshift event.
     */
    public val eventCategories: List? = builder.eventCategories
    /**
     * The description of an Amazon Redshift event.
     */
    public val eventDescription: kotlin.String? = builder.eventDescription
    /**
     * The identifier of an Amazon Redshift event.
     */
    public val eventId: kotlin.String? = builder.eventId
    /**
     * The severity of the event.
     *
     * Values: ERROR, INFO
     */
    public val severity: kotlin.String? = builder.severity

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

    override fun toString(): kotlin.String = buildString {
        append("EventInfoMap(")
        append("eventCategories=$eventCategories,")
        append("eventDescription=$eventDescription,")
        append("eventId=$eventId,")
        append("severity=$severity")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = eventCategories?.hashCode() ?: 0
        result = 31 * result + (eventDescription?.hashCode() ?: 0)
        result = 31 * result + (eventId?.hashCode() ?: 0)
        result = 31 * result + (severity?.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 EventInfoMap

        if (eventCategories != other.eventCategories) return false
        if (eventDescription != other.eventDescription) return false
        if (eventId != other.eventId) return false
        if (severity != other.severity) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The category of an Amazon Redshift event.
         */
        public var eventCategories: List? = null
        /**
         * The description of an Amazon Redshift event.
         */
        public var eventDescription: kotlin.String? = null
        /**
         * The identifier of an Amazon Redshift event.
         */
        public var eventId: kotlin.String? = null
        /**
         * The severity of the event.
         *
         * Values: ERROR, INFO
         */
        public var severity: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.EventInfoMap) : this() {
            this.eventCategories = x.eventCategories
            this.eventDescription = x.eventDescription
            this.eventId = x.eventId
            this.severity = x.severity
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy