com.pulumi.azure.eventhub.kotlin.inputs.EventGridTopicInboundIpRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.eventhub.kotlin.inputs
import com.pulumi.azure.eventhub.inputs.EventGridTopicInboundIpRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property action The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
* @property ipMask The IP mask (CIDR) to match on.
*/
public data class EventGridTopicInboundIpRuleArgs(
public val action: Output? = null,
public val ipMask: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.eventhub.inputs.EventGridTopicInboundIpRuleArgs =
com.pulumi.azure.eventhub.inputs.EventGridTopicInboundIpRuleArgs.builder()
.action(action?.applyValue({ args0 -> args0 }))
.ipMask(ipMask.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EventGridTopicInboundIpRuleArgs].
*/
@PulumiTagMarker
public class EventGridTopicInboundIpRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var ipMask: Output? = null
/**
* @param value The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
*/
@JvmName("soqvkkbhnrakclwf")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value The IP mask (CIDR) to match on.
*/
@JvmName("jaijltdvmgurpcxr")
public suspend fun ipMask(`value`: Output) {
this.ipMask = value
}
/**
* @param value The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
*/
@JvmName("unuvxynxyacaaobu")
public suspend fun action(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value The IP mask (CIDR) to match on.
*/
@JvmName("nhmnvuxtdeahmvdo")
public suspend fun ipMask(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipMask = mapped
}
internal fun build(): EventGridTopicInboundIpRuleArgs = EventGridTopicInboundIpRuleArgs(
action = action,
ipMask = ipMask ?: throw PulumiNullFieldException("ipMask"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy