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

com.pulumi.azure.cdn.kotlin.inputs.FrontdoorRuleConditionsRemoteAddressConditionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.cdn.kotlin.inputs

import com.pulumi.azure.cdn.inputs.FrontdoorRuleConditionsRemoteAddressConditionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property matchValues For the IP Match or IP Not Match operators: specify one or more IP address ranges. If multiple IP address ranges are specified, they're evaluated using `OR` logic. For the Geo Match or Geo Not Match operators: specify one or more locations using their country code.
 * ->**NOTE:** See the `Specifying IP Address Ranges` section below on how to correctly define the `match_values` field.
 * @property negateCondition If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
 * @property operator The type of the remote address to match. Possible values include `Any`, `GeoMatch` or `IPMatch`. Use the `negate_condition` to specify Not `GeoMatch` or Not `IPMatch`. Defaults to `IPMatch`.
 */
public data class FrontdoorRuleConditionsRemoteAddressConditionArgs(
    public val matchValues: Output>? = null,
    public val negateCondition: Output? = null,
    public val `operator`: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.cdn.inputs.FrontdoorRuleConditionsRemoteAddressConditionArgs =
        com.pulumi.azure.cdn.inputs.FrontdoorRuleConditionsRemoteAddressConditionArgs.builder()
            .matchValues(matchValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .negateCondition(negateCondition?.applyValue({ args0 -> args0 }))
            .`operator`(`operator`?.applyValue({ args0 -> args0 })).build()
}

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

    private var negateCondition: Output? = null

    private var `operator`: Output? = null

    /**
     * @param value For the IP Match or IP Not Match operators: specify one or more IP address ranges. If multiple IP address ranges are specified, they're evaluated using `OR` logic. For the Geo Match or Geo Not Match operators: specify one or more locations using their country code.
     * ->**NOTE:** See the `Specifying IP Address Ranges` section below on how to correctly define the `match_values` field.
     */
    @JvmName("yedlrwbphtfanjcq")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

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

    /**
     * @param values For the IP Match or IP Not Match operators: specify one or more IP address ranges. If multiple IP address ranges are specified, they're evaluated using `OR` logic. For the Geo Match or Geo Not Match operators: specify one or more locations using their country code.
     * ->**NOTE:** See the `Specifying IP Address Ranges` section below on how to correctly define the `match_values` field.
     */
    @JvmName("myfmdrvaehxwxrej")
    public suspend fun matchValues(values: List>) {
        this.matchValues = Output.all(values)
    }

    /**
     * @param value If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
     */
    @JvmName("jvsqfhndmnmegrmy")
    public suspend fun negateCondition(`value`: Output) {
        this.negateCondition = value
    }

    /**
     * @param value The type of the remote address to match. Possible values include `Any`, `GeoMatch` or `IPMatch`. Use the `negate_condition` to specify Not `GeoMatch` or Not `IPMatch`. Defaults to `IPMatch`.
     */
    @JvmName("stgcsswqsvnodvxi")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value For the IP Match or IP Not Match operators: specify one or more IP address ranges. If multiple IP address ranges are specified, they're evaluated using `OR` logic. For the Geo Match or Geo Not Match operators: specify one or more locations using their country code.
     * ->**NOTE:** See the `Specifying IP Address Ranges` section below on how to correctly define the `match_values` field.
     */
    @JvmName("jbjbdxhvackpklbw")
    public suspend fun matchValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param values For the IP Match or IP Not Match operators: specify one or more IP address ranges. If multiple IP address ranges are specified, they're evaluated using `OR` logic. For the Geo Match or Geo Not Match operators: specify one or more locations using their country code.
     * ->**NOTE:** See the `Specifying IP Address Ranges` section below on how to correctly define the `match_values` field.
     */
    @JvmName("dvcncsruboruoqcw")
    public suspend fun matchValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param value If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
     */
    @JvmName("tlcwlcnttqlskqee")
    public suspend fun negateCondition(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateCondition = mapped
    }

    /**
     * @param value The type of the remote address to match. Possible values include `Any`, `GeoMatch` or `IPMatch`. Use the `negate_condition` to specify Not `GeoMatch` or Not `IPMatch`. Defaults to `IPMatch`.
     */
    @JvmName("lihcvqohgguqmtus")
    public suspend fun `operator`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    internal fun build(): FrontdoorRuleConditionsRemoteAddressConditionArgs =
        FrontdoorRuleConditionsRemoteAddressConditionArgs(
            matchValues = matchValues,
            negateCondition = negateCondition,
            `operator` = `operator`,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy