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

com.pulumi.azurenative.datamigration.kotlin.inputs.MongoDbThrottlingSettingsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datamigration.kotlin.inputs

import com.pulumi.azurenative.datamigration.inputs.MongoDbThrottlingSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies resource limits for the migration
 * @property maxParallelism The maximum number of work items (e.g. collection copies) that will be processed in parallel
 * @property minFreeCpu The percentage of CPU time that the migrator will try to avoid using, from 0 to 100
 * @property minFreeMemoryMb The number of megabytes of RAM that the migrator will try to avoid using
 */
public data class MongoDbThrottlingSettingsArgs(
    public val maxParallelism: Output? = null,
    public val minFreeCpu: Output? = null,
    public val minFreeMemoryMb: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datamigration.inputs.MongoDbThrottlingSettingsArgs =
        com.pulumi.azurenative.datamigration.inputs.MongoDbThrottlingSettingsArgs.builder()
            .maxParallelism(maxParallelism?.applyValue({ args0 -> args0 }))
            .minFreeCpu(minFreeCpu?.applyValue({ args0 -> args0 }))
            .minFreeMemoryMb(minFreeMemoryMb?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MongoDbThrottlingSettingsArgs].
 */
@PulumiTagMarker
public class MongoDbThrottlingSettingsArgsBuilder internal constructor() {
    private var maxParallelism: Output? = null

    private var minFreeCpu: Output? = null

    private var minFreeMemoryMb: Output? = null

    /**
     * @param value The maximum number of work items (e.g. collection copies) that will be processed in parallel
     */
    @JvmName("lxhbqngvclawqpbu")
    public suspend fun maxParallelism(`value`: Output) {
        this.maxParallelism = value
    }

    /**
     * @param value The percentage of CPU time that the migrator will try to avoid using, from 0 to 100
     */
    @JvmName("yvrichwieoglfprf")
    public suspend fun minFreeCpu(`value`: Output) {
        this.minFreeCpu = value
    }

    /**
     * @param value The number of megabytes of RAM that the migrator will try to avoid using
     */
    @JvmName("hwsivvlqgsmbwric")
    public suspend fun minFreeMemoryMb(`value`: Output) {
        this.minFreeMemoryMb = value
    }

    /**
     * @param value The maximum number of work items (e.g. collection copies) that will be processed in parallel
     */
    @JvmName("qeuuaujulrbkldtm")
    public suspend fun maxParallelism(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxParallelism = mapped
    }

    /**
     * @param value The percentage of CPU time that the migrator will try to avoid using, from 0 to 100
     */
    @JvmName("uqkipkvdewlwvqrh")
    public suspend fun minFreeCpu(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minFreeCpu = mapped
    }

    /**
     * @param value The number of megabytes of RAM that the migrator will try to avoid using
     */
    @JvmName("amdifcmywoddxjlh")
    public suspend fun minFreeMemoryMb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minFreeMemoryMb = mapped
    }

    internal fun build(): MongoDbThrottlingSettingsArgs = MongoDbThrottlingSettingsArgs(
        maxParallelism = maxParallelism,
        minFreeCpu = minFreeCpu,
        minFreeMemoryMb = minFreeMemoryMb,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy