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

commonMain.aws.sdk.kotlin.services.kafkaconnect.model.DescribeCustomPluginResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kafkaconnect.model

import aws.smithy.kotlin.runtime.time.Instant

public class DescribeCustomPluginResponse private constructor(builder: Builder) {
    /**
     * The time that the custom plugin was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The Amazon Resource Name (ARN) of the custom plugin.
     */
    public val customPluginArn: kotlin.String? = builder.customPluginArn
    /**
     * The state of the custom plugin.
     */
    public val customPluginState: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginState? = builder.customPluginState
    /**
     * The description of the custom plugin.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The latest successfully created revision of the custom plugin. If there are no successfully created revisions, this field will be absent.
     */
    public val latestRevision: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary? = builder.latestRevision
    /**
     * The name of the custom plugin.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Details about the state of a custom plugin.
     */
    public val stateDescription: aws.sdk.kotlin.services.kafkaconnect.model.StateDescription? = builder.stateDescription

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeCustomPluginResponse(")
        append("creationTime=$creationTime,")
        append("customPluginArn=$customPluginArn,")
        append("customPluginState=$customPluginState,")
        append("description=$description,")
        append("latestRevision=$latestRevision,")
        append("name=$name,")
        append("stateDescription=$stateDescription")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (customPluginArn?.hashCode() ?: 0)
        result = 31 * result + (customPluginState?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (latestRevision?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (stateDescription?.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 DescribeCustomPluginResponse

        if (creationTime != other.creationTime) return false
        if (customPluginArn != other.customPluginArn) return false
        if (customPluginState != other.customPluginState) return false
        if (description != other.description) return false
        if (latestRevision != other.latestRevision) return false
        if (name != other.name) return false
        if (stateDescription != other.stateDescription) return false

        return true
    }

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

    public class Builder {
        /**
         * The time that the custom plugin was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the custom plugin.
         */
        public var customPluginArn: kotlin.String? = null
        /**
         * The state of the custom plugin.
         */
        public var customPluginState: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginState? = null
        /**
         * The description of the custom plugin.
         */
        public var description: kotlin.String? = null
        /**
         * The latest successfully created revision of the custom plugin. If there are no successfully created revisions, this field will be absent.
         */
        public var latestRevision: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary? = null
        /**
         * The name of the custom plugin.
         */
        public var name: kotlin.String? = null
        /**
         * Details about the state of a custom plugin.
         */
        public var stateDescription: aws.sdk.kotlin.services.kafkaconnect.model.StateDescription? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.DescribeCustomPluginResponse) : this() {
            this.creationTime = x.creationTime
            this.customPluginArn = x.customPluginArn
            this.customPluginState = x.customPluginState
            this.description = x.description
            this.latestRevision = x.latestRevision
            this.name = x.name
            this.stateDescription = x.stateDescription
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary] inside the given [block]
         */
        public fun latestRevision(block: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary.Builder.() -> kotlin.Unit) {
            this.latestRevision = aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.kafkaconnect.model.StateDescription] inside the given [block]
         */
        public fun stateDescription(block: aws.sdk.kotlin.services.kafkaconnect.model.StateDescription.Builder.() -> kotlin.Unit) {
            this.stateDescription = aws.sdk.kotlin.services.kafkaconnect.model.StateDescription.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy