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

com.pulumi.awsnative.cassandra.kotlin.inputs.TableAutoScalingSpecificationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.cassandra.kotlin.inputs

import com.pulumi.awsnative.cassandra.inputs.TableAutoScalingSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Represents the read and write settings used for AutoScaling.
 * @property readCapacityAutoScaling The auto scaling settings for the table's read capacity.
 * @property writeCapacityAutoScaling The auto scaling settings for the table's write capacity.
 */
public data class TableAutoScalingSpecificationArgs(
    public val readCapacityAutoScaling: Output? = null,
    public val writeCapacityAutoScaling: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cassandra.inputs.TableAutoScalingSpecificationArgs =
        com.pulumi.awsnative.cassandra.inputs.TableAutoScalingSpecificationArgs.builder()
            .readCapacityAutoScaling(
                readCapacityAutoScaling?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .writeCapacityAutoScaling(
                writeCapacityAutoScaling?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TableAutoScalingSpecificationArgs].
 */
@PulumiTagMarker
public class TableAutoScalingSpecificationArgsBuilder internal constructor() {
    private var readCapacityAutoScaling: Output? = null

    private var writeCapacityAutoScaling: Output? = null

    /**
     * @param value The auto scaling settings for the table's read capacity.
     */
    @JvmName("fvjbvuhvpjcefgar")
    public suspend fun readCapacityAutoScaling(`value`: Output) {
        this.readCapacityAutoScaling = value
    }

    /**
     * @param value The auto scaling settings for the table's write capacity.
     */
    @JvmName("xykamdfphxowolgi")
    public suspend fun writeCapacityAutoScaling(`value`: Output) {
        this.writeCapacityAutoScaling = value
    }

    /**
     * @param value The auto scaling settings for the table's read capacity.
     */
    @JvmName("qbomptxkjsniycpj")
    public suspend fun readCapacityAutoScaling(`value`: TableAutoScalingSettingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readCapacityAutoScaling = mapped
    }

    /**
     * @param argument The auto scaling settings for the table's read capacity.
     */
    @JvmName("elwltlbtvqdglewg")
    public suspend fun readCapacityAutoScaling(argument: suspend TableAutoScalingSettingArgsBuilder.() -> Unit) {
        val toBeMapped = TableAutoScalingSettingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.readCapacityAutoScaling = mapped
    }

    /**
     * @param value The auto scaling settings for the table's write capacity.
     */
    @JvmName("wfqmtscsjuovhxny")
    public suspend fun writeCapacityAutoScaling(`value`: TableAutoScalingSettingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.writeCapacityAutoScaling = mapped
    }

    /**
     * @param argument The auto scaling settings for the table's write capacity.
     */
    @JvmName("ltatvafeeeagbjwu")
    public suspend fun writeCapacityAutoScaling(argument: suspend TableAutoScalingSettingArgsBuilder.() -> Unit) {
        val toBeMapped = TableAutoScalingSettingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.writeCapacityAutoScaling = mapped
    }

    internal fun build(): TableAutoScalingSpecificationArgs = TableAutoScalingSpecificationArgs(
        readCapacityAutoScaling = readCapacityAutoScaling,
        writeCapacityAutoScaling = writeCapacityAutoScaling,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy