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

com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network.inputs;

import com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleConditionArgs;
import com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs;
import com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleResponseHeaderConfigurationArgs;
import com.pulumi.azure.network.inputs.ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ApplicationGatewayRewriteRuleSetRewriteRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayRewriteRuleSetRewriteRuleArgs Empty = new ApplicationGatewayRewriteRuleSetRewriteRuleArgs();

    /**
     * One or more `condition` blocks as defined above.
     * 
     */
    @Import(name="conditions")
    private @Nullable Output> conditions;

    /**
     * @return One or more `condition` blocks as defined above.
     * 
     */
    public Optional>> conditions() {
        return Optional.ofNullable(this.conditions);
    }

    /**
     * Unique name of the rewrite rule block
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Unique name of the rewrite rule block
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * One or more `request_header_configuration` blocks as defined above.
     * 
     */
    @Import(name="requestHeaderConfigurations")
    private @Nullable Output> requestHeaderConfigurations;

    /**
     * @return One or more `request_header_configuration` blocks as defined above.
     * 
     */
    public Optional>> requestHeaderConfigurations() {
        return Optional.ofNullable(this.requestHeaderConfigurations);
    }

    /**
     * One or more `response_header_configuration` blocks as defined above.
     * 
     */
    @Import(name="responseHeaderConfigurations")
    private @Nullable Output> responseHeaderConfigurations;

    /**
     * @return One or more `response_header_configuration` blocks as defined above.
     * 
     */
    public Optional>> responseHeaderConfigurations() {
        return Optional.ofNullable(this.responseHeaderConfigurations);
    }

    /**
     * Rule sequence of the rewrite rule that determines the order of execution in a set.
     * 
     */
    @Import(name="ruleSequence", required=true)
    private Output ruleSequence;

    /**
     * @return Rule sequence of the rewrite rule that determines the order of execution in a set.
     * 
     */
    public Output ruleSequence() {
        return this.ruleSequence;
    }

    /**
     * One `url` block as defined below
     * 
     */
    @Import(name="url")
    private @Nullable Output url;

    /**
     * @return One `url` block as defined below
     * 
     */
    public Optional> url() {
        return Optional.ofNullable(this.url);
    }

    private ApplicationGatewayRewriteRuleSetRewriteRuleArgs() {}

    private ApplicationGatewayRewriteRuleSetRewriteRuleArgs(ApplicationGatewayRewriteRuleSetRewriteRuleArgs $) {
        this.conditions = $.conditions;
        this.name = $.name;
        this.requestHeaderConfigurations = $.requestHeaderConfigurations;
        this.responseHeaderConfigurations = $.responseHeaderConfigurations;
        this.ruleSequence = $.ruleSequence;
        this.url = $.url;
    }

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

    public static final class Builder {
        private ApplicationGatewayRewriteRuleSetRewriteRuleArgs $;

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

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

        /**
         * @param conditions One or more `condition` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder conditions(@Nullable Output> conditions) {
            $.conditions = conditions;
            return this;
        }

        /**
         * @param conditions One or more `condition` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder conditions(List conditions) {
            return conditions(Output.of(conditions));
        }

        /**
         * @param conditions One or more `condition` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder conditions(ApplicationGatewayRewriteRuleSetRewriteRuleConditionArgs... conditions) {
            return conditions(List.of(conditions));
        }

        /**
         * @param name Unique name of the rewrite rule block
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Unique name of the rewrite rule block
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param requestHeaderConfigurations One or more `request_header_configuration` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder requestHeaderConfigurations(@Nullable Output> requestHeaderConfigurations) {
            $.requestHeaderConfigurations = requestHeaderConfigurations;
            return this;
        }

        /**
         * @param requestHeaderConfigurations One or more `request_header_configuration` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder requestHeaderConfigurations(List requestHeaderConfigurations) {
            return requestHeaderConfigurations(Output.of(requestHeaderConfigurations));
        }

        /**
         * @param requestHeaderConfigurations One or more `request_header_configuration` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder requestHeaderConfigurations(ApplicationGatewayRewriteRuleSetRewriteRuleRequestHeaderConfigurationArgs... requestHeaderConfigurations) {
            return requestHeaderConfigurations(List.of(requestHeaderConfigurations));
        }

        /**
         * @param responseHeaderConfigurations One or more `response_header_configuration` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder responseHeaderConfigurations(@Nullable Output> responseHeaderConfigurations) {
            $.responseHeaderConfigurations = responseHeaderConfigurations;
            return this;
        }

        /**
         * @param responseHeaderConfigurations One or more `response_header_configuration` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder responseHeaderConfigurations(List responseHeaderConfigurations) {
            return responseHeaderConfigurations(Output.of(responseHeaderConfigurations));
        }

        /**
         * @param responseHeaderConfigurations One or more `response_header_configuration` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder responseHeaderConfigurations(ApplicationGatewayRewriteRuleSetRewriteRuleResponseHeaderConfigurationArgs... responseHeaderConfigurations) {
            return responseHeaderConfigurations(List.of(responseHeaderConfigurations));
        }

        /**
         * @param ruleSequence Rule sequence of the rewrite rule that determines the order of execution in a set.
         * 
         * @return builder
         * 
         */
        public Builder ruleSequence(Output ruleSequence) {
            $.ruleSequence = ruleSequence;
            return this;
        }

        /**
         * @param ruleSequence Rule sequence of the rewrite rule that determines the order of execution in a set.
         * 
         * @return builder
         * 
         */
        public Builder ruleSequence(Integer ruleSequence) {
            return ruleSequence(Output.of(ruleSequence));
        }

        /**
         * @param url One `url` block as defined below
         * 
         * @return builder
         * 
         */
        public Builder url(@Nullable Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url One `url` block as defined below
         * 
         * @return builder
         * 
         */
        public Builder url(ApplicationGatewayRewriteRuleSetRewriteRuleUrlArgs url) {
            return url(Output.of(url));
        }

        public ApplicationGatewayRewriteRuleSetRewriteRuleArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ApplicationGatewayRewriteRuleSetRewriteRuleArgs", "name");
            }
            if ($.ruleSequence == null) {
                throw new MissingRequiredPropertyException("ApplicationGatewayRewriteRuleSetRewriteRuleArgs", "ruleSequence");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy