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

com.pulumi.azurenative.cloudngfw.kotlin.LocalRuleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.cloudngfw.kotlin

import com.pulumi.azurenative.cloudngfw.LocalRuleArgs.builder
import com.pulumi.azurenative.cloudngfw.kotlin.enums.ActionEnum
import com.pulumi.azurenative.cloudngfw.kotlin.enums.BooleanEnum
import com.pulumi.azurenative.cloudngfw.kotlin.enums.DecryptionRuleTypeEnum
import com.pulumi.azurenative.cloudngfw.kotlin.enums.StateEnum
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.CategoryArgs
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.CategoryArgsBuilder
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.DestinationAddrArgs
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.DestinationAddrArgsBuilder
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.SourceAddrArgs
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.SourceAddrArgsBuilder
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.TagInfoArgs
import com.pulumi.azurenative.cloudngfw.kotlin.inputs.TagInfoArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * LocalRulestack rule list
 * Azure REST API version: 2023-09-01.
 * Other available API versions: 2022-08-29, 2022-08-29-preview, 2023-09-01-preview, 2023-10-10-preview, 2024-01-19-preview, 2024-02-07-preview.
 * ## Example Usage
 * ### LocalRules_CreateOrUpdate_MaximumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var localRule = new AzureNative.Cloudngfw.LocalRule("localRule", new()
 *     {
 *         ActionType = AzureNative.Cloudngfw.ActionEnum.Allow,
 *         Applications = new[]
 *         {
 *             "app1",
 *         },
 *         AuditComment = "example comment",
 *         Category = new AzureNative.Cloudngfw.Inputs.CategoryArgs
 *         {
 *             Feeds = new[]
 *             {
 *                 "feed",
 *             },
 *             UrlCustom = new[]
 *             {
 *                 "https://microsoft.com",
 *             },
 *         },
 *         DecryptionRuleType = AzureNative.Cloudngfw.DecryptionRuleTypeEnum.SSLOutboundInspection,
 *         Description = "description of local rule",
 *         Destination = new AzureNative.Cloudngfw.Inputs.DestinationAddrArgs
 *         {
 *             Cidrs = new[]
 *             {
 *                 "1.0.0.1/10",
 *             },
 *             Countries = new[]
 *             {
 *                 "India",
 *             },
 *             Feeds = new[]
 *             {
 *                 "feed",
 *             },
 *             FqdnLists = new[]
 *             {
 *                 "FQDN1",
 *             },
 *             PrefixLists = new[]
 *             {
 *                 "PL1",
 *             },
 *         },
 *         EnableLogging = AzureNative.Cloudngfw.StateEnum.DISABLED,
 *         InboundInspectionCertificate = "cert1",
 *         LocalRulestackName = "lrs1",
 *         NegateDestination = AzureNative.Cloudngfw.BooleanEnum.TRUE,
 *         NegateSource = AzureNative.Cloudngfw.BooleanEnum.TRUE,
 *         Priority = "1",
 *         Protocol = "HTTP",
 *         ProtocolPortList = new[]
 *         {
 *             "80",
 *         },
 *         ResourceGroupName = "firewall-rg",
 *         RuleName = "localRule1",
 *         RuleState = AzureNative.Cloudngfw.StateEnum.DISABLED,
 *         Source = new AzureNative.Cloudngfw.Inputs.SourceAddrArgs
 *         {
 *             Cidrs = new[]
 *             {
 *                 "1.0.0.1/10",
 *             },
 *             Countries = new[]
 *             {
 *                 "India",
 *             },
 *             Feeds = new[]
 *             {
 *                 "feed",
 *             },
 *             PrefixLists = new[]
 *             {
 *                 "PL1",
 *             },
 *         },
 *         Tags = new[]
 *         {
 *             new AzureNative.Cloudngfw.Inputs.TagInfoArgs
 *             {
 *                 Key = "keyName",
 *                 Value = "value",
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	cloudngfw "github.com/pulumi/pulumi-azure-native-sdk/cloudngfw/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := cloudngfw.NewLocalRule(ctx, "localRule", &cloudngfw.LocalRuleArgs{
 * 			ActionType: pulumi.String(cloudngfw.ActionEnumAllow),
 * 			Applications: pulumi.StringArray{
 * 				pulumi.String("app1"),
 * 			},
 * 			AuditComment: pulumi.String("example comment"),
 * 			Category: &cloudngfw.CategoryArgs{
 * 				Feeds: pulumi.StringArray{
 * 					pulumi.String("feed"),
 * 				},
 * 				UrlCustom: pulumi.StringArray{
 * 					pulumi.String("https://microsoft.com"),
 * 				},
 * 			},
 * 			DecryptionRuleType: pulumi.String(cloudngfw.DecryptionRuleTypeEnumSSLOutboundInspection),
 * 			Description:        pulumi.String("description of local rule"),
 * 			Destination: &cloudngfw.DestinationAddrArgs{
 * 				Cidrs: pulumi.StringArray{
 * 					pulumi.String("1.0.0.1/10"),
 * 				},
 * 				Countries: pulumi.StringArray{
 * 					pulumi.String("India"),
 * 				},
 * 				Feeds: pulumi.StringArray{
 * 					pulumi.String("feed"),
 * 				},
 * 				FqdnLists: pulumi.StringArray{
 * 					pulumi.String("FQDN1"),
 * 				},
 * 				PrefixLists: pulumi.StringArray{
 * 					pulumi.String("PL1"),
 * 				},
 * 			},
 * 			EnableLogging:                pulumi.String(cloudngfw.StateEnumDISABLED),
 * 			InboundInspectionCertificate: pulumi.String("cert1"),
 * 			LocalRulestackName:           pulumi.String("lrs1"),
 * 			NegateDestination:            pulumi.String(cloudngfw.BooleanEnumTRUE),
 * 			NegateSource:                 pulumi.String(cloudngfw.BooleanEnumTRUE),
 * 			Priority:                     pulumi.String("1"),
 * 			Protocol:                     pulumi.String("HTTP"),
 * 			ProtocolPortList: pulumi.StringArray{
 * 				pulumi.String("80"),
 * 			},
 * 			ResourceGroupName: pulumi.String("firewall-rg"),
 * 			RuleName:          pulumi.String("localRule1"),
 * 			RuleState:         pulumi.String(cloudngfw.StateEnumDISABLED),
 * 			Source: &cloudngfw.SourceAddrArgs{
 * 				Cidrs: pulumi.StringArray{
 * 					pulumi.String("1.0.0.1/10"),
 * 				},
 * 				Countries: pulumi.StringArray{
 * 					pulumi.String("India"),
 * 				},
 * 				Feeds: pulumi.StringArray{
 * 					pulumi.String("feed"),
 * 				},
 * 				PrefixLists: pulumi.StringArray{
 * 					pulumi.String("PL1"),
 * 				},
 * 			},
 * 			Tags: cloudngfw.TagInfoArray{
 * 				&cloudngfw.TagInfoArgs{
 * 					Key:   pulumi.String("keyName"),
 * 					Value: pulumi.String("value"),
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.cloudngfw.LocalRule;
 * import com.pulumi.azurenative.cloudngfw.LocalRuleArgs;
 * import com.pulumi.azurenative.cloudngfw.inputs.CategoryArgs;
 * import com.pulumi.azurenative.cloudngfw.inputs.DestinationAddrArgs;
 * import com.pulumi.azurenative.cloudngfw.inputs.SourceAddrArgs;
 * import com.pulumi.azurenative.cloudngfw.inputs.TagInfoArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var localRule = new LocalRule("localRule", LocalRuleArgs.builder()
 *             .actionType("Allow")
 *             .applications("app1")
 *             .auditComment("example comment")
 *             .category(CategoryArgs.builder()
 *                 .feeds("feed")
 *                 .urlCustom("https://microsoft.com")
 *                 .build())
 *             .decryptionRuleType("SSLOutboundInspection")
 *             .description("description of local rule")
 *             .destination(DestinationAddrArgs.builder()
 *                 .cidrs("1.0.0.1/10")
 *                 .countries("India")
 *                 .feeds("feed")
 *                 .fqdnLists("FQDN1")
 *                 .prefixLists("PL1")
 *                 .build())
 *             .enableLogging("DISABLED")
 *             .inboundInspectionCertificate("cert1")
 *             .localRulestackName("lrs1")
 *             .negateDestination("TRUE")
 *             .negateSource("TRUE")
 *             .priority("1")
 *             .protocol("HTTP")
 *             .protocolPortList("80")
 *             .resourceGroupName("firewall-rg")
 *             .ruleName("localRule1")
 *             .ruleState("DISABLED")
 *             .source(SourceAddrArgs.builder()
 *                 .cidrs("1.0.0.1/10")
 *                 .countries("India")
 *                 .feeds("feed")
 *                 .prefixLists("PL1")
 *                 .build())
 *             .tags(TagInfoArgs.builder()
 *                 .key("keyName")
 *                 .value("value")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### LocalRules_CreateOrUpdate_MinimumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var localRule = new AzureNative.Cloudngfw.LocalRule("localRule", new()
 *     {
 *         LocalRulestackName = "lrs1",
 *         Priority = "1",
 *         ResourceGroupName = "firewall-rg",
 *         RuleName = "localRule1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	cloudngfw "github.com/pulumi/pulumi-azure-native-sdk/cloudngfw/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := cloudngfw.NewLocalRule(ctx, "localRule", &cloudngfw.LocalRuleArgs{
 * 			LocalRulestackName: pulumi.String("lrs1"),
 * 			Priority:           pulumi.String("1"),
 * 			ResourceGroupName:  pulumi.String("firewall-rg"),
 * 			RuleName:           pulumi.String("localRule1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.cloudngfw.LocalRule;
 * import com.pulumi.azurenative.cloudngfw.LocalRuleArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var localRule = new LocalRule("localRule", LocalRuleArgs.builder()
 *             .localRulestackName("lrs1")
 *             .priority("1")
 *             .resourceGroupName("firewall-rg")
 *             .ruleName("localRule1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:cloudngfw:LocalRule aaaaaaaaa /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}
 * ```
 * @property actionType rule action
 * @property applications array of rule applications
 * @property auditComment rule comment
 * @property category rule category
 * @property decryptionRuleType enable or disable decryption
 * @property description rule description
 * @property destination destination address
 * @property enableLogging enable or disable logging
 * @property inboundInspectionCertificate inbound Inspection Certificate
 * @property localRulestackName LocalRulestack resource name
 * @property negateDestination cidr should not be 'any'
 * @property negateSource cidr should not be 'any'
 * @property priority Local Rule priority
 * @property protocol any, application-default, TCP:number, UDP:number
 * @property protocolPortList prot port list
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property ruleName rule name
 * @property ruleState state of this rule
 * @property source source address
 * @property tags tag for rule
 */
public data class LocalRuleArgs(
    public val actionType: Output>? = null,
    public val applications: Output>? = null,
    public val auditComment: Output? = null,
    public val category: Output? = null,
    public val decryptionRuleType: Output>? = null,
    public val description: Output? = null,
    public val destination: Output? = null,
    public val enableLogging: Output>? = null,
    public val inboundInspectionCertificate: Output? = null,
    public val localRulestackName: Output? = null,
    public val negateDestination: Output>? = null,
    public val negateSource: Output>? = null,
    public val priority: Output? = null,
    public val protocol: Output? = null,
    public val protocolPortList: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val ruleName: Output? = null,
    public val ruleState: Output>? = null,
    public val source: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cloudngfw.LocalRuleArgs =
        com.pulumi.azurenative.cloudngfw.LocalRuleArgs.builder()
            .actionType(
                actionType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .applications(applications?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .auditComment(auditComment?.applyValue({ args0 -> args0 }))
            .category(category?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .decryptionRuleType(
                decryptionRuleType?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .destination(destination?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enableLogging(
                enableLogging?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .inboundInspectionCertificate(inboundInspectionCertificate?.applyValue({ args0 -> args0 }))
            .localRulestackName(localRulestackName?.applyValue({ args0 -> args0 }))
            .negateDestination(
                negateDestination?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .negateSource(
                negateSource?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .priority(priority?.applyValue({ args0 -> args0 }))
            .protocol(protocol?.applyValue({ args0 -> args0 }))
            .protocolPortList(protocolPortList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .ruleName(ruleName?.applyValue({ args0 -> args0 }))
            .ruleState(
                ruleState?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .source(source?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var applications: Output>? = null

    private var auditComment: Output? = null

    private var category: Output? = null

    private var decryptionRuleType: Output>? = null

    private var description: Output? = null

    private var destination: Output? = null

    private var enableLogging: Output>? = null

    private var inboundInspectionCertificate: Output? = null

    private var localRulestackName: Output? = null

    private var negateDestination: Output>? = null

    private var negateSource: Output>? = null

    private var priority: Output? = null

    private var protocol: Output? = null

    private var protocolPortList: Output>? = null

    private var resourceGroupName: Output? = null

    private var ruleName: Output? = null

    private var ruleState: Output>? = null

    private var source: Output? = null

    private var tags: Output>? = null

    /**
     * @param value rule action
     */
    @JvmName("tuswnkhojdhnfsfl")
    public suspend fun actionType(`value`: Output>) {
        this.actionType = value
    }

    /**
     * @param value array of rule applications
     */
    @JvmName("dodusmpdcmtcmwvt")
    public suspend fun applications(`value`: Output>) {
        this.applications = value
    }

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

    /**
     * @param values array of rule applications
     */
    @JvmName("givdtdklnesrslop")
    public suspend fun applications(values: List>) {
        this.applications = Output.all(values)
    }

    /**
     * @param value rule comment
     */
    @JvmName("kskvxkfcnjnkbirb")
    public suspend fun auditComment(`value`: Output) {
        this.auditComment = value
    }

    /**
     * @param value rule category
     */
    @JvmName("hhwyyockovjvkrtt")
    public suspend fun category(`value`: Output) {
        this.category = value
    }

    /**
     * @param value enable or disable decryption
     */
    @JvmName("rskptgovabdvhhow")
    public suspend fun decryptionRuleType(`value`: Output>) {
        this.decryptionRuleType = value
    }

    /**
     * @param value rule description
     */
    @JvmName("tvtbanrphnftedxv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value destination address
     */
    @JvmName("ftounnqdkhhcupil")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value enable or disable logging
     */
    @JvmName("tuijkweobahqfiit")
    public suspend fun enableLogging(`value`: Output>) {
        this.enableLogging = value
    }

    /**
     * @param value inbound Inspection Certificate
     */
    @JvmName("vkqqglgrvdekyute")
    public suspend fun inboundInspectionCertificate(`value`: Output) {
        this.inboundInspectionCertificate = value
    }

    /**
     * @param value LocalRulestack resource name
     */
    @JvmName("blumbvggcxdwfisq")
    public suspend fun localRulestackName(`value`: Output) {
        this.localRulestackName = value
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("dxoeamsbdwgeouso")
    public suspend fun negateDestination(`value`: Output>) {
        this.negateDestination = value
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("mqyylyljeyhdjidg")
    public suspend fun negateSource(`value`: Output>) {
        this.negateSource = value
    }

    /**
     * @param value Local Rule priority
     */
    @JvmName("koxcqchenarkfija")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value any, application-default, TCP:number, UDP:number
     */
    @JvmName("hgoyovbmujbrqouf")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value prot port list
     */
    @JvmName("hbgsifvgcvpqahvp")
    public suspend fun protocolPortList(`value`: Output>) {
        this.protocolPortList = value
    }

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

    /**
     * @param values prot port list
     */
    @JvmName("gvghlnwkgjbkugvo")
    public suspend fun protocolPortList(values: List>) {
        this.protocolPortList = Output.all(values)
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("eyumswqadqljfgao")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value rule name
     */
    @JvmName("hhjywihuoqxerdkc")
    public suspend fun ruleName(`value`: Output) {
        this.ruleName = value
    }

    /**
     * @param value state of this rule
     */
    @JvmName("mwnsudaclctbpygg")
    public suspend fun ruleState(`value`: Output>) {
        this.ruleState = value
    }

    /**
     * @param value source address
     */
    @JvmName("gmguydkdydpbmpua")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value tag for rule
     */
    @JvmName("xnrhtvoenbkttoei")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values tag for rule
     */
    @JvmName("oelennrgrbqkktyr")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value rule action
     */
    @JvmName("gngysjmwaikkqgoq")
    public suspend fun actionType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actionType = mapped
    }

    /**
     * @param value rule action
     */
    @JvmName("ebhwaquulooyymta")
    public fun actionType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionType = mapped
    }

    /**
     * @param value rule action
     */
    @JvmName("vptpkagwwgkxayte")
    public fun actionType(`value`: ActionEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionType = mapped
    }

    /**
     * @param value array of rule applications
     */
    @JvmName("wliqduxeyaqnxiyr")
    public suspend fun applications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applications = mapped
    }

    /**
     * @param values array of rule applications
     */
    @JvmName("gkmrlvtkiggoaxbb")
    public suspend fun applications(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applications = mapped
    }

    /**
     * @param value rule comment
     */
    @JvmName("kwmfjltxxyvxnnpy")
    public suspend fun auditComment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auditComment = mapped
    }

    /**
     * @param value rule category
     */
    @JvmName("oqeknahdmuwutngy")
    public suspend fun category(`value`: CategoryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.category = mapped
    }

    /**
     * @param argument rule category
     */
    @JvmName("drkafhyvdjwwwlfs")
    public suspend fun category(argument: suspend CategoryArgsBuilder.() -> Unit) {
        val toBeMapped = CategoryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.category = mapped
    }

    /**
     * @param value enable or disable decryption
     */
    @JvmName("bkoeffpdcmemuotn")
    public suspend fun decryptionRuleType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.decryptionRuleType = mapped
    }

    /**
     * @param value enable or disable decryption
     */
    @JvmName("bqehahfewamdoskv")
    public fun decryptionRuleType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.decryptionRuleType = mapped
    }

    /**
     * @param value enable or disable decryption
     */
    @JvmName("hfgnaxpmitjdnldb")
    public fun decryptionRuleType(`value`: DecryptionRuleTypeEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.decryptionRuleType = mapped
    }

    /**
     * @param value rule description
     */
    @JvmName("jmkjffbwsqqsaaua")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value destination address
     */
    @JvmName("meodnhehmrjhrbyh")
    public suspend fun destination(`value`: DestinationAddrArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param argument destination address
     */
    @JvmName("hjrnlmbpfmttxdsy")
    public suspend fun destination(argument: suspend DestinationAddrArgsBuilder.() -> Unit) {
        val toBeMapped = DestinationAddrArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.destination = mapped
    }

    /**
     * @param value enable or disable logging
     */
    @JvmName("scyaohhbfrdvfgta")
    public suspend fun enableLogging(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableLogging = mapped
    }

    /**
     * @param value enable or disable logging
     */
    @JvmName("imoivaimxlbypsgk")
    public fun enableLogging(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableLogging = mapped
    }

    /**
     * @param value enable or disable logging
     */
    @JvmName("hxmroebyiigwgjlu")
    public fun enableLogging(`value`: StateEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableLogging = mapped
    }

    /**
     * @param value inbound Inspection Certificate
     */
    @JvmName("wxmaapnxmsgpintg")
    public suspend fun inboundInspectionCertificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inboundInspectionCertificate = mapped
    }

    /**
     * @param value LocalRulestack resource name
     */
    @JvmName("wlsqgdpeowgpjgew")
    public suspend fun localRulestackName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localRulestackName = mapped
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("civjkkuytvhlxndf")
    public suspend fun negateDestination(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateDestination = mapped
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("gtpfqjuufmcupgiw")
    public fun negateDestination(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.negateDestination = mapped
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("uidkxfodarpebtmb")
    public fun negateDestination(`value`: BooleanEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.negateDestination = mapped
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("ldaqakovmbibkmnf")
    public suspend fun negateSource(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateSource = mapped
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("wbcnlnxjlxdjadmk")
    public fun negateSource(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.negateSource = mapped
    }

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("iwmwbgkkdmmekvlh")
    public fun negateSource(`value`: BooleanEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.negateSource = mapped
    }

    /**
     * @param value Local Rule priority
     */
    @JvmName("jgqwgoiylaioqtnr")
    public suspend fun priority(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value any, application-default, TCP:number, UDP:number
     */
    @JvmName("lxyvvbxqfialpqwm")
    public suspend fun protocol(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param value prot port list
     */
    @JvmName("sorvfqnnupnhvpmn")
    public suspend fun protocolPortList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocolPortList = mapped
    }

    /**
     * @param values prot port list
     */
    @JvmName("opmbxnbscpsfngkj")
    public suspend fun protocolPortList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocolPortList = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("djngutapeegyvjqs")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value rule name
     */
    @JvmName("tvveeejanxjwlbha")
    public suspend fun ruleName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleName = mapped
    }

    /**
     * @param value state of this rule
     */
    @JvmName("mmthcpkkmhklbbfb")
    public suspend fun ruleState(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleState = mapped
    }

    /**
     * @param value state of this rule
     */
    @JvmName("dvfpiapwwonqwyfc")
    public fun ruleState(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleState = mapped
    }

    /**
     * @param value state of this rule
     */
    @JvmName("ergsopyojcdabwco")
    public fun ruleState(`value`: StateEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleState = mapped
    }

    /**
     * @param value source address
     */
    @JvmName("gcipwxjrviyknnjj")
    public suspend fun source(`value`: SourceAddrArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param argument source address
     */
    @JvmName("jjcxwowyccqowedn")
    public suspend fun source(argument: suspend SourceAddrArgsBuilder.() -> Unit) {
        val toBeMapped = SourceAddrArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.source = mapped
    }

    /**
     * @param value tag for rule
     */
    @JvmName("sggknhphqchskrpa")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument tag for rule
     */
    @JvmName("hnfspjumgsjdqsnr")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagInfoArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument tag for rule
     */
    @JvmName("iowgcbnnskqdqrie")
    public suspend fun tags(vararg argument: suspend TagInfoArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagInfoArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument tag for rule
     */
    @JvmName("ytgwwtqcawqjtcej")
    public suspend fun tags(argument: suspend TagInfoArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagInfoArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values tag for rule
     */
    @JvmName("ghacntdetkhbknyo")
    public suspend fun tags(vararg values: TagInfoArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): LocalRuleArgs = LocalRuleArgs(
        actionType = actionType,
        applications = applications,
        auditComment = auditComment,
        category = category,
        decryptionRuleType = decryptionRuleType,
        description = description,
        destination = destination,
        enableLogging = enableLogging,
        inboundInspectionCertificate = inboundInspectionCertificate,
        localRulestackName = localRulestackName,
        negateDestination = negateDestination,
        negateSource = negateSource,
        priority = priority,
        protocol = protocol,
        protocolPortList = protocolPortList,
        resourceGroupName = resourceGroupName,
        ruleName = ruleName,
        ruleState = ruleState,
        source = source,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy