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