// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.security.models.State;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Regulatory compliance control data. */
@Fluent
public final class RegulatoryComplianceControlProperties {
    /*
     * The description of the regulatory compliance control
     */
    @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
    private String description;

    /*
     * Aggregative state based on the control's supported assessments states
     */
    @JsonProperty(value = "state")
    private State state;

    /*
     * The number of supported regulatory compliance assessments of the given control with a passed state
     */
    @JsonProperty(value = "passedAssessments", access = JsonProperty.Access.WRITE_ONLY)
    private Integer passedAssessments;

    /*
     * The number of supported regulatory compliance assessments of the given control with a failed state
     */
    @JsonProperty(value = "failedAssessments", access = JsonProperty.Access.WRITE_ONLY)
    private Integer failedAssessments;

    /*
     * The number of supported regulatory compliance assessments of the given control with a skipped state
     */
    @JsonProperty(value = "skippedAssessments", access = JsonProperty.Access.WRITE_ONLY)
    private Integer skippedAssessments;

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

    /**
     * Get the description property: The description of the regulatory compliance control.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Get the state property: Aggregative state based on the control's supported assessments states.
     *
     * @return the state value.
     */
    public State state() {
        return this.state;
    }

    /**
     * Set the state property: Aggregative state based on the control's supported assessments states.
     *
     * @param state the state value to set.
     * @return the RegulatoryComplianceControlProperties object itself.
     */
    public RegulatoryComplianceControlProperties withState(State state) {
        this.state = state;
        return this;
    }

    /**
     * Get the passedAssessments property: The number of supported regulatory compliance assessments of the given
     * control with a passed state.
     *
     * @return the passedAssessments value.
     */
    public Integer passedAssessments() {
        return this.passedAssessments;
    }

    /**
     * Get the failedAssessments property: The number of supported regulatory compliance assessments of the given
     * control with a failed state.
     *
     * @return the failedAssessments value.
     */
    public Integer failedAssessments() {
        return this.failedAssessments;
    }

    /**
     * Get the skippedAssessments property: The number of supported regulatory compliance assessments of the given
     * control with a skipped state.
     *
     * @return the skippedAssessments value.
     */
    public Integer skippedAssessments() {
        return this.skippedAssessments;
    }

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