com.pulumi.azure.cdn.outputs.FrontdoorRuleConditionsSocketAddressCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.cdn.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FrontdoorRuleConditionsSocketAddressCondition {
/**
* @return Specify one or more IP address ranges. If multiple IP address ranges are specified, they're evaluated using `OR` logic.
*
* ->**NOTE:** See the `Specifying IP Address Ranges` section below on how to correctly define the `match_values` field.
*
*/
private @Nullable List matchValues;
/**
* @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.
*
*/
private @Nullable Boolean negateCondition;
/**
* @return The type of match. The Possible values are `IpMatch` or `Any`. Defaults to `IPMatch`.
*
* ->**NOTE:** If the value of the `operator` field is set to `IpMatch` then the `match_values` field is also required.
*
*/
private @Nullable String operator;
private FrontdoorRuleConditionsSocketAddressCondition() {}
/**
* @return Specify one or more IP address ranges. If multiple IP address ranges are specified, they're evaluated using `OR` logic.
*
* ->**NOTE:** See the `Specifying IP Address Ranges` section below on how to correctly define the `match_values` field.
*
*/
public List matchValues() {
return this.matchValues == null ? List.of() : this.matchValues;
}
/**
* @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);
}
/**
* @return The type of match. The Possible values are `IpMatch` or `Any`. Defaults to `IPMatch`.
*
* ->**NOTE:** If the value of the `operator` field is set to `IpMatch` then the `match_values` field is also required.
*
*/
public Optional operator() {
return Optional.ofNullable(this.operator);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FrontdoorRuleConditionsSocketAddressCondition defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List matchValues;
private @Nullable Boolean negateCondition;
private @Nullable String operator;
public Builder() {}
public Builder(FrontdoorRuleConditionsSocketAddressCondition defaults) {
Objects.requireNonNull(defaults);
this.matchValues = defaults.matchValues;
this.negateCondition = defaults.negateCondition;
this.operator = defaults.operator;
}
@CustomType.Setter
public Builder matchValues(@Nullable List matchValues) {
this.matchValues = matchValues;
return this;
}
public Builder matchValues(String... matchValues) {
return matchValues(List.of(matchValues));
}
@CustomType.Setter
public Builder negateCondition(@Nullable Boolean negateCondition) {
this.negateCondition = negateCondition;
return this;
}
@CustomType.Setter
public Builder operator(@Nullable String operator) {
this.operator = operator;
return this;
}
public FrontdoorRuleConditionsSocketAddressCondition build() {
final var _resultValue = new FrontdoorRuleConditionsSocketAddressCondition();
_resultValue.matchValues = matchValues;
_resultValue.negateCondition = negateCondition;
_resultValue.operator = operator;
return _resultValue;
}
}
}