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

com.pulumi.azurenative.netapp.kotlin.inputs.VolumeGroupMetaDataArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.netapp.kotlin.inputs

import com.pulumi.azurenative.netapp.inputs.VolumeGroupMetaDataArgs.builder
import com.pulumi.azurenative.netapp.kotlin.enums.ApplicationType
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Volume group properties
 * @property applicationIdentifier Application specific identifier
 * @property applicationType Application Type
 * @property deploymentSpecId Application specific identifier of deployment rules for the volume group
 * @property globalPlacementRules Application specific placement rules for the volume group
 * @property groupDescription Group Description
 */
public data class VolumeGroupMetaDataArgs(
    public val applicationIdentifier: Output? = null,
    public val applicationType: Output>? = null,
    public val deploymentSpecId: Output? = null,
    public val globalPlacementRules: Output>? = null,
    public val groupDescription: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.netapp.inputs.VolumeGroupMetaDataArgs =
        com.pulumi.azurenative.netapp.inputs.VolumeGroupMetaDataArgs.builder()
            .applicationIdentifier(applicationIdentifier?.applyValue({ args0 -> args0 }))
            .applicationType(
                applicationType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .deploymentSpecId(deploymentSpecId?.applyValue({ args0 -> args0 }))
            .globalPlacementRules(
                globalPlacementRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .groupDescription(groupDescription?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VolumeGroupMetaDataArgs].
 */
@PulumiTagMarker
public class VolumeGroupMetaDataArgsBuilder internal constructor() {
    private var applicationIdentifier: Output? = null

    private var applicationType: Output>? = null

    private var deploymentSpecId: Output? = null

    private var globalPlacementRules: Output>? = null

    private var groupDescription: Output? = null

    /**
     * @param value Application specific identifier
     */
    @JvmName("pwsxlkwisxksikju")
    public suspend fun applicationIdentifier(`value`: Output) {
        this.applicationIdentifier = value
    }

    /**
     * @param value Application Type
     */
    @JvmName("roqnguljvucwojwm")
    public suspend fun applicationType(`value`: Output>) {
        this.applicationType = value
    }

    /**
     * @param value Application specific identifier of deployment rules for the volume group
     */
    @JvmName("rnkwepsqbeurpkos")
    public suspend fun deploymentSpecId(`value`: Output) {
        this.deploymentSpecId = value
    }

    /**
     * @param value Application specific placement rules for the volume group
     */
    @JvmName("imdiwyqwxrjysfgl")
    public suspend fun globalPlacementRules(`value`: Output>) {
        this.globalPlacementRules = value
    }

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

    /**
     * @param values Application specific placement rules for the volume group
     */
    @JvmName("ichomrfmxkuqlyyb")
    public suspend fun globalPlacementRules(values: List>) {
        this.globalPlacementRules = Output.all(values)
    }

    /**
     * @param value Group Description
     */
    @JvmName("qyetlalwxarxxndc")
    public suspend fun groupDescription(`value`: Output) {
        this.groupDescription = value
    }

    /**
     * @param value Application specific identifier
     */
    @JvmName("mryvratnfknjxjqg")
    public suspend fun applicationIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationIdentifier = mapped
    }

    /**
     * @param value Application Type
     */
    @JvmName("xqbsdtnibxafuukt")
    public suspend fun applicationType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationType = mapped
    }

    /**
     * @param value Application Type
     */
    @JvmName("boslpkmsghnubbkw")
    public fun applicationType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationType = mapped
    }

    /**
     * @param value Application Type
     */
    @JvmName("kpfjrbnxckkqwsyk")
    public fun applicationType(`value`: ApplicationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationType = mapped
    }

    /**
     * @param value Application specific identifier of deployment rules for the volume group
     */
    @JvmName("liywalxeshmpyvhq")
    public suspend fun deploymentSpecId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deploymentSpecId = mapped
    }

    /**
     * @param value Application specific placement rules for the volume group
     */
    @JvmName("qlolowwowydvpjhq")
    public suspend fun globalPlacementRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.globalPlacementRules = mapped
    }

    /**
     * @param argument Application specific placement rules for the volume group
     */
    @JvmName("wtdbpqnlblwvycte")
    public suspend fun globalPlacementRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PlacementKeyValuePairsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.globalPlacementRules = mapped
    }

    /**
     * @param argument Application specific placement rules for the volume group
     */
    @JvmName("fjtwbngwlwrtlbbt")
    public suspend fun globalPlacementRules(vararg argument: suspend PlacementKeyValuePairsArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PlacementKeyValuePairsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.globalPlacementRules = mapped
    }

    /**
     * @param argument Application specific placement rules for the volume group
     */
    @JvmName("artswtcpeeipdvdg")
    public suspend fun globalPlacementRules(argument: suspend PlacementKeyValuePairsArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PlacementKeyValuePairsArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.globalPlacementRules = mapped
    }

    /**
     * @param values Application specific placement rules for the volume group
     */
    @JvmName("juqncilxqkvjnoqp")
    public suspend fun globalPlacementRules(vararg values: PlacementKeyValuePairsArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.globalPlacementRules = mapped
    }

    /**
     * @param value Group Description
     */
    @JvmName("ckuaoqagpbmhjpdr")
    public suspend fun groupDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupDescription = mapped
    }

    internal fun build(): VolumeGroupMetaDataArgs = VolumeGroupMetaDataArgs(
        applicationIdentifier = applicationIdentifier,
        applicationType = applicationType,
        deploymentSpecId = deploymentSpecId,
        globalPlacementRules = globalPlacementRules,
        groupDescription = groupDescription,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy