com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupConditionTargetResourceArgs 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 AlertProcessingRuleActionGroupConditionTargetResourceArgs extends com.pulumi.resources.ResourceArgs {
public static final AlertProcessingRuleActionGroupConditionTargetResourceArgs Empty = new AlertProcessingRuleActionGroupConditionTargetResourceArgs();
/**
* 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;
}
/**
* A list of values to match for a given condition. The values should be valid resource IDs.
*
*/
@Import(name="values", required=true)
private Output> values;
/**
* @return A list of values to match for a given condition. The values should be valid resource IDs.
*
*/
public Output> values() {
return this.values;
}
private AlertProcessingRuleActionGroupConditionTargetResourceArgs() {}
private AlertProcessingRuleActionGroupConditionTargetResourceArgs(AlertProcessingRuleActionGroupConditionTargetResourceArgs $) {
this.operator = $.operator;
this.values = $.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertProcessingRuleActionGroupConditionTargetResourceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AlertProcessingRuleActionGroupConditionTargetResourceArgs $;
public Builder() {
$ = new AlertProcessingRuleActionGroupConditionTargetResourceArgs();
}
public Builder(AlertProcessingRuleActionGroupConditionTargetResourceArgs defaults) {
$ = new AlertProcessingRuleActionGroupConditionTargetResourceArgs(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 A list of values to match for a given condition. The values should be valid resource IDs.
*
* @return builder
*
*/
public Builder values(Output> values) {
$.values = values;
return this;
}
/**
* @param values A list of values to match for a given condition. The values should be valid resource IDs.
*
* @return builder
*
*/
public Builder values(List values) {
return values(Output.of(values));
}
/**
* @param values A list of values to match for a given condition. The values should be valid resource IDs.
*
* @return builder
*
*/
public Builder values(String... values) {
return values(List.of(values));
}
public AlertProcessingRuleActionGroupConditionTargetResourceArgs build() {
if ($.operator == null) {
throw new MissingRequiredPropertyException("AlertProcessingRuleActionGroupConditionTargetResourceArgs", "operator");
}
if ($.values == null) {
throw new MissingRequiredPropertyException("AlertProcessingRuleActionGroupConditionTargetResourceArgs", "values");
}
return $;
}
}
}