com.pulumi.azure.monitoring.inputs.AlertProcessingRuleSuppressionConditionDescriptionArgs 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 AlertProcessingRuleSuppressionConditionDescriptionArgs extends com.pulumi.resources.ResourceArgs {
public static final AlertProcessingRuleSuppressionConditionDescriptionArgs Empty = new AlertProcessingRuleSuppressionConditionDescriptionArgs();
/**
* The operator for a given condition. Possible values are `Equals`, `NotEquals`, `Contains`, and `DoesNotContain`.
*
*/
@Import(name="operator", required=true)
private Output operator;
/**
* @return The operator for a given condition. Possible values are `Equals`, `NotEquals`, `Contains`, and `DoesNotContain`.
*
*/
public Output operator() {
return this.operator;
}
/**
* Specifies a list of values to match for a given condition.
*
*/
@Import(name="values", required=true)
private Output> values;
/**
* @return Specifies a list of values to match for a given condition.
*
*/
public Output> values() {
return this.values;
}
private AlertProcessingRuleSuppressionConditionDescriptionArgs() {}
private AlertProcessingRuleSuppressionConditionDescriptionArgs(AlertProcessingRuleSuppressionConditionDescriptionArgs $) {
this.operator = $.operator;
this.values = $.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertProcessingRuleSuppressionConditionDescriptionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AlertProcessingRuleSuppressionConditionDescriptionArgs $;
public Builder() {
$ = new AlertProcessingRuleSuppressionConditionDescriptionArgs();
}
public Builder(AlertProcessingRuleSuppressionConditionDescriptionArgs defaults) {
$ = new AlertProcessingRuleSuppressionConditionDescriptionArgs(Objects.requireNonNull(defaults));
}
/**
* @param operator The operator for a given condition. Possible values are `Equals`, `NotEquals`, `Contains`, and `DoesNotContain`.
*
* @return builder
*
*/
public Builder operator(Output operator) {
$.operator = operator;
return this;
}
/**
* @param operator The operator for a given condition. Possible values are `Equals`, `NotEquals`, `Contains`, and `DoesNotContain`.
*
* @return builder
*
*/
public Builder operator(String operator) {
return operator(Output.of(operator));
}
/**
* @param values Specifies a list of values to match for a given condition.
*
* @return builder
*
*/
public Builder values(Output> values) {
$.values = values;
return this;
}
/**
* @param values Specifies a list of values to match for a given condition.
*
* @return builder
*
*/
public Builder values(List values) {
return values(Output.of(values));
}
/**
* @param values Specifies a list of values to match for a given condition.
*
* @return builder
*
*/
public Builder values(String... values) {
return values(List.of(values));
}
public AlertProcessingRuleSuppressionConditionDescriptionArgs build() {
if ($.operator == null) {
throw new MissingRequiredPropertyException("AlertProcessingRuleSuppressionConditionDescriptionArgs", "operator");
}
if ($.values == null) {
throw new MissingRequiredPropertyException("AlertProcessingRuleSuppressionConditionDescriptionArgs", "values");
}
return $;
}
}
}