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.AlertRuleLeafConditionArgs 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.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 by comparing the field and value of an Activity Log event.
* This condition must contain 'field' and either 'equals' or 'containsAny'.
*
*/
public final class AlertRuleLeafConditionArgs extends com.pulumi.resources.ResourceArgs {
public static final AlertRuleLeafConditionArgs Empty = new AlertRuleLeafConditionArgs();
/**
* 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 AlertRuleLeafConditionArgs() {}
private AlertRuleLeafConditionArgs(AlertRuleLeafConditionArgs $) {
this.containsAny = $.containsAny;
this.equals = $.equals;
this.field = $.field;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertRuleLeafConditionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AlertRuleLeafConditionArgs $;
public Builder() {
$ = new AlertRuleLeafConditionArgs();
}
public Builder(AlertRuleLeafConditionArgs defaults) {
$ = new AlertRuleLeafConditionArgs(Objects.requireNonNull(defaults));
}
/**
* @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 AlertRuleLeafConditionArgs build() {
return $;
}
}
}