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

package com.azure.resourcemanager.policyinsights.models;

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

/** The compliance state rollup. */
@Fluent
public final class ComplianceDetail {
    /*
     * The compliance state.
     */
    @JsonProperty(value = "complianceState")
    private String complianceState;

    /*
     * Summarized count value for this compliance state.
     */
    @JsonProperty(value = "count")
    private Integer count;

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

    /**
     * Get the complianceState property: The compliance state.
     *
     * @return the complianceState value.
     */
    public String complianceState() {
        return this.complianceState;
    }

    /**
     * Set the complianceState property: The compliance state.
     *
     * @param complianceState the complianceState value to set.
     * @return the ComplianceDetail object itself.
     */
    public ComplianceDetail withComplianceState(String complianceState) {
        this.complianceState = complianceState;
        return this;
    }

    /**
     * Get the count property: Summarized count value for this compliance state.
     *
     * @return the count value.
     */
    public Integer count() {
        return this.count;
    }

    /**
     * Set the count property: Summarized count value for this compliance state.
     *
     * @param count the count value to set.
     * @return the ComplianceDetail object itself.
     */
    public ComplianceDetail withCount(Integer count) {
        this.count = count;
        return this;
    }

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