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

com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleOverrideArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.frontdoor.inputs;

import com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleOverrideExclusionArgs;
import com.pulumi.azure.frontdoor.inputs.FirewallPolicyManagedRuleOverrideRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FirewallPolicyManagedRuleOverrideArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirewallPolicyManagedRuleOverrideArgs Empty = new FirewallPolicyManagedRuleOverrideArgs();

    /**
     * One or more `exclusion` blocks as defined below.
     * 
     */
    @Import(name="exclusions")
    private @Nullable Output> exclusions;

    /**
     * @return One or more `exclusion` blocks as defined below.
     * 
     */
    public Optional>> exclusions() {
        return Optional.ofNullable(this.exclusions);
    }

    /**
     * The managed rule group to override.
     * 
     */
    @Import(name="ruleGroupName", required=true)
    private Output ruleGroupName;

    /**
     * @return The managed rule group to override.
     * 
     */
    public Output ruleGroupName() {
        return this.ruleGroupName;
    }

    /**
     * One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    private FirewallPolicyManagedRuleOverrideArgs() {}

    private FirewallPolicyManagedRuleOverrideArgs(FirewallPolicyManagedRuleOverrideArgs $) {
        this.exclusions = $.exclusions;
        this.ruleGroupName = $.ruleGroupName;
        this.rules = $.rules;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(FirewallPolicyManagedRuleOverrideArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private FirewallPolicyManagedRuleOverrideArgs $;

        public Builder() {
            $ = new FirewallPolicyManagedRuleOverrideArgs();
        }

        public Builder(FirewallPolicyManagedRuleOverrideArgs defaults) {
            $ = new FirewallPolicyManagedRuleOverrideArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param exclusions One or more `exclusion` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(@Nullable Output> exclusions) {
            $.exclusions = exclusions;
            return this;
        }

        /**
         * @param exclusions One or more `exclusion` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(List exclusions) {
            return exclusions(Output.of(exclusions));
        }

        /**
         * @param exclusions One or more `exclusion` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(FirewallPolicyManagedRuleOverrideExclusionArgs... exclusions) {
            return exclusions(List.of(exclusions));
        }

        /**
         * @param ruleGroupName The managed rule group to override.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupName(Output ruleGroupName) {
            $.ruleGroupName = ruleGroupName;
            return this;
        }

        /**
         * @param ruleGroupName The managed rule group to override.
         * 
         * @return builder
         * 
         */
        public Builder ruleGroupName(String ruleGroupName) {
            return ruleGroupName(Output.of(ruleGroupName));
        }

        /**
         * @param rules One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules One or more `rule` blocks as defined below. If none are specified, all of the rules in the group will be disabled.
         * 
         * @return builder
         * 
         */
        public Builder rules(FirewallPolicyManagedRuleOverrideRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public FirewallPolicyManagedRuleOverrideArgs build() {
            if ($.ruleGroupName == null) {
                throw new MissingRequiredPropertyException("FirewallPolicyManagedRuleOverrideArgs", "ruleGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy