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

com.pulumi.gcp.gkehub.kotlin.inputs.FeatureMembershipPolicycontrollerArgs.kt Maven / Gradle / Ivy

@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.FeatureMembershipPolicycontrollerArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property policyControllerHubConfig Policy Controller configuration for the cluster. Structure is documented below.
 * @property version Version of Policy Controller to install. Defaults to the latest version.
 */
public data class FeatureMembershipPolicycontrollerArgs(
    public val policyControllerHubConfig: Output,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureMembershipPolicycontrollerArgs =
        com.pulumi.gcp.gkehub.inputs.FeatureMembershipPolicycontrollerArgs.builder()
            .policyControllerHubConfig(
                policyControllerHubConfig.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FeatureMembershipPolicycontrollerArgs].
 */
@PulumiTagMarker
public class FeatureMembershipPolicycontrollerArgsBuilder internal constructor() {
    private var policyControllerHubConfig:
        Output? = null

    private var version: Output? = null

    /**
     * @param value Policy Controller configuration for the cluster. Structure is documented below.
     */
    @JvmName("dokngnomtangjlvf")
    public suspend fun policyControllerHubConfig(`value`: Output) {
        this.policyControllerHubConfig = value
    }

    /**
     * @param value Version of Policy Controller to install. Defaults to the latest version.
     */
    @JvmName("clsrvgvqwjvkhxra")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Policy Controller configuration for the cluster. Structure is documented below.
     */
    @JvmName("vtajgtmbuarapxpm")
    public suspend fun policyControllerHubConfig(`value`: FeatureMembershipPolicycontrollerPolicyControllerHubConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyControllerHubConfig = mapped
    }

    /**
     * @param argument Policy Controller configuration for the cluster. Structure is documented below.
     */
    @JvmName("rbhjhgtsoktbjkoq")
    public suspend fun policyControllerHubConfig(argument: suspend FeatureMembershipPolicycontrollerPolicyControllerHubConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureMembershipPolicycontrollerPolicyControllerHubConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.policyControllerHubConfig = mapped
    }

    /**
     * @param value Version of Policy Controller to install. Defaults to the latest version.
     */
    @JvmName("djrewsfcjmewsckn")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): FeatureMembershipPolicycontrollerArgs =
        FeatureMembershipPolicycontrollerArgs(
            policyControllerHubConfig = policyControllerHubConfig ?: throw
                PulumiNullFieldException("policyControllerHubConfig"),
            version = version,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy