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

commonMain.aws.sdk.kotlin.services.opensearch.model.PluginProperties.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.opensearch.model



/**
 * Basic information about the plugin.
 */
public class PluginProperties private constructor(builder: Builder) {
    /**
     * The name of the class to load.
     */
    public val className: kotlin.String? = builder.className
    /**
     * The description of the plugin.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the plugin.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The uncompressed size of the plugin.
     */
    public val uncompressedSizeInBytes: kotlin.Long? = builder.uncompressedSizeInBytes
    /**
     * The version of the plugin.
     */
    public val version: kotlin.String? = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("PluginProperties(")
        append("className=$className,")
        append("description=$description,")
        append("name=$name,")
        append("uncompressedSizeInBytes=$uncompressedSizeInBytes,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = className?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (uncompressedSizeInBytes?.hashCode() ?: 0)
        result = 31 * result + (version?.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 PluginProperties

        if (className != other.className) return false
        if (description != other.description) return false
        if (name != other.name) return false
        if (uncompressedSizeInBytes != other.uncompressedSizeInBytes) return false
        if (version != other.version) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the class to load.
         */
        public var className: kotlin.String? = null
        /**
         * The description of the plugin.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the plugin.
         */
        public var name: kotlin.String? = null
        /**
         * The uncompressed size of the plugin.
         */
        public var uncompressedSizeInBytes: kotlin.Long? = null
        /**
         * The version of the plugin.
         */
        public var version: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.PluginProperties) : this() {
            this.className = x.className
            this.description = x.description
            this.name = x.name
            this.uncompressedSizeInBytes = x.uncompressedSizeInBytes
            this.version = x.version
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy