com.pulumi.azurenative.cdn.outputs.QueryStringMatchConditionParametersResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.cdn.outputs;
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 QueryStringMatchConditionParametersResponse {
/**
* @return The match value for the condition of the delivery rule
*
*/
private @Nullable List matchValues;
/**
* @return Describes if this is negate condition or not
*
*/
private @Nullable Boolean negateCondition;
/**
* @return Describes operator to be matched
*
*/
private String operator;
/**
* @return List of transforms
*
*/
private @Nullable List transforms;
private String typeName;
private QueryStringMatchConditionParametersResponse() {}
/**
* @return The match value for the condition of the delivery rule
*
*/
public List matchValues() {
return this.matchValues == null ? List.of() : this.matchValues;
}
/**
* @return Describes if this is negate condition or not
*
*/
public Optional negateCondition() {
return Optional.ofNullable(this.negateCondition);
}
/**
* @return Describes 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 String typeName() {
return this.typeName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(QueryStringMatchConditionParametersResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List matchValues;
private @Nullable Boolean negateCondition;
private String operator;
private @Nullable List transforms;
private String typeName;
public Builder() {}
public Builder(QueryStringMatchConditionParametersResponse defaults) {
Objects.requireNonNull(defaults);
this.matchValues = defaults.matchValues;
this.negateCondition = defaults.negateCondition;
this.operator = defaults.operator;
this.transforms = defaults.transforms;
this.typeName = defaults.typeName;
}
@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(String operator) {
if (operator == null) {
throw new MissingRequiredPropertyException("QueryStringMatchConditionParametersResponse", "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));
}
@CustomType.Setter
public Builder typeName(String typeName) {
if (typeName == null) {
throw new MissingRequiredPropertyException("QueryStringMatchConditionParametersResponse", "typeName");
}
this.typeName = typeName;
return this;
}
public QueryStringMatchConditionParametersResponse build() {
final var _resultValue = new QueryStringMatchConditionParametersResponse();
_resultValue.matchValues = matchValues;
_resultValue.negateCondition = negateCondition;
_resultValue.operator = operator;
_resultValue.transforms = transforms;
_resultValue.typeName = typeName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy