com.pulumi.azure.sentinel.outputs.GetAlertRuleAnomalyMultiSelectObservation 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.sentinel.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetAlertRuleAnomalyMultiSelectObservation {
/**
* @return The description of the threshold observation.
*
*/
private String description;
/**
* @return The guid of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
*/
private String name;
/**
* @return A list of supported values of the single select observation.
*
*/
private List supportedValues;
/**
* @return A list of values of the single select observation.
*
*/
private List values;
private GetAlertRuleAnomalyMultiSelectObservation() {}
/**
* @return The description of the threshold observation.
*
*/
public String description() {
return this.description;
}
/**
* @return The guid of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
*/
public String name() {
return this.name;
}
/**
* @return A list of supported values of the single select observation.
*
*/
public List supportedValues() {
return this.supportedValues;
}
/**
* @return A list of values of the single select observation.
*
*/
public List values() {
return this.values;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAlertRuleAnomalyMultiSelectObservation defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String description;
private String name;
private List supportedValues;
private List values;
public Builder() {}
public Builder(GetAlertRuleAnomalyMultiSelectObservation defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.name = defaults.name;
this.supportedValues = defaults.supportedValues;
this.values = defaults.values;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetAlertRuleAnomalyMultiSelectObservation", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAlertRuleAnomalyMultiSelectObservation", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder supportedValues(List supportedValues) {
if (supportedValues == null) {
throw new MissingRequiredPropertyException("GetAlertRuleAnomalyMultiSelectObservation", "supportedValues");
}
this.supportedValues = supportedValues;
return this;
}
public Builder supportedValues(String... supportedValues) {
return supportedValues(List.of(supportedValues));
}
@CustomType.Setter
public Builder values(List values) {
if (values == null) {
throw new MissingRequiredPropertyException("GetAlertRuleAnomalyMultiSelectObservation", "values");
}
this.values = values;
return this;
}
public Builder values(String... values) {
return values(List.of(values));
}
public GetAlertRuleAnomalyMultiSelectObservation build() {
final var _resultValue = new GetAlertRuleAnomalyMultiSelectObservation();
_resultValue.description = description;
_resultValue.name = name;
_resultValue.supportedValues = supportedValues;
_resultValue.values = values;
return _resultValue;
}
}
}