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

com.pulumi.azurenative.network.inputs.ApplicationGatewayPathRuleArgs Maven / Gradle / Ivy

The 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.network.inputs;

import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Path rule of URL path map of an application gateway.
 * 
 */
public final class ApplicationGatewayPathRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayPathRuleArgs Empty = new ApplicationGatewayPathRuleArgs();

    /**
     * Backend address pool resource of URL path map path rule.
     * 
     */
    @Import(name="backendAddressPool")
    private @Nullable Output backendAddressPool;

    /**
     * @return Backend address pool resource of URL path map path rule.
     * 
     */
    public Optional> backendAddressPool() {
        return Optional.ofNullable(this.backendAddressPool);
    }

    /**
     * Backend http settings resource of URL path map path rule.
     * 
     */
    @Import(name="backendHttpSettings")
    private @Nullable Output backendHttpSettings;

    /**
     * @return Backend http settings resource of URL path map path rule.
     * 
     */
    public Optional> backendHttpSettings() {
        return Optional.ofNullable(this.backendHttpSettings);
    }

    /**
     * Reference to the FirewallPolicy resource.
     * 
     */
    @Import(name="firewallPolicy")
    private @Nullable Output firewallPolicy;

    /**
     * @return Reference to the FirewallPolicy resource.
     * 
     */
    public Optional> firewallPolicy() {
        return Optional.ofNullable(this.firewallPolicy);
    }

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

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

    /**
     * Load Distribution Policy resource of URL path map path rule.
     * 
     */
    @Import(name="loadDistributionPolicy")
    private @Nullable Output loadDistributionPolicy;

    /**
     * @return Load Distribution Policy resource of URL path map path rule.
     * 
     */
    public Optional> loadDistributionPolicy() {
        return Optional.ofNullable(this.loadDistributionPolicy);
    }

    /**
     * Name of the path rule that is unique within an Application Gateway.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the path rule that is unique within an Application Gateway.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Path rules of URL path map.
     * 
     */
    @Import(name="paths")
    private @Nullable Output> paths;

    /**
     * @return Path rules of URL path map.
     * 
     */
    public Optional>> paths() {
        return Optional.ofNullable(this.paths);
    }

    /**
     * Redirect configuration resource of URL path map path rule.
     * 
     */
    @Import(name="redirectConfiguration")
    private @Nullable Output redirectConfiguration;

    /**
     * @return Redirect configuration resource of URL path map path rule.
     * 
     */
    public Optional> redirectConfiguration() {
        return Optional.ofNullable(this.redirectConfiguration);
    }

    /**
     * Rewrite rule set resource of URL path map path rule.
     * 
     */
    @Import(name="rewriteRuleSet")
    private @Nullable Output rewriteRuleSet;

    /**
     * @return Rewrite rule set resource of URL path map path rule.
     * 
     */
    public Optional> rewriteRuleSet() {
        return Optional.ofNullable(this.rewriteRuleSet);
    }

    private ApplicationGatewayPathRuleArgs() {}

    private ApplicationGatewayPathRuleArgs(ApplicationGatewayPathRuleArgs $) {
        this.backendAddressPool = $.backendAddressPool;
        this.backendHttpSettings = $.backendHttpSettings;
        this.firewallPolicy = $.firewallPolicy;
        this.id = $.id;
        this.loadDistributionPolicy = $.loadDistributionPolicy;
        this.name = $.name;
        this.paths = $.paths;
        this.redirectConfiguration = $.redirectConfiguration;
        this.rewriteRuleSet = $.rewriteRuleSet;
    }

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

    public static final class Builder {
        private ApplicationGatewayPathRuleArgs $;

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

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

        /**
         * @param backendAddressPool Backend address pool resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPool(@Nullable Output backendAddressPool) {
            $.backendAddressPool = backendAddressPool;
            return this;
        }

        /**
         * @param backendAddressPool Backend address pool resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPool(SubResourceArgs backendAddressPool) {
            return backendAddressPool(Output.of(backendAddressPool));
        }

        /**
         * @param backendHttpSettings Backend http settings resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder backendHttpSettings(@Nullable Output backendHttpSettings) {
            $.backendHttpSettings = backendHttpSettings;
            return this;
        }

        /**
         * @param backendHttpSettings Backend http settings resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder backendHttpSettings(SubResourceArgs backendHttpSettings) {
            return backendHttpSettings(Output.of(backendHttpSettings));
        }

        /**
         * @param firewallPolicy Reference to the FirewallPolicy resource.
         * 
         * @return builder
         * 
         */
        public Builder firewallPolicy(@Nullable Output firewallPolicy) {
            $.firewallPolicy = firewallPolicy;
            return this;
        }

        /**
         * @param firewallPolicy Reference to the FirewallPolicy resource.
         * 
         * @return builder
         * 
         */
        public Builder firewallPolicy(SubResourceArgs firewallPolicy) {
            return firewallPolicy(Output.of(firewallPolicy));
        }

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

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

        /**
         * @param loadDistributionPolicy Load Distribution Policy resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder loadDistributionPolicy(@Nullable Output loadDistributionPolicy) {
            $.loadDistributionPolicy = loadDistributionPolicy;
            return this;
        }

        /**
         * @param loadDistributionPolicy Load Distribution Policy resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder loadDistributionPolicy(SubResourceArgs loadDistributionPolicy) {
            return loadDistributionPolicy(Output.of(loadDistributionPolicy));
        }

        /**
         * @param name Name of the path rule that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the path rule that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param paths Path rules of URL path map.
         * 
         * @return builder
         * 
         */
        public Builder paths(@Nullable Output> paths) {
            $.paths = paths;
            return this;
        }

        /**
         * @param paths Path rules of URL path map.
         * 
         * @return builder
         * 
         */
        public Builder paths(List paths) {
            return paths(Output.of(paths));
        }

        /**
         * @param paths Path rules of URL path map.
         * 
         * @return builder
         * 
         */
        public Builder paths(String... paths) {
            return paths(List.of(paths));
        }

        /**
         * @param redirectConfiguration Redirect configuration resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder redirectConfiguration(@Nullable Output redirectConfiguration) {
            $.redirectConfiguration = redirectConfiguration;
            return this;
        }

        /**
         * @param redirectConfiguration Redirect configuration resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder redirectConfiguration(SubResourceArgs redirectConfiguration) {
            return redirectConfiguration(Output.of(redirectConfiguration));
        }

        /**
         * @param rewriteRuleSet Rewrite rule set resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder rewriteRuleSet(@Nullable Output rewriteRuleSet) {
            $.rewriteRuleSet = rewriteRuleSet;
            return this;
        }

        /**
         * @param rewriteRuleSet Rewrite rule set resource of URL path map path rule.
         * 
         * @return builder
         * 
         */
        public Builder rewriteRuleSet(SubResourceArgs rewriteRuleSet) {
            return rewriteRuleSet(Output.of(rewriteRuleSet));
        }

        public ApplicationGatewayPathRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy