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

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

There is a newer version: 2.82.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.network.inputs;

import com.pulumi.azurenative.network.enums.ApplicationGatewayRequestRoutingRuleType;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Routing rule of an application gateway.
 * 
 */
public final class ApplicationGatewayRoutingRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayRoutingRuleArgs Empty = new ApplicationGatewayRoutingRuleArgs();

    /**
     * Backend address pool resource of the application gateway.
     * 
     */
    @Import(name="backendAddressPool")
    private @Nullable Output backendAddressPool;

    /**
     * @return Backend address pool resource of the application gateway.
     * 
     */
    public Optional> backendAddressPool() {
        return Optional.ofNullable(this.backendAddressPool);
    }

    /**
     * Backend settings resource of the application gateway.
     * 
     */
    @Import(name="backendSettings")
    private @Nullable Output backendSettings;

    /**
     * @return Backend settings resource of the application gateway.
     * 
     */
    public Optional> backendSettings() {
        return Optional.ofNullable(this.backendSettings);
    }

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

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

    /**
     * Listener resource of the application gateway.
     * 
     */
    @Import(name="listener")
    private @Nullable Output listener;

    /**
     * @return Listener resource of the application gateway.
     * 
     */
    public Optional> listener() {
        return Optional.ofNullable(this.listener);
    }

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

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

    /**
     * Priority of the routing rule.
     * 
     */
    @Import(name="priority", required=true)
    private Output priority;

    /**
     * @return Priority of the routing rule.
     * 
     */
    public Output priority() {
        return this.priority;
    }

    /**
     * Rule type.
     * 
     */
    @Import(name="ruleType")
    private @Nullable Output> ruleType;

    /**
     * @return Rule type.
     * 
     */
    public Optional>> ruleType() {
        return Optional.ofNullable(this.ruleType);
    }

    private ApplicationGatewayRoutingRuleArgs() {}

    private ApplicationGatewayRoutingRuleArgs(ApplicationGatewayRoutingRuleArgs $) {
        this.backendAddressPool = $.backendAddressPool;
        this.backendSettings = $.backendSettings;
        this.id = $.id;
        this.listener = $.listener;
        this.name = $.name;
        this.priority = $.priority;
        this.ruleType = $.ruleType;
    }

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

    public static final class Builder {
        private ApplicationGatewayRoutingRuleArgs $;

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

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

        /**
         * @param backendAddressPool Backend address pool resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPool(@Nullable Output backendAddressPool) {
            $.backendAddressPool = backendAddressPool;
            return this;
        }

        /**
         * @param backendAddressPool Backend address pool resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPool(SubResourceArgs backendAddressPool) {
            return backendAddressPool(Output.of(backendAddressPool));
        }

        /**
         * @param backendSettings Backend settings resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder backendSettings(@Nullable Output backendSettings) {
            $.backendSettings = backendSettings;
            return this;
        }

        /**
         * @param backendSettings Backend settings resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder backendSettings(SubResourceArgs backendSettings) {
            return backendSettings(Output.of(backendSettings));
        }

        /**
         * @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 listener Listener resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder listener(@Nullable Output listener) {
            $.listener = listener;
            return this;
        }

        /**
         * @param listener Listener resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder listener(SubResourceArgs listener) {
            return listener(Output.of(listener));
        }

        /**
         * @param name Name of the routing 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 routing rule that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param priority Priority of the routing rule.
         * 
         * @return builder
         * 
         */
        public Builder priority(Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority of the routing rule.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

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

        /**
         * @param ruleType Rule type.
         * 
         * @return builder
         * 
         */
        public Builder ruleType(Either ruleType) {
            return ruleType(Output.of(ruleType));
        }

        /**
         * @param ruleType Rule type.
         * 
         * @return builder
         * 
         */
        public Builder ruleType(String ruleType) {
            return ruleType(Either.ofLeft(ruleType));
        }

        /**
         * @param ruleType Rule type.
         * 
         * @return builder
         * 
         */
        public Builder ruleType(ApplicationGatewayRequestRoutingRuleType ruleType) {
            return ruleType(Either.ofRight(ruleType));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy