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

com.pulumi.gcp.apphub.kotlin.inputs.WorkloadAttributesArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.apphub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.apphub.inputs.WorkloadAttributesArgs.builder
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 businessOwners Business team that ensures user needs are met and value is delivered
 * Structure is documented below.
 * @property criticality Criticality of the Application, Service, or Workload
 * Structure is documented below.
 * @property developerOwners Developer team that owns development and coding.
 * Structure is documented below.
 * @property environment Environment of the Application, Service, or Workload
 * Structure is documented below.
 * @property operatorOwners Operator team that ensures runtime and operations.
 * Structure is documented below.
 */
public data class WorkloadAttributesArgs(
    public val businessOwners: Output>? = null,
    public val criticality: Output? = null,
    public val developerOwners: Output>? = null,
    public val environment: Output? = null,
    public val operatorOwners: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.apphub.inputs.WorkloadAttributesArgs =
        com.pulumi.gcp.apphub.inputs.WorkloadAttributesArgs.builder()
            .businessOwners(
                businessOwners?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .criticality(criticality?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .developerOwners(
                developerOwners?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .environment(environment?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .operatorOwners(
                operatorOwners?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var criticality: Output? = null

    private var developerOwners: Output>? = null

    private var environment: Output? = null

    private var operatorOwners: Output>? = null

    /**
     * @param value Business team that ensures user needs are met and value is delivered
     * Structure is documented below.
     */
    @JvmName("kixyvhabpnpfpnkh")
    public suspend fun businessOwners(`value`: Output>) {
        this.businessOwners = value
    }

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

    /**
     * @param values Business team that ensures user needs are met and value is delivered
     * Structure is documented below.
     */
    @JvmName("ocxniosxbjtlvhhl")
    public suspend fun businessOwners(values: List>) {
        this.businessOwners = Output.all(values)
    }

    /**
     * @param value Criticality of the Application, Service, or Workload
     * Structure is documented below.
     */
    @JvmName("qjmrypbqogtcqeyg")
    public suspend fun criticality(`value`: Output) {
        this.criticality = value
    }

    /**
     * @param value Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("ywrvjadeyuxxjyal")
    public suspend fun developerOwners(`value`: Output>) {
        this.developerOwners = value
    }

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

    /**
     * @param values Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("tudlluctqbtyaypu")
    public suspend fun developerOwners(values: List>) {
        this.developerOwners = Output.all(values)
    }

    /**
     * @param value Environment of the Application, Service, or Workload
     * Structure is documented below.
     */
    @JvmName("nwlqudpcvwbgyfjw")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

    /**
     * @param value Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("fuaiboqfcwdpmhrf")
    public suspend fun operatorOwners(`value`: Output>) {
        this.operatorOwners = value
    }

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

    /**
     * @param values Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("ysgnynukggnlsies")
    public suspend fun operatorOwners(values: List>) {
        this.operatorOwners = Output.all(values)
    }

    /**
     * @param value Business team that ensures user needs are met and value is delivered
     * Structure is documented below.
     */
    @JvmName("ejltdeuubskyrrsa")
    public suspend fun businessOwners(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.businessOwners = mapped
    }

    /**
     * @param argument Business team that ensures user needs are met and value is delivered
     * Structure is documented below.
     */
    @JvmName("pyblhedfidtsguvc")
    public suspend fun businessOwners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkloadAttributesBusinessOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.businessOwners = mapped
    }

    /**
     * @param argument Business team that ensures user needs are met and value is delivered
     * Structure is documented below.
     */
    @JvmName("xidgkkeypqkegkty")
    public suspend fun businessOwners(vararg argument: suspend WorkloadAttributesBusinessOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkloadAttributesBusinessOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.businessOwners = mapped
    }

    /**
     * @param argument Business team that ensures user needs are met and value is delivered
     * Structure is documented below.
     */
    @JvmName("xydlygitgrhophsx")
    public suspend fun businessOwners(argument: suspend WorkloadAttributesBusinessOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkloadAttributesBusinessOwnerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.businessOwners = mapped
    }

    /**
     * @param values Business team that ensures user needs are met and value is delivered
     * Structure is documented below.
     */
    @JvmName("eywrqchlmwslcmsk")
    public suspend fun businessOwners(vararg values: WorkloadAttributesBusinessOwnerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.businessOwners = mapped
    }

    /**
     * @param value Criticality of the Application, Service, or Workload
     * Structure is documented below.
     */
    @JvmName("vbqqwvemjkkwxqxa")
    public suspend fun criticality(`value`: WorkloadAttributesCriticalityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.criticality = mapped
    }

    /**
     * @param argument Criticality of the Application, Service, or Workload
     * Structure is documented below.
     */
    @JvmName("qgvpswsoyirxispk")
    public suspend fun criticality(argument: suspend WorkloadAttributesCriticalityArgsBuilder.() -> Unit) {
        val toBeMapped = WorkloadAttributesCriticalityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.criticality = mapped
    }

    /**
     * @param value Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("imjslxaqkjsntomc")
    public suspend fun developerOwners(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.developerOwners = mapped
    }

    /**
     * @param argument Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("hhwqldxrjwjkibrf")
    public suspend fun developerOwners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkloadAttributesDeveloperOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.developerOwners = mapped
    }

    /**
     * @param argument Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("bvtijxqwilhemfij")
    public suspend fun developerOwners(vararg argument: suspend WorkloadAttributesDeveloperOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkloadAttributesDeveloperOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.developerOwners = mapped
    }

    /**
     * @param argument Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("vbbynmwnbivkckrt")
    public suspend fun developerOwners(argument: suspend WorkloadAttributesDeveloperOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkloadAttributesDeveloperOwnerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.developerOwners = mapped
    }

    /**
     * @param values Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("gwbysrxuimabcmxs")
    public suspend fun developerOwners(vararg values: WorkloadAttributesDeveloperOwnerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.developerOwners = mapped
    }

    /**
     * @param value Environment of the Application, Service, or Workload
     * Structure is documented below.
     */
    @JvmName("htrierlwuplmqbvj")
    public suspend fun environment(`value`: WorkloadAttributesEnvironmentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param argument Environment of the Application, Service, or Workload
     * Structure is documented below.
     */
    @JvmName("xjrocrusnhlaolvr")
    public suspend fun environment(argument: suspend WorkloadAttributesEnvironmentArgsBuilder.() -> Unit) {
        val toBeMapped = WorkloadAttributesEnvironmentArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.environment = mapped
    }

    /**
     * @param value Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("jiypdayipdkdpxwt")
    public suspend fun operatorOwners(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.operatorOwners = mapped
    }

    /**
     * @param argument Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("jbduafkagptsljis")
    public suspend fun operatorOwners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkloadAttributesOperatorOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.operatorOwners = mapped
    }

    /**
     * @param argument Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("xyuqykyxekcnsmaj")
    public suspend fun operatorOwners(vararg argument: suspend WorkloadAttributesOperatorOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkloadAttributesOperatorOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.operatorOwners = mapped
    }

    /**
     * @param argument Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("sdawrsitsdqundjh")
    public suspend fun operatorOwners(argument: suspend WorkloadAttributesOperatorOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkloadAttributesOperatorOwnerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.operatorOwners = mapped
    }

    /**
     * @param values Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("adluyotpkqrokmbd")
    public suspend fun operatorOwners(vararg values: WorkloadAttributesOperatorOwnerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operatorOwners = mapped
    }

    internal fun build(): WorkloadAttributesArgs = WorkloadAttributesArgs(
        businessOwners = businessOwners,
        criticality = criticality,
        developerOwners = developerOwners,
        environment = environment,
        operatorOwners = operatorOwners,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy