com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimeterSpecIngressPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.ServicePerimeterSpecIngressPolicyArgs.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 ServicePerimeterSpecIngressPolicyArgs(
public val ingressFrom: Output? = null,
public val ingressTo: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecIngressPolicyArgs =
com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecIngressPolicyArgs.builder()
.ingressFrom(ingressFrom?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.ingressTo(ingressTo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ServicePerimeterSpecIngressPolicyArgs].
*/
@PulumiTagMarker
public class ServicePerimeterSpecIngressPolicyArgsBuilder 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("yvbgkhmyksdxeiqa")
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("gsoygrmwpxxysmve")
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("ywjrrhgyswupdwbj")
public suspend fun ingressFrom(`value`: ServicePerimeterSpecIngressPolicyIngressFromArgs?) {
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("rsephiqmpjargtuh")
public suspend fun ingressFrom(argument: suspend ServicePerimeterSpecIngressPolicyIngressFromArgsBuilder.() -> Unit) {
val toBeMapped = ServicePerimeterSpecIngressPolicyIngressFromArgsBuilder().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("axcsicmwpaisnffx")
public suspend fun ingressTo(`value`: ServicePerimeterSpecIngressPolicyIngressToArgs?) {
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("tclotagqmtgrxkwp")
public suspend fun ingressTo(argument: suspend ServicePerimeterSpecIngressPolicyIngressToArgsBuilder.() -> Unit) {
val toBeMapped = ServicePerimeterSpecIngressPolicyIngressToArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ingressTo = mapped
}
internal fun build(): ServicePerimeterSpecIngressPolicyArgs =
ServicePerimeterSpecIngressPolicyArgs(
ingressFrom = ingressFrom,
ingressTo = ingressTo,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy