com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupConditionMonitorConditionArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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 AlertProcessingRuleActionGroupConditionMonitorConditionArgs extends com.pulumi.resources.ResourceArgs {
public static final AlertProcessingRuleActionGroupConditionMonitorConditionArgs Empty = new AlertProcessingRuleActionGroupConditionMonitorConditionArgs();
/**
* The operator for a given condition. Possible values are `Equals` and `NotEquals`.
*
*/
@Import(name="operator", required=true)
private Output operator;
/**
* @return The operator for a given condition. Possible values are `Equals` and `NotEquals`.
*
*/
public Output operator() {
return this.operator;
}
/**
* Specifies a list of values to match for a given condition. Possible values are `Fired` and `Resolved`.
*
*/
@Import(name="values", required=true)
private Output> values;
/**
* @return Specifies a list of values to match for a given condition. Possible values are `Fired` and `Resolved`.
*
*/
public Output> values() {
return this.values;
}
private AlertProcessingRuleActionGroupConditionMonitorConditionArgs() {}
private AlertProcessingRuleActionGroupConditionMonitorConditionArgs(AlertProcessingRuleActionGroupConditionMonitorConditionArgs $) {
this.operator = $.operator;
this.values = $.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertProcessingRuleActionGroupConditionMonitorConditionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AlertProcessingRuleActionGroupConditionMonitorConditionArgs $;
public Builder() {
$ = new AlertProcessingRuleActionGroupConditionMonitorConditionArgs();
}
public Builder(AlertProcessingRuleActionGroupConditionMonitorConditionArgs defaults) {
$ = new AlertProcessingRuleActionGroupConditionMonitorConditionArgs(Objects.requireNonNull(defaults));
}
/**
* @param operator The operator for a given condition. Possible values are `Equals` and `NotEquals`.
*
* @return builder
*
*/
public Builder operator(Output operator) {
$.operator = operator;
return this;
}
/**
* @param operator The operator for a given condition. Possible values are `Equals` and `NotEquals`.
*
* @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. Possible values are `Fired` and `Resolved`.
*
* @return builder
*
*/
public Builder values(Output> values) {
$.values = values;
return this;
}
/**
* @param values Specifies a list of values to match for a given condition. Possible values are `Fired` and `Resolved`.
*
* @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. Possible values are `Fired` and `Resolved`.
*
* @return builder
*
*/
public Builder values(String... values) {
return values(List.of(values));
}
public AlertProcessingRuleActionGroupConditionMonitorConditionArgs build() {
if ($.operator == null) {
throw new MissingRequiredPropertyException("AlertProcessingRuleActionGroupConditionMonitorConditionArgs", "operator");
}
if ($.values == null) {
throw new MissingRequiredPropertyException("AlertProcessingRuleActionGroupConditionMonitorConditionArgs", "values");
}
return $;
}
}
}