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

com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleRequestMethodConditionArgs 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 EndpointDeliveryRuleRequestMethodConditionArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointDeliveryRuleRequestMethodConditionArgs Empty = new EndpointDeliveryRuleRequestMethodConditionArgs();

    /**
     * Valid values are `DELETE`, `GET`, `HEAD`, `OPTIONS`, `POST` and `PUT`.
     * 
     */
    @Import(name="matchValues", required=true)
    private Output> matchValues;

    /**
     * @return Valid values are `DELETE`, `GET`, `HEAD`, `OPTIONS`, `POST` and `PUT`.
     * 
     */
    public Output> matchValues() {
        return this.matchValues;
    }

    /**
     * Defaults to `false`.
     * 
     */
    @Import(name="negateCondition")
    private @Nullable Output negateCondition;

    /**
     * @return Defaults to `false`.
     * 
     */
    public Optional> negateCondition() {
        return Optional.ofNullable(this.negateCondition);
    }

    /**
     * Valid values are `Equal`. Defaults to `Equal`.
     * 
     */
    @Import(name="operator")
    private @Nullable Output operator;

    /**
     * @return Valid values are `Equal`. Defaults to `Equal`.
     * 
     */
    public Optional> operator() {
        return Optional.ofNullable(this.operator);
    }

    private EndpointDeliveryRuleRequestMethodConditionArgs() {}

    private EndpointDeliveryRuleRequestMethodConditionArgs(EndpointDeliveryRuleRequestMethodConditionArgs $) {
        this.matchValues = $.matchValues;
        this.negateCondition = $.negateCondition;
        this.operator = $.operator;
    }

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

    public static final class Builder {
        private EndpointDeliveryRuleRequestMethodConditionArgs $;

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

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

        /**
         * @param matchValues Valid values are `DELETE`, `GET`, `HEAD`, `OPTIONS`, `POST` and `PUT`.
         * 
         * @return builder
         * 
         */
        public Builder matchValues(Output> matchValues) {
            $.matchValues = matchValues;
            return this;
        }

        /**
         * @param matchValues Valid values are `DELETE`, `GET`, `HEAD`, `OPTIONS`, `POST` and `PUT`.
         * 
         * @return builder
         * 
         */
        public Builder matchValues(List matchValues) {
            return matchValues(Output.of(matchValues));
        }

        /**
         * @param matchValues Valid values are `DELETE`, `GET`, `HEAD`, `OPTIONS`, `POST` and `PUT`.
         * 
         * @return builder
         * 
         */
        public Builder matchValues(String... matchValues) {
            return matchValues(List.of(matchValues));
        }

        /**
         * @param negateCondition Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder negateCondition(@Nullable Output negateCondition) {
            $.negateCondition = negateCondition;
            return this;
        }

        /**
         * @param negateCondition Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder negateCondition(Boolean negateCondition) {
            return negateCondition(Output.of(negateCondition));
        }

        /**
         * @param operator Valid values are `Equal`. Defaults to `Equal`.
         * 
         * @return builder
         * 
         */
        public Builder operator(@Nullable Output operator) {
            $.operator = operator;
            return this;
        }

        /**
         * @param operator Valid values are `Equal`. Defaults to `Equal`.
         * 
         * @return builder
         * 
         */
        public Builder operator(String operator) {
            return operator(Output.of(operator));
        }

        public EndpointDeliveryRuleRequestMethodConditionArgs build() {
            if ($.matchValues == null) {
                throw new MissingRequiredPropertyException("EndpointDeliveryRuleRequestMethodConditionArgs", "matchValues");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy