// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securityinsights.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.securityinsights.models.AlertRuleTemplateDataSource;
import com.azure.resourcemanager.securityinsights.models.AlertRuleTemplatePropertiesBase;
import com.azure.resourcemanager.securityinsights.models.AlertSeverity;
import com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityProductName;
import com.azure.resourcemanager.securityinsights.models.TemplateStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** MicrosoftSecurityIncidentCreation rule template properties. */
@Fluent
public final class MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties
    extends AlertRuleTemplatePropertiesBase {
    /*
     * the alerts' displayNames on which the cases will be generated
     */
    @JsonProperty(value = "displayNamesFilter")
    private List<String> displayNamesFilter;

    /*
     * the alerts' displayNames on which the cases will not be generated
     */
    @JsonProperty(value = "displayNamesExcludeFilter")
    private List<String> displayNamesExcludeFilter;

    /*
     * The alerts' productName on which the cases will be generated
     */
    @JsonProperty(value = "productFilter")
    private MicrosoftSecurityProductName productFilter;

    /*
     * the alerts' severities on which the cases will be generated
     */
    @JsonProperty(value = "severitiesFilter")
    private List<AlertSeverity> severitiesFilter;

    /**
     * Get the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.
     *
     * @return the displayNamesFilter value.
     */
    public List<String> displayNamesFilter() {
        return this.displayNamesFilter;
    }

    /**
     * Set the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.
     *
     * @param displayNamesFilter the displayNamesFilter value to set.
     * @return the MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties object itself.
     */
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withDisplayNamesFilter(
        List<String> displayNamesFilter) {
        this.displayNamesFilter = displayNamesFilter;
        return this;
    }

    /**
     * Get the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.
     *
     * @return the displayNamesExcludeFilter value.
     */
    public List<String> displayNamesExcludeFilter() {
        return this.displayNamesExcludeFilter;
    }

    /**
     * Set the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.
     *
     * @param displayNamesExcludeFilter the displayNamesExcludeFilter value to set.
     * @return the MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties object itself.
     */
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withDisplayNamesExcludeFilter(
        List<String> displayNamesExcludeFilter) {
        this.displayNamesExcludeFilter = displayNamesExcludeFilter;
        return this;
    }

    /**
     * Get the productFilter property: The alerts' productName on which the cases will be generated.
     *
     * @return the productFilter value.
     */
    public MicrosoftSecurityProductName productFilter() {
        return this.productFilter;
    }

    /**
     * Set the productFilter property: The alerts' productName on which the cases will be generated.
     *
     * @param productFilter the productFilter value to set.
     * @return the MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties object itself.
     */
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withProductFilter(
        MicrosoftSecurityProductName productFilter) {
        this.productFilter = productFilter;
        return this;
    }

    /**
     * Get the severitiesFilter property: the alerts' severities on which the cases will be generated.
     *
     * @return the severitiesFilter value.
     */
    public List<AlertSeverity> severitiesFilter() {
        return this.severitiesFilter;
    }

    /**
     * Set the severitiesFilter property: the alerts' severities on which the cases will be generated.
     *
     * @param severitiesFilter the severitiesFilter value to set.
     * @return the MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties object itself.
     */
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withSeveritiesFilter(
        List<AlertSeverity> severitiesFilter) {
        this.severitiesFilter = severitiesFilter;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withAlertRulesCreatedByTemplateCount(
        Integer alertRulesCreatedByTemplateCount) {
        super.withAlertRulesCreatedByTemplateCount(alertRulesCreatedByTemplateCount);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withDescription(String description) {
        super.withDescription(description);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withDisplayName(String displayName) {
        super.withDisplayName(displayName);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withRequiredDataConnectors(
        List<AlertRuleTemplateDataSource> requiredDataConnectors) {
        super.withRequiredDataConnectors(requiredDataConnectors);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties withStatus(TemplateStatus status) {
        super.withStatus(status);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
