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

com.pulumi.azurenative.network.outputs.RulesEngineActionResponse 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.outputs;

import com.pulumi.azurenative.network.outputs.ForwardingConfigurationResponse;
import com.pulumi.azurenative.network.outputs.HeaderActionResponse;
import com.pulumi.azurenative.network.outputs.RedirectConfigurationResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RulesEngineActionResponse {
    /**
     * @return A list of header actions to apply from the request from AFD to the origin.
     * 
     */
    private @Nullable List requestHeaderActions;
    /**
     * @return A list of header actions to apply from the response from AFD to the client.
     * 
     */
    private @Nullable List responseHeaderActions;
    /**
     * @return Override the route configuration.
     * 
     */
    private @Nullable Either routeConfigurationOverride;

    private RulesEngineActionResponse() {}
    /**
     * @return A list of header actions to apply from the request from AFD to the origin.
     * 
     */
    public List requestHeaderActions() {
        return this.requestHeaderActions == null ? List.of() : this.requestHeaderActions;
    }
    /**
     * @return A list of header actions to apply from the response from AFD to the client.
     * 
     */
    public List responseHeaderActions() {
        return this.responseHeaderActions == null ? List.of() : this.responseHeaderActions;
    }
    /**
     * @return Override the route configuration.
     * 
     */
    public Optional> routeConfigurationOverride() {
        return Optional.ofNullable(this.routeConfigurationOverride);
    }

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

    public static Builder builder(RulesEngineActionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List requestHeaderActions;
        private @Nullable List responseHeaderActions;
        private @Nullable Either routeConfigurationOverride;
        public Builder() {}
        public Builder(RulesEngineActionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.requestHeaderActions = defaults.requestHeaderActions;
    	      this.responseHeaderActions = defaults.responseHeaderActions;
    	      this.routeConfigurationOverride = defaults.routeConfigurationOverride;
        }

        @CustomType.Setter
        public Builder requestHeaderActions(@Nullable List requestHeaderActions) {

            this.requestHeaderActions = requestHeaderActions;
            return this;
        }
        public Builder requestHeaderActions(HeaderActionResponse... requestHeaderActions) {
            return requestHeaderActions(List.of(requestHeaderActions));
        }
        @CustomType.Setter
        public Builder responseHeaderActions(@Nullable List responseHeaderActions) {

            this.responseHeaderActions = responseHeaderActions;
            return this;
        }
        public Builder responseHeaderActions(HeaderActionResponse... responseHeaderActions) {
            return responseHeaderActions(List.of(responseHeaderActions));
        }
        @CustomType.Setter
        public Builder routeConfigurationOverride(@Nullable Either routeConfigurationOverride) {

            this.routeConfigurationOverride = routeConfigurationOverride;
            return this;
        }
        public RulesEngineActionResponse build() {
            final var _resultValue = new RulesEngineActionResponse();
            _resultValue.requestHeaderActions = requestHeaderActions;
            _resultValue.responseHeaderActions = responseHeaderActions;
            _resultValue.routeConfigurationOverride = routeConfigurationOverride;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy