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

com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastorePartitionsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iotanalytics.kotlin.inputs

import com.pulumi.awsnative.iotanalytics.inputs.DatastorePartitionsArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property partitions A list of partition dimensions in a data store.
 */
public data class DatastorePartitionsArgs(
    public val partitions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.DatastorePartitionsArgs =
        com.pulumi.awsnative.iotanalytics.inputs.DatastorePartitionsArgs.builder()
            .partitions(
                partitions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DatastorePartitionsArgs].
 */
@PulumiTagMarker
public class DatastorePartitionsArgsBuilder internal constructor() {
    private var partitions: Output>? = null

    /**
     * @param value A list of partition dimensions in a data store.
     */
    @JvmName("ksbuguvqltyljyyd")
    public suspend fun partitions(`value`: Output>) {
        this.partitions = value
    }

    @JvmName("kqpgoqhefeqarcns")
    public suspend fun partitions(vararg values: Output) {
        this.partitions = Output.all(values.asList())
    }

    /**
     * @param values A list of partition dimensions in a data store.
     */
    @JvmName("ddbksrfurjgedyxw")
    public suspend fun partitions(values: List>) {
        this.partitions = Output.all(values)
    }

    /**
     * @param value A list of partition dimensions in a data store.
     */
    @JvmName("dogrniyrmlysxngs")
    public suspend fun partitions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.partitions = mapped
    }

    /**
     * @param argument A list of partition dimensions in a data store.
     */
    @JvmName("igjchivbpcuvvylu")
    public suspend fun partitions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DatastorePartitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.partitions = mapped
    }

    /**
     * @param argument A list of partition dimensions in a data store.
     */
    @JvmName("hsekwsehapicarsg")
    public suspend fun partitions(vararg argument: suspend DatastorePartitionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DatastorePartitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.partitions = mapped
    }

    /**
     * @param argument A list of partition dimensions in a data store.
     */
    @JvmName("eoefwgnrvynjykbv")
    public suspend fun partitions(argument: suspend DatastorePartitionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DatastorePartitionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.partitions = mapped
    }

    /**
     * @param values A list of partition dimensions in a data store.
     */
    @JvmName("wsumttqkudobjwos")
    public suspend fun partitions(vararg values: DatastorePartitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.partitions = mapped
    }

    internal fun build(): DatastorePartitionsArgs = DatastorePartitionsArgs(
        partitions = partitions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy