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

package com.azure.resourcemanager.security.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The governance email weekly notification configuration. */
@Fluent
public final class GovernanceRuleEmailNotification {
    /*
     * Defines whether manager email notifications are disabled
     */
    @JsonProperty(value = "disableManagerEmailNotification")
    private Boolean disableManagerEmailNotification;

    /*
     * Defines whether owner email notifications are disabled
     */
    @JsonProperty(value = "disableOwnerEmailNotification")
    private Boolean disableOwnerEmailNotification;

    /** Creates an instance of GovernanceRuleEmailNotification class. */
    public GovernanceRuleEmailNotification() {
    }

    /**
     * Get the disableManagerEmailNotification property: Defines whether manager email notifications are disabled.
     *
     * @return the disableManagerEmailNotification value.
     */
    public Boolean disableManagerEmailNotification() {
        return this.disableManagerEmailNotification;
    }

    /**
     * Set the disableManagerEmailNotification property: Defines whether manager email notifications are disabled.
     *
     * @param disableManagerEmailNotification the disableManagerEmailNotification value to set.
     * @return the GovernanceRuleEmailNotification object itself.
     */
    public GovernanceRuleEmailNotification withDisableManagerEmailNotification(
        Boolean disableManagerEmailNotification) {
        this.disableManagerEmailNotification = disableManagerEmailNotification;
        return this;
    }

    /**
     * Get the disableOwnerEmailNotification property: Defines whether owner email notifications are disabled.
     *
     * @return the disableOwnerEmailNotification value.
     */
    public Boolean disableOwnerEmailNotification() {
        return this.disableOwnerEmailNotification;
    }

    /**
     * Set the disableOwnerEmailNotification property: Defines whether owner email notifications are disabled.
     *
     * @param disableOwnerEmailNotification the disableOwnerEmailNotification value to set.
     * @return the GovernanceRuleEmailNotification object itself.
     */
    public GovernanceRuleEmailNotification withDisableOwnerEmailNotification(Boolean disableOwnerEmailNotification) {
        this.disableOwnerEmailNotification = disableOwnerEmailNotification;
        return this;
    }

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