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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimeterStatusIngressPolicyArgs.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.ServicePerimeterStatusIngressPolicyArgs.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 ingressFrom Defines the conditions on the source of a request causing this `IngressPolicy`
 * to apply.
 * Structure is documented below.
 * @property ingressTo Defines the conditions on the `ApiOperation` and request destination that cause
 * this `IngressPolicy` to apply.
 * Structure is documented below.
 */
public data class ServicePerimeterStatusIngressPolicyArgs(
    public val ingressFrom: Output? = null,
    public val ingressTo: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusIngressPolicyArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusIngressPolicyArgs.builder()
            .ingressFrom(ingressFrom?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ingressTo(ingressTo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServicePerimeterStatusIngressPolicyArgs].
 */
@PulumiTagMarker
public class ServicePerimeterStatusIngressPolicyArgsBuilder internal constructor() {
    private var ingressFrom: Output? = null

    private var ingressTo: Output? = null

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

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

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

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

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

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

    internal fun build(): ServicePerimeterStatusIngressPolicyArgs =
        ServicePerimeterStatusIngressPolicyArgs(
            ingressFrom = ingressFrom,
            ingressTo = ingressTo,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy