
com.pulumi.azurenative.insights.outputs.AlertRuleLeafConditionResponse 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.azurenative.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AlertRuleLeafConditionResponse {
/**
* @return The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
*
*/
private @Nullable List containsAny;
/**
* @return The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
*
*/
private @Nullable String equals;
/**
* @return The name of the Activity Log event's field that this condition will examine.
* The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
*
*/
private @Nullable String field;
private AlertRuleLeafConditionResponse() {}
/**
* @return The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
*
*/
public List containsAny() {
return this.containsAny == null ? List.of() : this.containsAny;
}
/**
* @return The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
*
*/
public Optional equals_() {
return Optional.ofNullable(this.equals);
}
/**
* @return The name of the Activity Log event's field that this condition will examine.
* The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
*
*/
public Optional field() {
return Optional.ofNullable(this.field);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertRuleLeafConditionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List containsAny;
private @Nullable String equals;
private @Nullable String field;
public Builder() {}
public Builder(AlertRuleLeafConditionResponse defaults) {
Objects.requireNonNull(defaults);
this.containsAny = defaults.containsAny;
this.equals = defaults.equals;
this.field = defaults.field;
}
@CustomType.Setter
public Builder containsAny(@Nullable List containsAny) {
this.containsAny = containsAny;
return this;
}
public Builder containsAny(String... containsAny) {
return containsAny(List.of(containsAny));
}
@CustomType.Setter("equals")
public Builder equals_(@Nullable String equals) {
this.equals = equals;
return this;
}
@CustomType.Setter
public Builder field(@Nullable String field) {
this.field = field;
return this;
}
public AlertRuleLeafConditionResponse build() {
final var _resultValue = new AlertRuleLeafConditionResponse();
_resultValue.containsAny = containsAny;
_resultValue.equals = equals;
_resultValue.field = field;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy