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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateDiscovererResponse private constructor(builder: Builder) {
    /**
     * The Status if the discoverer will discover schemas from events sent from another account.
     */
    public val crossAccount: kotlin.Boolean? = builder.crossAccount
    /**
     * The description of the discoverer.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ARN of the discoverer.
     */
    public val discovererArn: kotlin.String? = builder.discovererArn
    /**
     * The ID of the discoverer.
     */
    public val discovererId: kotlin.String? = builder.discovererId
    /**
     * The ARN of the event bus.
     */
    public val sourceArn: kotlin.String? = builder.sourceArn
    /**
     * The state of the discoverer.
     */
    public val state: aws.sdk.kotlin.services.schemas.model.DiscovererState? = builder.state
    /**
     * Tags associated with the resource.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateDiscovererResponse(")
        append("crossAccount=$crossAccount,")
        append("description=$description,")
        append("discovererArn=$discovererArn,")
        append("discovererId=$discovererId,")
        append("sourceArn=$sourceArn,")
        append("state=$state,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = crossAccount?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (discovererArn?.hashCode() ?: 0)
        result = 31 * result + (discovererId?.hashCode() ?: 0)
        result = 31 * result + (sourceArn?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateDiscovererResponse

        if (crossAccount != other.crossAccount) return false
        if (description != other.description) return false
        if (discovererArn != other.discovererArn) return false
        if (discovererId != other.discovererId) return false
        if (sourceArn != other.sourceArn) return false
        if (state != other.state) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Status if the discoverer will discover schemas from events sent from another account.
         */
        public var crossAccount: kotlin.Boolean? = null
        /**
         * The description of the discoverer.
         */
        public var description: kotlin.String? = null
        /**
         * The ARN of the discoverer.
         */
        public var discovererArn: kotlin.String? = null
        /**
         * The ID of the discoverer.
         */
        public var discovererId: kotlin.String? = null
        /**
         * The ARN of the event bus.
         */
        public var sourceArn: kotlin.String? = null
        /**
         * The state of the discoverer.
         */
        public var state: aws.sdk.kotlin.services.schemas.model.DiscovererState? = null
        /**
         * Tags associated with the resource.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.schemas.model.CreateDiscovererResponse) : this() {
            this.crossAccount = x.crossAccount
            this.description = x.description
            this.discovererArn = x.discovererArn
            this.discovererId = x.discovererId
            this.sourceArn = x.sourceArn
            this.state = x.state
            this.tags = x.tags
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy