com.pulumi.azure.sentinel.outputs.AlertRuleNrtIncident 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.azure.sentinel.outputs.AlertRuleNrtIncidentGrouping;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
@CustomType
public final class AlertRuleNrtIncident {
/**
* @return Whether to create an incident from alerts triggered by this Sentinel NRT Alert Rule?
*
*/
private Boolean createIncidentEnabled;
/**
* @return A `grouping` block as defined below.
*
*/
private AlertRuleNrtIncidentGrouping grouping;
private AlertRuleNrtIncident() {}
/**
* @return Whether to create an incident from alerts triggered by this Sentinel NRT Alert Rule?
*
*/
public Boolean createIncidentEnabled() {
return this.createIncidentEnabled;
}
/**
* @return A `grouping` block as defined below.
*
*/
public AlertRuleNrtIncidentGrouping grouping() {
return this.grouping;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AlertRuleNrtIncident defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean createIncidentEnabled;
private AlertRuleNrtIncidentGrouping grouping;
public Builder() {}
public Builder(AlertRuleNrtIncident defaults) {
Objects.requireNonNull(defaults);
this.createIncidentEnabled = defaults.createIncidentEnabled;
this.grouping = defaults.grouping;
}
@CustomType.Setter
public Builder createIncidentEnabled(Boolean createIncidentEnabled) {
if (createIncidentEnabled == null) {
throw new MissingRequiredPropertyException("AlertRuleNrtIncident", "createIncidentEnabled");
}
this.createIncidentEnabled = createIncidentEnabled;
return this;
}
@CustomType.Setter
public Builder grouping(AlertRuleNrtIncidentGrouping grouping) {
if (grouping == null) {
throw new MissingRequiredPropertyException("AlertRuleNrtIncident", "grouping");
}
this.grouping = grouping;
return this;
}
public AlertRuleNrtIncident build() {
final var _resultValue = new AlertRuleNrtIncident();
_resultValue.createIncidentEnabled = createIncidentEnabled;
_resultValue.grouping = grouping;
return _resultValue;
}
}
}