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

com.pulumi.gcp.apphub.kotlin.inputs.ServiceAttributesArgs.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.ServiceAttributesArgs.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 ServiceAttributesArgs(
    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.ServiceAttributesArgs =
        com.pulumi.gcp.apphub.inputs.ServiceAttributesArgs.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 [ServiceAttributesArgs].
 */
@PulumiTagMarker
public class ServiceAttributesArgsBuilder 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("irqxihriphkxxoyr")
    public suspend fun businessOwners(`value`: Output>) {
        this.businessOwners = value
    }

    @JvmName("miildeujpqyttqlg")
    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("lxpdbbenlthmwvqs")
    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("pdloidxdctgifeku")
    public suspend fun criticality(`value`: Output) {
        this.criticality = value
    }

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

    @JvmName("keouktbpaiqpmefj")
    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("krypbtbabtulkqmi")
    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("ibhcrvekawrecnah")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

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

    @JvmName("lamukihiaivokdin")
    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("iqnvlphsciyigsey")
    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("fdgumkoqiiblxcyq")
    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("htskkivcyypwxbpg")
    public suspend fun businessOwners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceAttributesBusinessOwnerArgsBuilder().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("hiyfybjydwgcdlmh")
    public suspend fun businessOwners(vararg argument: suspend ServiceAttributesBusinessOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServiceAttributesBusinessOwnerArgsBuilder().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("bacqpxyaejkmyoil")
    public suspend fun businessOwners(argument: suspend ServiceAttributesBusinessOwnerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServiceAttributesBusinessOwnerArgsBuilder().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("jnbsywbbneorhaxd")
    public suspend fun businessOwners(vararg values: ServiceAttributesBusinessOwnerArgs) {
        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("bupoqohrxufiquyw")
    public suspend fun criticality(`value`: ServiceAttributesCriticalityArgs?) {
        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("flmonsomrxbhemog")
    public suspend fun criticality(argument: suspend ServiceAttributesCriticalityArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAttributesCriticalityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.criticality = mapped
    }

    /**
     * @param value Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("hpnkgcbhifgecthi")
    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("kpidjhqitlnouomq")
    public suspend fun developerOwners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceAttributesDeveloperOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.developerOwners = mapped
    }

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

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

    /**
     * @param values Developer team that owns development and coding.
     * Structure is documented below.
     */
    @JvmName("qgxagtokbimpttyi")
    public suspend fun developerOwners(vararg values: ServiceAttributesDeveloperOwnerArgs) {
        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("bbbvpipjrwwlnyvn")
    public suspend fun environment(`value`: ServiceAttributesEnvironmentArgs?) {
        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("jedsraopctdboott")
    public suspend fun environment(argument: suspend ServiceAttributesEnvironmentArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAttributesEnvironmentArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.environment = mapped
    }

    /**
     * @param value Operator team that ensures runtime and operations.
     * Structure is documented below.
     */
    @JvmName("yjkwbynwjtcengvn")
    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("gqcmoxflcavuustx")
    public suspend fun operatorOwners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceAttributesOperatorOwnerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.operatorOwners = mapped
    }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy