Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.frontdoor.inputs.RulesEngineRuleMatchConditionArgs 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.
// *** 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.frontdoor.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 RulesEngineRuleMatchConditionArgs extends com.pulumi.resources.ResourceArgs {
public static final RulesEngineRuleMatchConditionArgs Empty = new RulesEngineRuleMatchConditionArgs();
/**
* can be set to `true` or `false` to negate the given condition. Defaults to `false`.
*
*/
@Import(name="negateCondition")
private @Nullable Output negateCondition;
/**
* @return can be set to `true` or `false` to negate the given condition. Defaults to `false`.
*
*/
public Optional> negateCondition() {
return Optional.ofNullable(this.negateCondition);
}
/**
* can be set to `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith` or `EndsWith`
*
*/
@Import(name="operator", required=true)
private Output operator;
/**
* @return can be set to `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith` or `EndsWith`
*
*/
public Output operator() {
return this.operator;
}
/**
* match against a specific key when `variable` is set to `PostArgs` or `RequestHeader`. It cannot be used with `QueryString` and `RequestMethod`.
*
*/
@Import(name="selector")
private @Nullable Output selector;
/**
* @return match against a specific key when `variable` is set to `PostArgs` or `RequestHeader`. It cannot be used with `QueryString` and `RequestMethod`.
*
*/
public Optional> selector() {
return Optional.ofNullable(this.selector);
}
/**
* can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
*
*/
@Import(name="transforms")
private @Nullable Output> transforms;
/**
* @return can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
*
*/
public Optional>> transforms() {
return Optional.ofNullable(this.transforms);
}
/**
* (array) can contain one or more strings.
*
*/
@Import(name="values")
private @Nullable Output> values;
/**
* @return (array) can contain one or more strings.
*
*/
public Optional>> values() {
return Optional.ofNullable(this.values);
}
/**
* can be set to `IsMobile`, `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestURI`, `RequestPath`, `RequestFilename`, `RequestFilenameExtension`,`RequestHeader`,`RequestBody` or `RequestScheme`.
*
*/
@Import(name="variable")
private @Nullable Output variable;
/**
* @return can be set to `IsMobile`, `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestURI`, `RequestPath`, `RequestFilename`, `RequestFilenameExtension`,`RequestHeader`,`RequestBody` or `RequestScheme`.
*
*/
public Optional> variable() {
return Optional.ofNullable(this.variable);
}
private RulesEngineRuleMatchConditionArgs() {}
private RulesEngineRuleMatchConditionArgs(RulesEngineRuleMatchConditionArgs $) {
this.negateCondition = $.negateCondition;
this.operator = $.operator;
this.selector = $.selector;
this.transforms = $.transforms;
this.values = $.values;
this.variable = $.variable;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RulesEngineRuleMatchConditionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RulesEngineRuleMatchConditionArgs $;
public Builder() {
$ = new RulesEngineRuleMatchConditionArgs();
}
public Builder(RulesEngineRuleMatchConditionArgs defaults) {
$ = new RulesEngineRuleMatchConditionArgs(Objects.requireNonNull(defaults));
}
/**
* @param negateCondition can be set to `true` or `false` to negate the given condition. Defaults to `false`.
*
* @return builder
*
*/
public Builder negateCondition(@Nullable Output negateCondition) {
$.negateCondition = negateCondition;
return this;
}
/**
* @param negateCondition can be set to `true` or `false` to negate the given condition. Defaults to `false`.
*
* @return builder
*
*/
public Builder negateCondition(Boolean negateCondition) {
return negateCondition(Output.of(negateCondition));
}
/**
* @param operator can be set to `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith` or `EndsWith`
*
* @return builder
*
*/
public Builder operator(Output operator) {
$.operator = operator;
return this;
}
/**
* @param operator can be set to `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith` or `EndsWith`
*
* @return builder
*
*/
public Builder operator(String operator) {
return operator(Output.of(operator));
}
/**
* @param selector match against a specific key when `variable` is set to `PostArgs` or `RequestHeader`. It cannot be used with `QueryString` and `RequestMethod`.
*
* @return builder
*
*/
public Builder selector(@Nullable Output selector) {
$.selector = selector;
return this;
}
/**
* @param selector match against a specific key when `variable` is set to `PostArgs` or `RequestHeader`. It cannot be used with `QueryString` and `RequestMethod`.
*
* @return builder
*
*/
public Builder selector(String selector) {
return selector(Output.of(selector));
}
/**
* @param transforms can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
*
* @return builder
*
*/
public Builder transforms(@Nullable Output> transforms) {
$.transforms = transforms;
return this;
}
/**
* @param transforms can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
*
* @return builder
*
*/
public Builder transforms(List transforms) {
return transforms(Output.of(transforms));
}
/**
* @param transforms can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
*
* @return builder
*
*/
public Builder transforms(String... transforms) {
return transforms(List.of(transforms));
}
/**
* @param values (array) can contain one or more strings.
*
* @return builder
*
*/
public Builder values(@Nullable Output> values) {
$.values = values;
return this;
}
/**
* @param values (array) can contain one or more strings.
*
* @return builder
*
*/
public Builder values(List values) {
return values(Output.of(values));
}
/**
* @param values (array) can contain one or more strings.
*
* @return builder
*
*/
public Builder values(String... values) {
return values(List.of(values));
}
/**
* @param variable can be set to `IsMobile`, `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestURI`, `RequestPath`, `RequestFilename`, `RequestFilenameExtension`,`RequestHeader`,`RequestBody` or `RequestScheme`.
*
* @return builder
*
*/
public Builder variable(@Nullable Output variable) {
$.variable = variable;
return this;
}
/**
* @param variable can be set to `IsMobile`, `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestURI`, `RequestPath`, `RequestFilename`, `RequestFilenameExtension`,`RequestHeader`,`RequestBody` or `RequestScheme`.
*
* @return builder
*
*/
public Builder variable(String variable) {
return variable(Output.of(variable));
}
public RulesEngineRuleMatchConditionArgs build() {
if ($.operator == null) {
throw new MissingRequiredPropertyException("RulesEngineRuleMatchConditionArgs", "operator");
}
return $;
}
}
}