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

com.pulumi.azurenative.compute.kotlin.inputs.CloudServiceRoleProfileArgs.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.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.CloudServiceRoleProfileArgs.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

/**
 * Describes the role profile for the cloud service.
 * @property roles List of roles for the cloud service.
 */
public data class CloudServiceRoleProfileArgs(
    public val roles: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.CloudServiceRoleProfileArgs =
        com.pulumi.azurenative.compute.inputs.CloudServiceRoleProfileArgs.builder()
            .roles(
                roles?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value List of roles for the cloud service.
     */
    @JvmName("yltmiowpbgobgaqx")
    public suspend fun roles(`value`: Output>) {
        this.roles = value
    }

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

    /**
     * @param values List of roles for the cloud service.
     */
    @JvmName("gdvhqstmvkkuykql")
    public suspend fun roles(values: List>) {
        this.roles = Output.all(values)
    }

    /**
     * @param value List of roles for the cloud service.
     */
    @JvmName("pqrfglbycbrxuoko")
    public suspend fun roles(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param argument List of roles for the cloud service.
     */
    @JvmName("wmxcpocmktycclpb")
    public suspend fun roles(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CloudServiceRoleProfilePropertiesArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.roles = mapped
    }

    /**
     * @param argument List of roles for the cloud service.
     */
    @JvmName("mxjdwgsuxcvaikkw")
    public suspend fun roles(vararg argument: suspend CloudServiceRoleProfilePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CloudServiceRoleProfilePropertiesArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.roles = mapped
    }

    /**
     * @param argument List of roles for the cloud service.
     */
    @JvmName("uctudwwhuxyolife")
    public suspend fun roles(argument: suspend CloudServiceRoleProfilePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CloudServiceRoleProfilePropertiesArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.roles = mapped
    }

    /**
     * @param values List of roles for the cloud service.
     */
    @JvmName("ispirwaqojntwyrg")
    public suspend fun roles(vararg values: CloudServiceRoleProfilePropertiesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    internal fun build(): CloudServiceRoleProfileArgs = CloudServiceRoleProfileArgs(
        roles = roles,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy