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

package com.azure.resourcemanager.appcomplianceautomation.models;

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

/** A list which includes all the compliance result for one report. */
@Fluent
public final class ReportComplianceStatus {
    /*
     * The Microsoft 365 certification name.
     */
    @JsonProperty(value = "m365")
    private OverviewStatus m365;

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

    /**
     * Get the m365 property: The Microsoft 365 certification name.
     *
     * @return the m365 value.
     */
    public OverviewStatus m365() {
        return this.m365;
    }

    /**
     * Set the m365 property: The Microsoft 365 certification name.
     *
     * @param m365 the m365 value to set.
     * @return the ReportComplianceStatus object itself.
     */
    public ReportComplianceStatus withM365(OverviewStatus m365) {
        this.m365 = m365;
        return this;
    }

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