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

com.pulumi.awsnative.refactorspaces.kotlin.EnvironmentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.refactorspaces.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.refactorspaces.EnvironmentArgs.builder
import com.pulumi.awsnative.refactorspaces.kotlin.enums.EnvironmentNetworkFabricType
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

/**
 * Definition of AWS::RefactorSpaces::Environment Resource Type
 * @property description A description of the environment.
 * @property name The name of the environment.
 * @property networkFabricType The network fabric type of the environment.
 * @property tags Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
 */
public data class EnvironmentArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val networkFabricType: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.refactorspaces.EnvironmentArgs =
        com.pulumi.awsnative.refactorspaces.EnvironmentArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .networkFabricType(networkFabricType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EnvironmentArgs].
 */
@PulumiTagMarker
public class EnvironmentArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var networkFabricType: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A description of the environment.
     */
    @JvmName("rqvgstbemwubmxkn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the environment.
     */
    @JvmName("dlaljrgaiibmulbd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The network fabric type of the environment.
     */
    @JvmName("irtnfpohrlodqwkm")
    public suspend fun networkFabricType(`value`: Output) {
        this.networkFabricType = value
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("drawhtwaaitprriy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("idxoqvhmtfjrnqaw")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A description of the environment.
     */
    @JvmName("rupnpspyriigjiup")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the environment.
     */
    @JvmName("ggxntkhlxsmkvbsb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The network fabric type of the environment.
     */
    @JvmName("rtbxriqehywqiuiw")
    public suspend fun networkFabricType(`value`: EnvironmentNetworkFabricType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkFabricType = mapped
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("gpovlsmwidrretiv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("yafymfyctlsdeuni")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("mutusvhwpmqujcdq")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("bnleihuvexsatfxm")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("yxhhaivubkpgvgca")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        description = description,
        name = name,
        networkFabricType = networkFabricType,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy