Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.insights.inputs.AlertRuleAnyOfOrLeafConditionArgs Maven / Gradle / Ivy
Go to download
A native Pulumi package for creating and managing Azure resources.
// *** 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.inputs;
import com.pulumi.azurenative.insights.inputs.AlertRuleLeafConditionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* An Activity Log Alert rule condition that is met when all its member conditions are met.
* Each condition can be of one of the following types:
* __Important__: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.
* * __Leaf Condition -__ must contain 'field' and either 'equals' or 'containsAny'.
* _Please note, 'anyOf' should __not__ be set in a Leaf Condition._
* * __AnyOf Condition -__ must contain __only__ 'anyOf' (which is an array of Leaf Conditions).
* _Please note, 'field', 'equals' and 'containsAny' should __not__ be set in an AnyOf Condition._
*
*/
public final class AlertRuleAnyOfOrLeafConditionArgs extends com.pulumi.resources.ResourceArgs {
public static final AlertRuleAnyOfOrLeafConditionArgs Empty = new AlertRuleAnyOfOrLeafConditionArgs();
/**
* An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
*
*/
@Import(name="anyOf")
private @Nullable Output> anyOf;
/**
* @return An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
*
*/
public Optional>> anyOf() {
return Optional.ofNullable(this.anyOf);
}
/**
* 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.
*
*/
@Import(name="containsAny")
private @Nullable Output> containsAny;
/**
* @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 Optional>> containsAny() {
return Optional.ofNullable(this.containsAny);
}
/**
* The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
*
*/
@Import(name="equals")
private @Nullable Output equals;
/**
* @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);
}
/**
* 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'.
*
*/
@Import(name="field")
private @Nullable Output field;
/**
* @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);
}
private AlertRuleAnyOfOrLeafConditionArgs() {}
private AlertRuleAnyOfOrLeafConditionArgs(AlertRuleAnyOfOrLeafConditionArgs $) {
this.anyOf = $.anyOf;
this.containsAny = $.containsAny;
this.equals = $.equals;
this.field = $.field;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertRuleAnyOfOrLeafConditionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AlertRuleAnyOfOrLeafConditionArgs $;
public Builder() {
$ = new AlertRuleAnyOfOrLeafConditionArgs();
}
public Builder(AlertRuleAnyOfOrLeafConditionArgs defaults) {
$ = new AlertRuleAnyOfOrLeafConditionArgs(Objects.requireNonNull(defaults));
}
/**
* @param anyOf An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
*
* @return builder
*
*/
public Builder anyOf(@Nullable Output> anyOf) {
$.anyOf = anyOf;
return this;
}
/**
* @param anyOf An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
*
* @return builder
*
*/
public Builder anyOf(List anyOf) {
return anyOf(Output.of(anyOf));
}
/**
* @param anyOf An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
*
* @return builder
*
*/
public Builder anyOf(AlertRuleLeafConditionArgs... anyOf) {
return anyOf(List.of(anyOf));
}
/**
* @param containsAny 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.
*
* @return builder
*
*/
public Builder containsAny(@Nullable Output> containsAny) {
$.containsAny = containsAny;
return this;
}
/**
* @param containsAny 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.
*
* @return builder
*
*/
public Builder containsAny(List containsAny) {
return containsAny(Output.of(containsAny));
}
/**
* @param containsAny 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.
*
* @return builder
*
*/
public Builder containsAny(String... containsAny) {
return containsAny(List.of(containsAny));
}
/**
* @param equals The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
*
* @return builder
*
*/
public Builder equals_(@Nullable Output equals) {
$.equals = equals;
return this;
}
/**
* @param equals The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
*
* @return builder
*
*/
public Builder equals_(String equals) {
return equals_(Output.of(equals));
}
/**
* @param field 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'.
*
* @return builder
*
*/
public Builder field(@Nullable Output field) {
$.field = field;
return this;
}
/**
* @param field 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'.
*
* @return builder
*
*/
public Builder field(String field) {
return field(Output.of(field));
}
public AlertRuleAnyOfOrLeafConditionArgs build() {
return $;
}
}
}