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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimetersServicePerimeterStatusEgressPolicyArgs.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.accesscontextmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterStatusEgressPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property egressFrom Defines conditions on the source of a request causing this `EgressPolicy` to apply.
 * Structure is documented below.
 * @property egressTo Defines the conditions on the `ApiOperation` and destination resources that
 * cause this `EgressPolicy` to apply.
 * Structure is documented below.
 */
public data class ServicePerimetersServicePerimeterStatusEgressPolicyArgs(
    public val egressFrom: Output? =
        null,
    public val egressTo: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterStatusEgressPolicyArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterStatusEgressPolicyArgs.builder()
            .egressFrom(egressFrom?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .egressTo(egressTo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServicePerimetersServicePerimeterStatusEgressPolicyArgs].
 */
@PulumiTagMarker
public class ServicePerimetersServicePerimeterStatusEgressPolicyArgsBuilder internal constructor() {
    private var egressFrom: Output? =
        null

    private var egressTo: Output? =
        null

    /**
     * @param value Defines conditions on the source of a request causing this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("nspargnkipwxgeln")
    public suspend fun egressFrom(`value`: Output) {
        this.egressFrom = value
    }

    /**
     * @param value Defines the conditions on the `ApiOperation` and destination resources that
     * cause this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("wckcbannuxgusedp")
    public suspend fun egressTo(`value`: Output) {
        this.egressTo = value
    }

    /**
     * @param value Defines conditions on the source of a request causing this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("opdtgketimtdsahp")
    public suspend fun egressFrom(`value`: ServicePerimetersServicePerimeterStatusEgressPolicyEgressFromArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressFrom = mapped
    }

    /**
     * @param argument Defines conditions on the source of a request causing this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("vxiwftvwmjnablnl")
    public suspend fun egressFrom(argument: suspend ServicePerimetersServicePerimeterStatusEgressPolicyEgressFromArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServicePerimetersServicePerimeterStatusEgressPolicyEgressFromArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.egressFrom = mapped
    }

    /**
     * @param value Defines the conditions on the `ApiOperation` and destination resources that
     * cause this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("csdtqihaysfotddt")
    public suspend fun egressTo(`value`: ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressTo = mapped
    }

    /**
     * @param argument Defines the conditions on the `ApiOperation` and destination resources that
     * cause this `EgressPolicy` to apply.
     * Structure is documented below.
     */
    @JvmName("tkjrswudtgtoadwx")
    public suspend fun egressTo(argument: suspend ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.egressTo = mapped
    }

    internal fun build(): ServicePerimetersServicePerimeterStatusEgressPolicyArgs =
        ServicePerimetersServicePerimeterStatusEgressPolicyArgs(
            egressFrom = egressFrom,
            egressTo = egressTo,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy