// *** 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 java.lang.String;
import java.util.Objects;

@CustomType
public final class AlertRuleScheduledEventGrouping {
    /**
     * @return The aggregation type of grouping the events. Possible values are `AlertPerResult` and `SingleAlert`.
     * 
     */
    private String aggregationMethod;

    private AlertRuleScheduledEventGrouping() {}
    /**
     * @return The aggregation type of grouping the events. Possible values are `AlertPerResult` and `SingleAlert`.
     * 
     */
    public String aggregationMethod() {
        return this.aggregationMethod;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AlertRuleScheduledEventGrouping defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String aggregationMethod;
        public Builder() {}
        public Builder(AlertRuleScheduledEventGrouping defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.aggregationMethod = defaults.aggregationMethod;
        }

        @CustomType.Setter
        public Builder aggregationMethod(String aggregationMethod) {
            this.aggregationMethod = Objects.requireNonNull(aggregationMethod);
            return this;
        }
        public AlertRuleScheduledEventGrouping build() {
            final var o = new AlertRuleScheduledEventGrouping();
            o.aggregationMethod = aggregationMethod;
            return o;
        }
    }
}
