com.pulumi.azure.monitoring.outputs.ScheduledQueryRulesAlertV2CriteriaDimension 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.azure.monitoring.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class ScheduledQueryRulesAlertV2CriteriaDimension {
/**
* @return Name of the dimension.
*
*/
private String name;
/**
* @return Operator for dimension values. Possible values are `Exclude`,and `Include`.
*
*/
private String operator;
/**
* @return List of dimension values. Use a wildcard `*` to collect all.
*
*/
private List values;
private ScheduledQueryRulesAlertV2CriteriaDimension() {}
/**
* @return Name of the dimension.
*
*/
public String name() {
return this.name;
}
/**
* @return Operator for dimension values. Possible values are `Exclude`,and `Include`.
*
*/
public String operator() {
return this.operator;
}
/**
* @return List of dimension values. Use a wildcard `*` to collect all.
*
*/
public List values() {
return this.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScheduledQueryRulesAlertV2CriteriaDimension defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private String operator;
private List values;
public Builder() {}
public Builder(ScheduledQueryRulesAlertV2CriteriaDimension defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.operator = defaults.operator;
this.values = defaults.values;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ScheduledQueryRulesAlertV2CriteriaDimension", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder operator(String operator) {
if (operator == null) {
throw new MissingRequiredPropertyException("ScheduledQueryRulesAlertV2CriteriaDimension", "operator");
}
this.operator = operator;
return this;
}
@CustomType.Setter
public Builder values(List values) {
if (values == null) {
throw new MissingRequiredPropertyException("ScheduledQueryRulesAlertV2CriteriaDimension", "values");
}
this.values = values;
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
public ScheduledQueryRulesAlertV2CriteriaDimension build() {
final var _resultValue = new ScheduledQueryRulesAlertV2CriteriaDimension();
_resultValue.name = name;
_resultValue.operator = operator;
_resultValue.values = values;
return _resultValue;
}
}
}