All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.securityinsights.inputs.IncidentConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.securityinsights.inputs;

import com.pulumi.azurenative.securityinsights.inputs.GroupingConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Incident Configuration property bag.
 * 
 */
public final class IncidentConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final IncidentConfigurationArgs Empty = new IncidentConfigurationArgs();

    /**
     * Create incidents from alerts triggered by this analytics rule
     * 
     */
    @Import(name="createIncident", required=true)
    private Output createIncident;

    /**
     * @return Create incidents from alerts triggered by this analytics rule
     * 
     */
    public Output createIncident() {
        return this.createIncident;
    }

    /**
     * Set how the alerts that are triggered by this analytics rule, are grouped into incidents
     * 
     */
    @Import(name="groupingConfiguration")
    private @Nullable Output groupingConfiguration;

    /**
     * @return Set how the alerts that are triggered by this analytics rule, are grouped into incidents
     * 
     */
    public Optional> groupingConfiguration() {
        return Optional.ofNullable(this.groupingConfiguration);
    }

    private IncidentConfigurationArgs() {}

    private IncidentConfigurationArgs(IncidentConfigurationArgs $) {
        this.createIncident = $.createIncident;
        this.groupingConfiguration = $.groupingConfiguration;
    }

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

    public static final class Builder {
        private IncidentConfigurationArgs $;

        public Builder() {
            $ = new IncidentConfigurationArgs();
        }

        public Builder(IncidentConfigurationArgs defaults) {
            $ = new IncidentConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param createIncident Create incidents from alerts triggered by this analytics rule
         * 
         * @return builder
         * 
         */
        public Builder createIncident(Output createIncident) {
            $.createIncident = createIncident;
            return this;
        }

        /**
         * @param createIncident Create incidents from alerts triggered by this analytics rule
         * 
         * @return builder
         * 
         */
        public Builder createIncident(Boolean createIncident) {
            return createIncident(Output.of(createIncident));
        }

        /**
         * @param groupingConfiguration Set how the alerts that are triggered by this analytics rule, are grouped into incidents
         * 
         * @return builder
         * 
         */
        public Builder groupingConfiguration(@Nullable Output groupingConfiguration) {
            $.groupingConfiguration = groupingConfiguration;
            return this;
        }

        /**
         * @param groupingConfiguration Set how the alerts that are triggered by this analytics rule, are grouped into incidents
         * 
         * @return builder
         * 
         */
        public Builder groupingConfiguration(GroupingConfigurationArgs groupingConfiguration) {
            return groupingConfiguration(Output.of(groupingConfiguration));
        }

        public IncidentConfigurationArgs build() {
            if ($.createIncident == null) {
                throw new MissingRequiredPropertyException("IncidentConfigurationArgs", "createIncident");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy