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

com.pulumi.azurenative.cdn.PolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.cdn;

import com.pulumi.azurenative.cdn.inputs.CustomRuleListArgs;
import com.pulumi.azurenative.cdn.inputs.ManagedRuleSetListArgs;
import com.pulumi.azurenative.cdn.inputs.PolicySettingsArgs;
import com.pulumi.azurenative.cdn.inputs.RateLimitRuleListArgs;
import com.pulumi.azurenative.cdn.inputs.SkuArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PolicyArgs Empty = new PolicyArgs();

    /**
     * Describes custom rules inside the policy.
     * 
     */
    @Import(name="customRules")
    private @Nullable Output customRules;

    /**
     * @return Describes custom rules inside the policy.
     * 
     */
    public Optional> customRules() {
        return Optional.ofNullable(this.customRules);
    }

    /**
     * Key-Value pair representing additional properties for Web Application Firewall policy.
     * 
     */
    @Import(name="extendedProperties")
    private @Nullable Output> extendedProperties;

    /**
     * @return Key-Value pair representing additional properties for Web Application Firewall policy.
     * 
     */
    public Optional>> extendedProperties() {
        return Optional.ofNullable(this.extendedProperties);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Describes managed rules inside the policy.
     * 
     */
    @Import(name="managedRules")
    private @Nullable Output managedRules;

    /**
     * @return Describes managed rules inside the policy.
     * 
     */
    public Optional> managedRules() {
        return Optional.ofNullable(this.managedRules);
    }

    /**
     * The name of the CdnWebApplicationFirewallPolicy.
     * 
     */
    @Import(name="policyName")
    private @Nullable Output policyName;

    /**
     * @return The name of the CdnWebApplicationFirewallPolicy.
     * 
     */
    public Optional> policyName() {
        return Optional.ofNullable(this.policyName);
    }

    /**
     * Describes  policySettings for policy
     * 
     */
    @Import(name="policySettings")
    private @Nullable Output policySettings;

    /**
     * @return Describes  policySettings for policy
     * 
     */
    public Optional> policySettings() {
        return Optional.ofNullable(this.policySettings);
    }

    /**
     * Describes rate limit rules inside the policy.
     * 
     */
    @Import(name="rateLimitRules")
    private @Nullable Output rateLimitRules;

    /**
     * @return Describes rate limit rules inside the policy.
     * 
     */
    public Optional> rateLimitRules() {
        return Optional.ofNullable(this.rateLimitRules);
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private PolicyArgs() {}

    private PolicyArgs(PolicyArgs $) {
        this.customRules = $.customRules;
        this.extendedProperties = $.extendedProperties;
        this.location = $.location;
        this.managedRules = $.managedRules;
        this.policyName = $.policyName;
        this.policySettings = $.policySettings;
        this.rateLimitRules = $.rateLimitRules;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PolicyArgs $;

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

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

        /**
         * @param customRules Describes custom rules inside the policy.
         * 
         * @return builder
         * 
         */
        public Builder customRules(@Nullable Output customRules) {
            $.customRules = customRules;
            return this;
        }

        /**
         * @param customRules Describes custom rules inside the policy.
         * 
         * @return builder
         * 
         */
        public Builder customRules(CustomRuleListArgs customRules) {
            return customRules(Output.of(customRules));
        }

        /**
         * @param extendedProperties Key-Value pair representing additional properties for Web Application Firewall policy.
         * 
         * @return builder
         * 
         */
        public Builder extendedProperties(@Nullable Output> extendedProperties) {
            $.extendedProperties = extendedProperties;
            return this;
        }

        /**
         * @param extendedProperties Key-Value pair representing additional properties for Web Application Firewall policy.
         * 
         * @return builder
         * 
         */
        public Builder extendedProperties(Map extendedProperties) {
            return extendedProperties(Output.of(extendedProperties));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param managedRules Describes managed rules inside the policy.
         * 
         * @return builder
         * 
         */
        public Builder managedRules(@Nullable Output managedRules) {
            $.managedRules = managedRules;
            return this;
        }

        /**
         * @param managedRules Describes managed rules inside the policy.
         * 
         * @return builder
         * 
         */
        public Builder managedRules(ManagedRuleSetListArgs managedRules) {
            return managedRules(Output.of(managedRules));
        }

        /**
         * @param policyName The name of the CdnWebApplicationFirewallPolicy.
         * 
         * @return builder
         * 
         */
        public Builder policyName(@Nullable Output policyName) {
            $.policyName = policyName;
            return this;
        }

        /**
         * @param policyName The name of the CdnWebApplicationFirewallPolicy.
         * 
         * @return builder
         * 
         */
        public Builder policyName(String policyName) {
            return policyName(Output.of(policyName));
        }

        /**
         * @param policySettings Describes  policySettings for policy
         * 
         * @return builder
         * 
         */
        public Builder policySettings(@Nullable Output policySettings) {
            $.policySettings = policySettings;
            return this;
        }

        /**
         * @param policySettings Describes  policySettings for policy
         * 
         * @return builder
         * 
         */
        public Builder policySettings(PolicySettingsArgs policySettings) {
            return policySettings(Output.of(policySettings));
        }

        /**
         * @param rateLimitRules Describes rate limit rules inside the policy.
         * 
         * @return builder
         * 
         */
        public Builder rateLimitRules(@Nullable Output rateLimitRules) {
            $.rateLimitRules = rateLimitRules;
            return this;
        }

        /**
         * @param rateLimitRules Describes rate limit rules inside the policy.
         * 
         * @return builder
         * 
         */
        public Builder rateLimitRules(RateLimitRuleListArgs rateLimitRules) {
            return rateLimitRules(Output.of(rateLimitRules));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public PolicyArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PolicyArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("PolicyArgs", "sku");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy