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

@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("fvjcewwnnrgnvwdi")
    public suspend fun businessOwners(`value`: Output>) {
        this.businessOwners = value
    }

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

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

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

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

    @JvmName("sqkwwmjgojfdikct")
    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("wdgsetghbpflyhvh")
    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("ykehentrngjdmqqa")
    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("jbubsqbestdshuyf")
    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("hubdkakgbnlbamjw")
    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("idgumpchdaykdgvw")
    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("ogdtuqcxxumnobqd")
    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("omsysocigpoqhguu")
    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("nvscnttgttsivrht")
    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("quxojuvucmkqjqgq")
    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("vjapqvsfjovbwpvv")
    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("ugtbragahymprgub")
    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("klqcyxjsnsgedmor")
    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("eqbrwigtcpioliat")
    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("oucdpwaiwcupqfuc")
    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("pryxserbsehaqjxt")
    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("wxdmaginprnhsaah")
    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("mumefqfyntuhshgv")
    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("yxxufjmivclqffft")
    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("pyhmqlfrvuaqccwk")
    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("rulumgrnluheqghr")
    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