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

com.pulumi.azurenative.network.inputs.ApplicationGatewayRewriteRuleConditionArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Set of conditions in the Rewrite Rule in Application Gateway.
 * 
 */
public final class ApplicationGatewayRewriteRuleConditionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayRewriteRuleConditionArgs Empty = new ApplicationGatewayRewriteRuleConditionArgs();

    /**
     * Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
     * 
     */
    @Import(name="ignoreCase")
    private @Nullable Output ignoreCase;

    /**
     * @return Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
     * 
     */
    public Optional> ignoreCase() {
        return Optional.ofNullable(this.ignoreCase);
    }

    /**
     * Setting this value as truth will force to check the negation of the condition given by the user.
     * 
     */
    @Import(name="negate")
    private @Nullable Output negate;

    /**
     * @return Setting this value as truth will force to check the negation of the condition given by the user.
     * 
     */
    public Optional> negate() {
        return Optional.ofNullable(this.negate);
    }

    /**
     * The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
     * 
     */
    @Import(name="pattern")
    private @Nullable Output pattern;

    /**
     * @return The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
     * 
     */
    public Optional> pattern() {
        return Optional.ofNullable(this.pattern);
    }

    /**
     * The condition parameter of the RewriteRuleCondition.
     * 
     */
    @Import(name="variable")
    private @Nullable Output variable;

    /**
     * @return The condition parameter of the RewriteRuleCondition.
     * 
     */
    public Optional> variable() {
        return Optional.ofNullable(this.variable);
    }

    private ApplicationGatewayRewriteRuleConditionArgs() {}

    private ApplicationGatewayRewriteRuleConditionArgs(ApplicationGatewayRewriteRuleConditionArgs $) {
        this.ignoreCase = $.ignoreCase;
        this.negate = $.negate;
        this.pattern = $.pattern;
        this.variable = $.variable;
    }

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

    public static final class Builder {
        private ApplicationGatewayRewriteRuleConditionArgs $;

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

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

        /**
         * @param ignoreCase Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
         * 
         * @return builder
         * 
         */
        public Builder ignoreCase(@Nullable Output ignoreCase) {
            $.ignoreCase = ignoreCase;
            return this;
        }

        /**
         * @param ignoreCase Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
         * 
         * @return builder
         * 
         */
        public Builder ignoreCase(Boolean ignoreCase) {
            return ignoreCase(Output.of(ignoreCase));
        }

        /**
         * @param negate Setting this value as truth will force to check the negation of the condition given by the user.
         * 
         * @return builder
         * 
         */
        public Builder negate(@Nullable Output negate) {
            $.negate = negate;
            return this;
        }

        /**
         * @param negate Setting this value as truth will force to check the negation of the condition given by the user.
         * 
         * @return builder
         * 
         */
        public Builder negate(Boolean negate) {
            return negate(Output.of(negate));
        }

        /**
         * @param pattern The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
         * 
         * @return builder
         * 
         */
        public Builder pattern(@Nullable Output pattern) {
            $.pattern = pattern;
            return this;
        }

        /**
         * @param pattern The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
         * 
         * @return builder
         * 
         */
        public Builder pattern(String pattern) {
            return pattern(Output.of(pattern));
        }

        /**
         * @param variable The condition parameter of the RewriteRuleCondition.
         * 
         * @return builder
         * 
         */
        public Builder variable(@Nullable Output variable) {
            $.variable = variable;
            return this;
        }

        /**
         * @param variable The condition parameter of the RewriteRuleCondition.
         * 
         * @return builder
         * 
         */
        public Builder variable(String variable) {
            return variable(Output.of(variable));
        }

        public ApplicationGatewayRewriteRuleConditionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy