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

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

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

package com.pulumi.azurenative.cloudngfw.kotlin

import com.pulumi.azurenative.cloudngfw.PostRuleArgs.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

/**
 * PostRulestack 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
 * ### PostRules_CreateOrUpdate_MaximumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var postRule = new AzureNative.Cloudngfw.PostRule("postRule", 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 post 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,
 *         GlobalRulestackName = "lrs1",
 *         InboundInspectionCertificate = "cert1",
 *         NegateDestination = AzureNative.Cloudngfw.BooleanEnum.TRUE,
 *         NegateSource = AzureNative.Cloudngfw.BooleanEnum.TRUE,
 *         Priority = "1",
 *         Protocol = "HTTP",
 *         ProtocolPortList = new[]
 *         {
 *             "80",
 *         },
 *         RuleName = "postRule1",
 *         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.NewPostRule(ctx, "postRule", &cloudngfw.PostRuleArgs{
 * 			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 post 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),
 * 			GlobalRulestackName:          pulumi.String("lrs1"),
 * 			InboundInspectionCertificate: pulumi.String("cert1"),
 * 			NegateDestination:            pulumi.String(cloudngfw.BooleanEnumTRUE),
 * 			NegateSource:                 pulumi.String(cloudngfw.BooleanEnumTRUE),
 * 			Priority:                     pulumi.String("1"),
 * 			Protocol:                     pulumi.String("HTTP"),
 * 			ProtocolPortList: pulumi.StringArray{
 * 				pulumi.String("80"),
 * 			},
 * 			RuleName:  pulumi.String("postRule1"),
 * 			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.PostRule;
 * import com.pulumi.azurenative.cloudngfw.PostRuleArgs;
 * 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 postRule = new PostRule("postRule", PostRuleArgs.builder()
 *             .actionType("Allow")
 *             .applications("app1")
 *             .auditComment("example comment")
 *             .category(CategoryArgs.builder()
 *                 .feeds("feed")
 *                 .urlCustom("https://microsoft.com")
 *                 .build())
 *             .decryptionRuleType("SSLOutboundInspection")
 *             .description("description of post rule")
 *             .destination(DestinationAddrArgs.builder()
 *                 .cidrs("1.0.0.1/10")
 *                 .countries("India")
 *                 .feeds("feed")
 *                 .fqdnLists("FQDN1")
 *                 .prefixLists("PL1")
 *                 .build())
 *             .enableLogging("DISABLED")
 *             .globalRulestackName("lrs1")
 *             .inboundInspectionCertificate("cert1")
 *             .negateDestination("TRUE")
 *             .negateSource("TRUE")
 *             .priority("1")
 *             .protocol("HTTP")
 *             .protocolPortList("80")
 *             .ruleName("postRule1")
 *             .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());
 *     }
 * }
 * ```
 * ### PostRules_CreateOrUpdate_MinimumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var postRule = new AzureNative.Cloudngfw.PostRule("postRule", new()
 *     {
 *         GlobalRulestackName = "lrs1",
 *         Priority = "1",
 *         RuleName = "postRule1",
 *     });
 * });
 * ```
 * ```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.NewPostRule(ctx, "postRule", &cloudngfw.PostRuleArgs{
 * 			GlobalRulestackName: pulumi.String("lrs1"),
 * 			Priority:            pulumi.String("1"),
 * 			RuleName:            pulumi.String("postRule1"),
 * 		})
 * 		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.PostRule;
 * import com.pulumi.azurenative.cloudngfw.PostRuleArgs;
 * 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 postRule = new PostRule("postRule", PostRuleArgs.builder()
 *             .globalRulestackName("lrs1")
 *             .priority("1")
 *             .ruleName("postRule1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:cloudngfw:PostRule aaaaaaaaaa /providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/postRules/{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 globalRulestackName GlobalRulestack resource name
 * @property inboundInspectionCertificate inbound Inspection Certificate
 * @property negateDestination cidr should not be 'any'
 * @property negateSource cidr should not be 'any'
 * @property priority Post Rule priority
 * @property protocol any, application-default, TCP:number, UDP:number
 * @property protocolPortList prot port list
 * @property ruleName rule name
 * @property ruleState state of this rule
 * @property source source address
 * @property tags tag for rule
 */
public data class PostRuleArgs(
    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 globalRulestackName: Output? = null,
    public val inboundInspectionCertificate: 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 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.PostRuleArgs =
        com.pulumi.azurenative.cloudngfw.PostRuleArgs.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() })
                    })
                }),
            )
            .globalRulestackName(globalRulestackName?.applyValue({ args0 -> args0 }))
            .inboundInspectionCertificate(inboundInspectionCertificate?.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 }) }))
            .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 [PostRuleArgs].
 */
@PulumiTagMarker
public class PostRuleArgsBuilder 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 globalRulestackName: Output? = null

    private var inboundInspectionCertificate: 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 ruleName: Output? = null

    private var ruleState: Output>? = null

    private var source: Output? = null

    private var tags: Output>? = null

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

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

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

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

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

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

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

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

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

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

    /**
     * @param value GlobalRulestack resource name
     */
    @JvmName("allgfwmnpyblmosy")
    public suspend fun globalRulestackName(`value`: Output) {
        this.globalRulestackName = value
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @param value rule action
     */
    @JvmName("eyxodpqqxlpgiftg")
    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("aqacatlhjqibovch")
    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("txlnmcuwhsvcjdtp")
    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("ylhoopkslpjekfhq")
    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("bwlxkwgyqpvamqav")
    public suspend fun auditComment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auditComment = mapped
    }

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

    /**
     * @param argument rule category
     */
    @JvmName("xyeaplntcyedeisp")
    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("svqvdtdreeqjvfoe")
    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("ibupjrbfcgsoqwvs")
    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("wqqpxkmvubsnfduo")
    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("ijwvkxsngsusxnxs")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

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

    /**
     * @param argument destination address
     */
    @JvmName("wtcierrccpkgehlr")
    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("kodncsnbruicmptt")
    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("rjwcydwwjmedvetd")
    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("kiumlffkogqrfugi")
    public fun enableLogging(`value`: StateEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableLogging = mapped
    }

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

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

    /**
     * @param value cidr should not be 'any'
     */
    @JvmName("oiamuphcchhwomty")
    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("afsjoufdyqosurmu")
    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("cxqlaqgjwstqncdc")
    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("qrpybdqpxdnqnkut")
    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("ouileyecjhmulokb")
    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("ixfmclmooxwfoloo")
    public fun negateSource(`value`: BooleanEnum) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.negateSource = mapped
    }

    /**
     * @param value Post Rule priority
     */
    @JvmName("lruxyrdoxqmcatac")
    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("cipwhftktysyfjem")
    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("cunjgvygvhgawkgv")
    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("osopxqxdrykuvwuf")
    public suspend fun protocolPortList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocolPortList = mapped
    }

    /**
     * @param value rule name
     */
    @JvmName("vfvtriyegcrjmijo")
    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("aewmyqlrbbskblwl")
    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("gawwuyqkearkwnur")
    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("vwnhwswefegmecex")
    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("hmmfcclmdpehdxvd")
    public suspend fun source(`value`: SourceAddrArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param argument source address
     */
    @JvmName("gfaisqkwcmdimyra")
    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("lglwdpdfmvyodkbp")
    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("ljdlqbierhpujmke")
    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("xokneynpxhmegxms")
    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("jyphrcjwlfexoyjl")
    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("xdnrdhehtypxtvkv")
    public suspend fun tags(vararg values: TagInfoArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy