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

com.pulumi.azure.cdn.inputs.FrontdoorRuleConditionsPostArgsConditionArgs 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.cdn.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FrontdoorRuleConditionsPostArgsConditionArgs Empty = new FrontdoorRuleConditionsPostArgsConditionArgs();

    /**
     * One or more string or integer values(e.g. "1") representing the value of the `POST` argument to match. If multiple values are specified, they're evaluated using `OR` logic.
     * 
     */
    @Import(name="matchValues")
    private @Nullable Output> matchValues;

    /**
     * @return One or more string or integer values(e.g. "1") representing the value of the `POST` argument to match. If multiple values are specified, they're evaluated using `OR` logic.
     * 
     */
    public Optional>> matchValues() {
        return Optional.ofNullable(this.matchValues);
    }

    /**
     * If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
     * 
     */
    @Import(name="negateCondition")
    private @Nullable Output negateCondition;

    /**
     * @return If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
     * 
     */
    public Optional> negateCondition() {
        return Optional.ofNullable(this.negateCondition);
    }

    /**
     * A Conditional operator. Possible values include `Any`, `Equal`, `Contains`, `BeginsWith`, `EndsWith`, `LessThan`, `LessThanOrEqual`, `GreaterThan`, `GreaterThanOrEqual` or `RegEx`. Details can be found in the `Condition Operator List` below.
     * 
     */
    @Import(name="operator", required=true)
    private Output operator;

    /**
     * @return A Conditional operator. Possible values include `Any`, `Equal`, `Contains`, `BeginsWith`, `EndsWith`, `LessThan`, `LessThanOrEqual`, `GreaterThan`, `GreaterThanOrEqual` or `RegEx`. Details can be found in the `Condition Operator List` below.
     * 
     */
    public Output operator() {
        return this.operator;
    }

    /**
     * A string value representing the name of the `POST` argument.
     * 
     */
    @Import(name="postArgsName", required=true)
    private Output postArgsName;

    /**
     * @return A string value representing the name of the `POST` argument.
     * 
     */
    public Output postArgsName() {
        return this.postArgsName;
    }

    /**
     * A Conditional operator. Possible values include `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` or `UrlEncode`. Details can be found in the `Condition Transform List` below.
     * 
     */
    @Import(name="transforms")
    private @Nullable Output> transforms;

    /**
     * @return A Conditional operator. Possible values include `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` or `UrlEncode`. Details can be found in the `Condition Transform List` below.
     * 
     */
    public Optional>> transforms() {
        return Optional.ofNullable(this.transforms);
    }

    private FrontdoorRuleConditionsPostArgsConditionArgs() {}

    private FrontdoorRuleConditionsPostArgsConditionArgs(FrontdoorRuleConditionsPostArgsConditionArgs $) {
        this.matchValues = $.matchValues;
        this.negateCondition = $.negateCondition;
        this.operator = $.operator;
        this.postArgsName = $.postArgsName;
        this.transforms = $.transforms;
    }

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

    public static final class Builder {
        private FrontdoorRuleConditionsPostArgsConditionArgs $;

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

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

        /**
         * @param matchValues One or more string or integer values(e.g. "1") representing the value of the `POST` argument to match. If multiple values are specified, they're evaluated using `OR` logic.
         * 
         * @return builder
         * 
         */
        public Builder matchValues(@Nullable Output> matchValues) {
            $.matchValues = matchValues;
            return this;
        }

        /**
         * @param matchValues One or more string or integer values(e.g. "1") representing the value of the `POST` argument to match. If multiple values are specified, they're evaluated using `OR` logic.
         * 
         * @return builder
         * 
         */
        public Builder matchValues(List matchValues) {
            return matchValues(Output.of(matchValues));
        }

        /**
         * @param matchValues One or more string or integer values(e.g. "1") representing the value of the `POST` argument to match. If multiple values are specified, they're evaluated using `OR` logic.
         * 
         * @return builder
         * 
         */
        public Builder matchValues(String... matchValues) {
            return matchValues(List.of(matchValues));
        }

        /**
         * @param negateCondition If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
         * 
         * @return builder
         * 
         */
        public Builder negateCondition(@Nullable Output negateCondition) {
            $.negateCondition = negateCondition;
            return this;
        }

        /**
         * @param negateCondition If `true` operator becomes the opposite of its value. Possible values `true` or `false`. Defaults to `false`. Details can be found in the `Condition Operator List` below.
         * 
         * @return builder
         * 
         */
        public Builder negateCondition(Boolean negateCondition) {
            return negateCondition(Output.of(negateCondition));
        }

        /**
         * @param operator A Conditional operator. Possible values include `Any`, `Equal`, `Contains`, `BeginsWith`, `EndsWith`, `LessThan`, `LessThanOrEqual`, `GreaterThan`, `GreaterThanOrEqual` or `RegEx`. Details can be found in the `Condition Operator List` below.
         * 
         * @return builder
         * 
         */
        public Builder operator(Output operator) {
            $.operator = operator;
            return this;
        }

        /**
         * @param operator A Conditional operator. Possible values include `Any`, `Equal`, `Contains`, `BeginsWith`, `EndsWith`, `LessThan`, `LessThanOrEqual`, `GreaterThan`, `GreaterThanOrEqual` or `RegEx`. Details can be found in the `Condition Operator List` below.
         * 
         * @return builder
         * 
         */
        public Builder operator(String operator) {
            return operator(Output.of(operator));
        }

        /**
         * @param postArgsName A string value representing the name of the `POST` argument.
         * 
         * @return builder
         * 
         */
        public Builder postArgsName(Output postArgsName) {
            $.postArgsName = postArgsName;
            return this;
        }

        /**
         * @param postArgsName A string value representing the name of the `POST` argument.
         * 
         * @return builder
         * 
         */
        public Builder postArgsName(String postArgsName) {
            return postArgsName(Output.of(postArgsName));
        }

        /**
         * @param transforms A Conditional operator. Possible values include `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` or `UrlEncode`. Details can be found in the `Condition Transform List` below.
         * 
         * @return builder
         * 
         */
        public Builder transforms(@Nullable Output> transforms) {
            $.transforms = transforms;
            return this;
        }

        /**
         * @param transforms A Conditional operator. Possible values include `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` or `UrlEncode`. Details can be found in the `Condition Transform List` below.
         * 
         * @return builder
         * 
         */
        public Builder transforms(List transforms) {
            return transforms(Output.of(transforms));
        }

        /**
         * @param transforms A Conditional operator. Possible values include `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` or `UrlEncode`. Details can be found in the `Condition Transform List` below.
         * 
         * @return builder
         * 
         */
        public Builder transforms(String... transforms) {
            return transforms(List.of(transforms));
        }

        public FrontdoorRuleConditionsPostArgsConditionArgs build() {
            if ($.operator == null) {
                throw new MissingRequiredPropertyException("FrontdoorRuleConditionsPostArgsConditionArgs", "operator");
            }
            if ($.postArgsName == null) {
                throw new MissingRequiredPropertyException("FrontdoorRuleConditionsPostArgsConditionArgs", "postArgsName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy