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

com.pulumi.azurenative.network.inputs.ForwardingConfigurationArgs 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.network.inputs;

import com.pulumi.azurenative.network.enums.FrontDoorForwardingProtocol;
import com.pulumi.azurenative.network.inputs.CacheConfigurationArgs;
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.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes Forwarding Route.
 * 
 */
public final class ForwardingConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ForwardingConfigurationArgs Empty = new ForwardingConfigurationArgs();

    /**
     * A reference to the BackendPool which this rule routes to.
     * 
     */
    @Import(name="backendPool")
    private @Nullable Output backendPool;

    /**
     * @return A reference to the BackendPool which this rule routes to.
     * 
     */
    public Optional> backendPool() {
        return Optional.ofNullable(this.backendPool);
    }

    /**
     * The caching configuration associated with this rule.
     * 
     */
    @Import(name="cacheConfiguration")
    private @Nullable Output cacheConfiguration;

    /**
     * @return The caching configuration associated with this rule.
     * 
     */
    public Optional> cacheConfiguration() {
        return Optional.ofNullable(this.cacheConfiguration);
    }

    /**
     * A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.
     * 
     */
    @Import(name="customForwardingPath")
    private @Nullable Output customForwardingPath;

    /**
     * @return A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.
     * 
     */
    public Optional> customForwardingPath() {
        return Optional.ofNullable(this.customForwardingPath);
    }

    /**
     * Protocol this rule will use when forwarding traffic to backends.
     * 
     */
    @Import(name="forwardingProtocol")
    private @Nullable Output> forwardingProtocol;

    /**
     * @return Protocol this rule will use when forwarding traffic to backends.
     * 
     */
    public Optional>> forwardingProtocol() {
        return Optional.ofNullable(this.forwardingProtocol);
    }

    /**
     * Expected value is '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration'.
     * 
     */
    @Import(name="odataType", required=true)
    private Output odataType;

    /**
     * @return
     * Expected value is '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration'.
     * 
     */
    public Output odataType() {
        return this.odataType;
    }

    private ForwardingConfigurationArgs() {}

    private ForwardingConfigurationArgs(ForwardingConfigurationArgs $) {
        this.backendPool = $.backendPool;
        this.cacheConfiguration = $.cacheConfiguration;
        this.customForwardingPath = $.customForwardingPath;
        this.forwardingProtocol = $.forwardingProtocol;
        this.odataType = $.odataType;
    }

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

    public static final class Builder {
        private ForwardingConfigurationArgs $;

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

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

        /**
         * @param backendPool A reference to the BackendPool which this rule routes to.
         * 
         * @return builder
         * 
         */
        public Builder backendPool(@Nullable Output backendPool) {
            $.backendPool = backendPool;
            return this;
        }

        /**
         * @param backendPool A reference to the BackendPool which this rule routes to.
         * 
         * @return builder
         * 
         */
        public Builder backendPool(SubResourceArgs backendPool) {
            return backendPool(Output.of(backendPool));
        }

        /**
         * @param cacheConfiguration The caching configuration associated with this rule.
         * 
         * @return builder
         * 
         */
        public Builder cacheConfiguration(@Nullable Output cacheConfiguration) {
            $.cacheConfiguration = cacheConfiguration;
            return this;
        }

        /**
         * @param cacheConfiguration The caching configuration associated with this rule.
         * 
         * @return builder
         * 
         */
        public Builder cacheConfiguration(CacheConfigurationArgs cacheConfiguration) {
            return cacheConfiguration(Output.of(cacheConfiguration));
        }

        /**
         * @param customForwardingPath A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.
         * 
         * @return builder
         * 
         */
        public Builder customForwardingPath(@Nullable Output customForwardingPath) {
            $.customForwardingPath = customForwardingPath;
            return this;
        }

        /**
         * @param customForwardingPath A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.
         * 
         * @return builder
         * 
         */
        public Builder customForwardingPath(String customForwardingPath) {
            return customForwardingPath(Output.of(customForwardingPath));
        }

        /**
         * @param forwardingProtocol Protocol this rule will use when forwarding traffic to backends.
         * 
         * @return builder
         * 
         */
        public Builder forwardingProtocol(@Nullable Output> forwardingProtocol) {
            $.forwardingProtocol = forwardingProtocol;
            return this;
        }

        /**
         * @param forwardingProtocol Protocol this rule will use when forwarding traffic to backends.
         * 
         * @return builder
         * 
         */
        public Builder forwardingProtocol(Either forwardingProtocol) {
            return forwardingProtocol(Output.of(forwardingProtocol));
        }

        /**
         * @param forwardingProtocol Protocol this rule will use when forwarding traffic to backends.
         * 
         * @return builder
         * 
         */
        public Builder forwardingProtocol(String forwardingProtocol) {
            return forwardingProtocol(Either.ofLeft(forwardingProtocol));
        }

        /**
         * @param forwardingProtocol Protocol this rule will use when forwarding traffic to backends.
         * 
         * @return builder
         * 
         */
        public Builder forwardingProtocol(FrontDoorForwardingProtocol forwardingProtocol) {
            return forwardingProtocol(Either.ofRight(forwardingProtocol));
        }

        /**
         * @param odataType
         * Expected value is '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(Output odataType) {
            $.odataType = odataType;
            return this;
        }

        /**
         * @param odataType
         * Expected value is '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(String odataType) {
            return odataType(Output.of(odataType));
        }

        public ForwardingConfigurationArgs build() {
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy