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

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

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

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



/**
 * List of limits that are specific to a given instance type.
 */
public class AdditionalLimit private constructor(builder: Builder) {
    /**
     * + `MaximumNumberOfDataNodesSupported` - This attribute only applies to master nodes and specifies the maximum number of data nodes of a given instance type a master node can support.
     * + `MaximumNumberOfDataNodesWithoutMasterNode` - This attribute only applies to data nodes and specifies the maximum number of data nodes of a given instance type can exist without a master node governing them.
     */
    public val limitName: kotlin.String? = builder.limitName
    /**
     * The values of the additional instance type limits.
     */
    public val limitValues: List? = builder.limitValues

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

    override fun toString(): kotlin.String = buildString {
        append("AdditionalLimit(")
        append("limitName=$limitName,")
        append("limitValues=$limitValues")
        append(")")
    }

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

        if (limitName != other.limitName) return false
        if (limitValues != other.limitValues) return false

        return true
    }

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

    public class Builder {
        /**
         * + `MaximumNumberOfDataNodesSupported` - This attribute only applies to master nodes and specifies the maximum number of data nodes of a given instance type a master node can support.
         * + `MaximumNumberOfDataNodesWithoutMasterNode` - This attribute only applies to data nodes and specifies the maximum number of data nodes of a given instance type can exist without a master node governing them.
         */
        public var limitName: kotlin.String? = null
        /**
         * The values of the additional instance type limits.
         */
        public var limitValues: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.AdditionalLimit) : this() {
            this.limitName = x.limitName
            this.limitValues = x.limitValues
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy