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

commonMain.aws.sdk.kotlin.services.schemas.model.GetDiscoveredSchemaRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.schemas.model



public class GetDiscoveredSchemaRequest private constructor(builder: Builder) {
    /**
     * An array of strings where each string is a JSON event. These are the events that were used to generate the schema. The array includes a single type of event and has a maximum size of 10 events.
     */
    public val events: List? = builder.events
    /**
     * The type of event.
     */
    public val type: aws.sdk.kotlin.services.schemas.model.Type? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("GetDiscoveredSchemaRequest(")
        append("events=$events,")
        append("type=$type")
        append(")")
    }

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

        if (events != other.events) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * An array of strings where each string is a JSON event. These are the events that were used to generate the schema. The array includes a single type of event and has a maximum size of 10 events.
         */
        public var events: List? = null
        /**
         * The type of event.
         */
        public var type: aws.sdk.kotlin.services.schemas.model.Type? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.schemas.model.GetDiscoveredSchemaRequest) : this() {
            this.events = x.events
            this.type = x.type
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.schemas.model.GetDiscoveredSchemaRequest = GetDiscoveredSchemaRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy