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

com.pulumi.azurenative.containerservice.kotlin.inputs.ManagedClusterNATGatewayProfileArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.containerservice.kotlin.inputs

import com.pulumi.azurenative.containerservice.inputs.ManagedClusterNATGatewayProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Profile of the managed cluster NAT gateway.
 * @property effectiveOutboundIPs The effective outbound IP resources of the cluster NAT gateway.
 * @property idleTimeoutInMinutes Desired outbound flow idle timeout in minutes. Allowed values are in the range of 4 to 120 (inclusive). The default value is 4 minutes.
 * @property managedOutboundIPProfile Profile of the managed outbound IP resources of the cluster NAT gateway.
 */
public data class ManagedClusterNATGatewayProfileArgs(
    public val effectiveOutboundIPs: Output>? = null,
    public val idleTimeoutInMinutes: Output? = null,
    public val managedOutboundIPProfile: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerservice.inputs.ManagedClusterNATGatewayProfileArgs =
        com.pulumi.azurenative.containerservice.inputs.ManagedClusterNATGatewayProfileArgs.builder()
            .effectiveOutboundIPs(
                effectiveOutboundIPs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .idleTimeoutInMinutes(idleTimeoutInMinutes?.applyValue({ args0 -> args0 }))
            .managedOutboundIPProfile(
                managedOutboundIPProfile?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var idleTimeoutInMinutes: Output? = null

    private var managedOutboundIPProfile: Output? = null

    /**
     * @param value The effective outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("hadlpfdadutbbbnq")
    public suspend fun effectiveOutboundIPs(`value`: Output>) {
        this.effectiveOutboundIPs = value
    }

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

    /**
     * @param values The effective outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("ccyginrrnbsleirv")
    public suspend fun effectiveOutboundIPs(values: List>) {
        this.effectiveOutboundIPs = Output.all(values)
    }

    /**
     * @param value Desired outbound flow idle timeout in minutes. Allowed values are in the range of 4 to 120 (inclusive). The default value is 4 minutes.
     */
    @JvmName("uxwkssoydxsjdanb")
    public suspend fun idleTimeoutInMinutes(`value`: Output) {
        this.idleTimeoutInMinutes = value
    }

    /**
     * @param value Profile of the managed outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("oylmnssexriyiite")
    public suspend fun managedOutboundIPProfile(`value`: Output) {
        this.managedOutboundIPProfile = value
    }

    /**
     * @param value The effective outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("nktsfiurxcyrugge")
    public suspend fun effectiveOutboundIPs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param argument The effective outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("drpimdkrafawqkhe")
    public suspend fun effectiveOutboundIPs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResourceReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param argument The effective outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("xmehublvxbaugsfd")
    public suspend fun effectiveOutboundIPs(vararg argument: suspend ResourceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResourceReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param argument The effective outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("syqynglltfdyragq")
    public suspend fun effectiveOutboundIPs(argument: suspend ResourceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceReferenceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param values The effective outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("ussegokyrlbmhqwm")
    public suspend fun effectiveOutboundIPs(vararg values: ResourceReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param value Desired outbound flow idle timeout in minutes. Allowed values are in the range of 4 to 120 (inclusive). The default value is 4 minutes.
     */
    @JvmName("kifnlhrlywhcyocr")
    public suspend fun idleTimeoutInMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleTimeoutInMinutes = mapped
    }

    /**
     * @param value Profile of the managed outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("xngxqpvruqnjnwwc")
    public suspend fun managedOutboundIPProfile(`value`: ManagedClusterManagedOutboundIPProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedOutboundIPProfile = mapped
    }

    /**
     * @param argument Profile of the managed outbound IP resources of the cluster NAT gateway.
     */
    @JvmName("fvogwyrgmyyokiba")
    public suspend fun managedOutboundIPProfile(argument: suspend ManagedClusterManagedOutboundIPProfileArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterManagedOutboundIPProfileArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.managedOutboundIPProfile = mapped
    }

    internal fun build(): ManagedClusterNATGatewayProfileArgs = ManagedClusterNATGatewayProfileArgs(
        effectiveOutboundIPs = effectiveOutboundIPs,
        idleTimeoutInMinutes = idleTimeoutInMinutes,
        managedOutboundIPProfile = managedOutboundIPProfile,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy