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

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

There is a newer version: 2.72.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.inputs.ForwardingConfigurationArgs;
import com.pulumi.azurenative.network.inputs.HeaderActionArgs;
import com.pulumi.azurenative.network.inputs.RedirectConfigurationArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * One or more actions that will execute, modifying the request and/or response.
 * 
 */
public final class RulesEngineActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final RulesEngineActionArgs Empty = new RulesEngineActionArgs();

    /**
     * A list of header actions to apply from the request from AFD to the origin.
     * 
     */
    @Import(name="requestHeaderActions")
    private @Nullable Output> requestHeaderActions;

    /**
     * @return A list of header actions to apply from the request from AFD to the origin.
     * 
     */
    public Optional>> requestHeaderActions() {
        return Optional.ofNullable(this.requestHeaderActions);
    }

    /**
     * A list of header actions to apply from the response from AFD to the client.
     * 
     */
    @Import(name="responseHeaderActions")
    private @Nullable Output> responseHeaderActions;

    /**
     * @return A list of header actions to apply from the response from AFD to the client.
     * 
     */
    public Optional>> responseHeaderActions() {
        return Optional.ofNullable(this.responseHeaderActions);
    }

    /**
     * Override the route configuration.
     * 
     */
    @Import(name="routeConfigurationOverride")
    private @Nullable Output> routeConfigurationOverride;

    /**
     * @return Override the route configuration.
     * 
     */
    public Optional>> routeConfigurationOverride() {
        return Optional.ofNullable(this.routeConfigurationOverride);
    }

    private RulesEngineActionArgs() {}

    private RulesEngineActionArgs(RulesEngineActionArgs $) {
        this.requestHeaderActions = $.requestHeaderActions;
        this.responseHeaderActions = $.responseHeaderActions;
        this.routeConfigurationOverride = $.routeConfigurationOverride;
    }

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

    public static final class Builder {
        private RulesEngineActionArgs $;

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

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

        /**
         * @param requestHeaderActions A list of header actions to apply from the request from AFD to the origin.
         * 
         * @return builder
         * 
         */
        public Builder requestHeaderActions(@Nullable Output> requestHeaderActions) {
            $.requestHeaderActions = requestHeaderActions;
            return this;
        }

        /**
         * @param requestHeaderActions A list of header actions to apply from the request from AFD to the origin.
         * 
         * @return builder
         * 
         */
        public Builder requestHeaderActions(List requestHeaderActions) {
            return requestHeaderActions(Output.of(requestHeaderActions));
        }

        /**
         * @param requestHeaderActions A list of header actions to apply from the request from AFD to the origin.
         * 
         * @return builder
         * 
         */
        public Builder requestHeaderActions(HeaderActionArgs... requestHeaderActions) {
            return requestHeaderActions(List.of(requestHeaderActions));
        }

        /**
         * @param responseHeaderActions A list of header actions to apply from the response from AFD to the client.
         * 
         * @return builder
         * 
         */
        public Builder responseHeaderActions(@Nullable Output> responseHeaderActions) {
            $.responseHeaderActions = responseHeaderActions;
            return this;
        }

        /**
         * @param responseHeaderActions A list of header actions to apply from the response from AFD to the client.
         * 
         * @return builder
         * 
         */
        public Builder responseHeaderActions(List responseHeaderActions) {
            return responseHeaderActions(Output.of(responseHeaderActions));
        }

        /**
         * @param responseHeaderActions A list of header actions to apply from the response from AFD to the client.
         * 
         * @return builder
         * 
         */
        public Builder responseHeaderActions(HeaderActionArgs... responseHeaderActions) {
            return responseHeaderActions(List.of(responseHeaderActions));
        }

        /**
         * @param routeConfigurationOverride Override the route configuration.
         * 
         * @return builder
         * 
         */
        public Builder routeConfigurationOverride(@Nullable Output> routeConfigurationOverride) {
            $.routeConfigurationOverride = routeConfigurationOverride;
            return this;
        }

        /**
         * @param routeConfigurationOverride Override the route configuration.
         * 
         * @return builder
         * 
         */
        public Builder routeConfigurationOverride(Either routeConfigurationOverride) {
            return routeConfigurationOverride(Output.of(routeConfigurationOverride));
        }

        /**
         * @param routeConfigurationOverride Override the route configuration.
         * 
         * @return builder
         * 
         */
        public Builder routeConfigurationOverride(ForwardingConfigurationArgs routeConfigurationOverride) {
            return routeConfigurationOverride(Either.ofLeft(routeConfigurationOverride));
        }

        /**
         * @param routeConfigurationOverride Override the route configuration.
         * 
         * @return builder
         * 
         */
        public Builder routeConfigurationOverride(RedirectConfigurationArgs routeConfigurationOverride) {
            return routeConfigurationOverride(Either.ofRight(routeConfigurationOverride));
        }

        public RulesEngineActionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy