
com.pulumi.azurenative.network.outputs.MatchConditionResponse Maven / Gradle / Ivy
// *** 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.outputs;
import com.pulumi.azurenative.network.outputs.MatchVariableResponse;
import com.pulumi.core.annotations.CustomType;
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;
@CustomType
public final class MatchConditionResponse {
/**
* @return Match value.
*
*/
private List matchValues;
/**
* @return List of match variables.
*
*/
private List matchVariables;
/**
* @return Whether this is negate condition or not.
*
*/
private @Nullable Boolean negationConditon;
/**
* @return The operator to be matched.
*
*/
private String operator;
/**
* @return List of transforms.
*
*/
private @Nullable List transforms;
private MatchConditionResponse() {}
/**
* @return Match value.
*
*/
public List matchValues() {
return this.matchValues;
}
/**
* @return List of match variables.
*
*/
public List matchVariables() {
return this.matchVariables;
}
/**
* @return Whether this is negate condition or not.
*
*/
public Optional negationConditon() {
return Optional.ofNullable(this.negationConditon);
}
/**
* @return The operator to be matched.
*
*/
public String operator() {
return this.operator;
}
/**
* @return List of transforms.
*
*/
public List transforms() {
return this.transforms == null ? List.of() : this.transforms;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MatchConditionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List matchValues;
private List matchVariables;
private @Nullable Boolean negationConditon;
private String operator;
private @Nullable List transforms;
public Builder() {}
public Builder(MatchConditionResponse defaults) {
Objects.requireNonNull(defaults);
this.matchValues = defaults.matchValues;
this.matchVariables = defaults.matchVariables;
this.negationConditon = defaults.negationConditon;
this.operator = defaults.operator;
this.transforms = defaults.transforms;
}
@CustomType.Setter
public Builder matchValues(List matchValues) {
if (matchValues == null) {
throw new MissingRequiredPropertyException("MatchConditionResponse", "matchValues");
}
this.matchValues = matchValues;
return this;
}
public Builder matchValues(String... matchValues) {
return matchValues(List.of(matchValues));
}
@CustomType.Setter
public Builder matchVariables(List matchVariables) {
if (matchVariables == null) {
throw new MissingRequiredPropertyException("MatchConditionResponse", "matchVariables");
}
this.matchVariables = matchVariables;
return this;
}
public Builder matchVariables(MatchVariableResponse... matchVariables) {
return matchVariables(List.of(matchVariables));
}
@CustomType.Setter
public Builder negationConditon(@Nullable Boolean negationConditon) {
this.negationConditon = negationConditon;
return this;
}
@CustomType.Setter
public Builder operator(String operator) {
if (operator == null) {
throw new MissingRequiredPropertyException("MatchConditionResponse", "operator");
}
this.operator = operator;
return this;
}
@CustomType.Setter
public Builder transforms(@Nullable List transforms) {
this.transforms = transforms;
return this;
}
public Builder transforms(String... transforms) {
return transforms(List.of(transforms));
}
public MatchConditionResponse build() {
final var _resultValue = new MatchConditionResponse();
_resultValue.matchValues = matchValues;
_resultValue.matchVariables = matchVariables;
_resultValue.negationConditon = negationConditon;
_resultValue.operator = operator;
_resultValue.transforms = transforms;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy