// *** 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 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) {
            this.createIncidentEnabled = Objects.requireNonNull(createIncidentEnabled);
            return this;
        }
        @CustomType.Setter
        public Builder grouping(AlertRuleNrtIncidentGrouping grouping) {
            this.grouping = Objects.requireNonNull(grouping);
            return this;
        }
        public AlertRuleNrtIncident build() {
            final var o = new AlertRuleNrtIncident();
            o.createIncidentEnabled = createIncidentEnabled;
            o.grouping = grouping;
            return o;
        }
    }
}
