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

com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleOverrideArgs 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.cdn.inputs;

import com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleOverrideExclusionArgs;
import com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs;
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 FrontdoorFirewallPolicyManagedRuleOverrideArgs extends com.pulumi.resources.ResourceArgs {

    public static final FrontdoorFirewallPolicyManagedRuleOverrideArgs Empty = new FrontdoorFirewallPolicyManagedRuleOverrideArgs();

    /**
     * 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 FrontdoorFirewallPolicyManagedRuleOverrideArgs() {}

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

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

    public static final class Builder {
        private FrontdoorFirewallPolicyManagedRuleOverrideArgs $;

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

        public Builder(FrontdoorFirewallPolicyManagedRuleOverrideArgs defaults) {
            $ = new FrontdoorFirewallPolicyManagedRuleOverrideArgs(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(FrontdoorFirewallPolicyManagedRuleOverrideExclusionArgs... 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(FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs... rules) {
            return rules(List.of(rules));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy