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

com.pulumi.gcp.gkehub.kotlin.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs.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.gkehub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property component The identifier for this object. Format specified above.
 * @property containerResources Container resource requirements.
 * Structure is documented below.
 * @property podAffinity Pod affinity configuration.
 * Possible values are: `AFFINITY_UNSPECIFIED`, `NO_AFFINITY`, `ANTI_AFFINITY`.
 * @property podTolerations Pod tolerations of node taints.
 * Structure is documented below.
 * @property replicaCount Pod replica count.
 */
public data class
FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs(
    public val component: Output,
    public val containerResources: Output? =
        null,
    public val podAffinity: Output? = null,
    public val podTolerations: Output>? =
        null,
    public val replicaCount: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs =
        com.pulumi.gcp.gkehub.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs.builder()
            .component(component.applyValue({ args0 -> args0 }))
            .containerResources(
                containerResources?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .podAffinity(podAffinity?.applyValue({ args0 -> args0 }))
            .podTolerations(
                podTolerations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .replicaCount(replicaCount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs].
 */
@PulumiTagMarker
public class
FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgsBuilder
internal constructor() {
    private var component: Output? = null

    private var containerResources:
        Output? =
        null

    private var podAffinity: Output? = null

    private var podTolerations:
        Output>? =
        null

    private var replicaCount: Output? = null

    /**
     * @param value The identifier for this object. Format specified above.
     */
    @JvmName("fosbmbqvyqcerisc")
    public suspend fun component(`value`: Output) {
        this.component = value
    }

    /**
     * @param value Container resource requirements.
     * Structure is documented below.
     */
    @JvmName("sjwdedycmhofcmap")
    public suspend fun containerResources(`value`: Output) {
        this.containerResources = value
    }

    /**
     * @param value Pod affinity configuration.
     * Possible values are: `AFFINITY_UNSPECIFIED`, `NO_AFFINITY`, `ANTI_AFFINITY`.
     */
    @JvmName("rkjxkgyvdsajmmnf")
    public suspend fun podAffinity(`value`: Output) {
        this.podAffinity = value
    }

    /**
     * @param value Pod tolerations of node taints.
     * Structure is documented below.
     */
    @JvmName("moegwrkuqtmfoiuw")
    public suspend fun podTolerations(`value`: Output>) {
        this.podTolerations = value
    }

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

    /**
     * @param values Pod tolerations of node taints.
     * Structure is documented below.
     */
    @JvmName("bjarpxmrlrvbambc")
    public suspend fun podTolerations(values: List>) {
        this.podTolerations = Output.all(values)
    }

    /**
     * @param value Pod replica count.
     */
    @JvmName("hjvajdgibcywmhiw")
    public suspend fun replicaCount(`value`: Output) {
        this.replicaCount = value
    }

    /**
     * @param value The identifier for this object. Format specified above.
     */
    @JvmName("xwpqkhkdbqlhwjej")
    public suspend fun component(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.component = mapped
    }

    /**
     * @param value Container resource requirements.
     * Structure is documented below.
     */
    @JvmName("vnpkjptsvuixfvre")
    public suspend fun containerResources(`value`: FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerResources = mapped
    }

    /**
     * @param argument Container resource requirements.
     * Structure is documented below.
     */
    @JvmName("tknyhirijwihdnwb")
    public suspend fun containerResources(argument: suspend FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.containerResources = mapped
    }

    /**
     * @param value Pod affinity configuration.
     * Possible values are: `AFFINITY_UNSPECIFIED`, `NO_AFFINITY`, `ANTI_AFFINITY`.
     */
    @JvmName("iecmolefqdyunafo")
    public suspend fun podAffinity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.podAffinity = mapped
    }

    /**
     * @param value Pod tolerations of node taints.
     * Structure is documented below.
     */
    @JvmName("ukaxnucigfgxxwed")
    public suspend fun podTolerations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.podTolerations = mapped
    }

    /**
     * @param argument Pod tolerations of node taints.
     * Structure is documented below.
     */
    @JvmName("vplrqiagjepjvdto")
    public suspend fun podTolerations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigPodTolerationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.podTolerations = mapped
    }

    /**
     * @param argument Pod tolerations of node taints.
     * Structure is documented below.
     */
    @JvmName("aqktqtwoobtrcxak")
    public suspend fun podTolerations(vararg argument: suspend FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigPodTolerationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigPodTolerationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.podTolerations = mapped
    }

    /**
     * @param argument Pod tolerations of node taints.
     * Structure is documented below.
     */
    @JvmName("ouqbfuglwqyebyha")
    public suspend fun podTolerations(argument: suspend FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigPodTolerationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigPodTolerationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.podTolerations = mapped
    }

    /**
     * @param values Pod tolerations of node taints.
     * Structure is documented below.
     */
    @JvmName("anhrashspqyrtlmc")
    public suspend fun podTolerations(vararg values: FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigPodTolerationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.podTolerations = mapped
    }

    /**
     * @param value Pod replica count.
     */
    @JvmName("hsxjwraoymhjeify")
    public suspend fun replicaCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicaCount = mapped
    }

    internal fun build(): FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs =
        FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigArgs(
            component = component ?: throw PulumiNullFieldException("component"),
            containerResources = containerResources,
            podAffinity = podAffinity,
            podTolerations = podTolerations,
            replicaCount = replicaCount,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy