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

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

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

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



/**
 * Details about a custom plugin file.
 */
public class CustomPluginFileDescription private constructor(builder: Builder) {
    /**
     * The hex-encoded MD5 checksum of the custom plugin file. You can use it to validate the file.
     */
    public val fileMd5: kotlin.String? = builder.fileMd5
    /**
     * The size in bytes of the custom plugin file. You can use it to validate the file.
     */
    public val fileSize: kotlin.Long = builder.fileSize

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

    override fun toString(): kotlin.String = buildString {
        append("CustomPluginFileDescription(")
        append("fileMd5=$fileMd5,")
        append("fileSize=$fileSize")
        append(")")
    }

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

        if (fileMd5 != other.fileMd5) return false
        if (fileSize != other.fileSize) return false

        return true
    }

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

    public class Builder {
        /**
         * The hex-encoded MD5 checksum of the custom plugin file. You can use it to validate the file.
         */
        public var fileMd5: kotlin.String? = null
        /**
         * The size in bytes of the custom plugin file. You can use it to validate the file.
         */
        public var fileSize: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginFileDescription) : this() {
            this.fileMd5 = x.fileMd5
            this.fileSize = x.fileSize
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy