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

commonMain.aws.sdk.kotlin.services.opensearchserverless.model.UpdateAccountSettingsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.opensearchserverless.model



public class UpdateAccountSettingsRequest private constructor(builder: Builder) {
    /**
     * The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see [Managing capacity limits for Amazon OpenSearch Serverless](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html).
     */
    public val capacityLimits: aws.sdk.kotlin.services.opensearchserverless.model.CapacityLimits? = builder.capacityLimits

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAccountSettingsRequest(")
        append("capacityLimits=$capacityLimits")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = capacityLimits?.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 UpdateAccountSettingsRequest

        if (capacityLimits != other.capacityLimits) return false

        return true
    }

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

    public class Builder {
        /**
         * The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see [Managing capacity limits for Amazon OpenSearch Serverless](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html).
         */
        public var capacityLimits: aws.sdk.kotlin.services.opensearchserverless.model.CapacityLimits? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.UpdateAccountSettingsRequest) : this() {
            this.capacityLimits = x.capacityLimits
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy