// 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.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Status of the sub-assessment. */
@Immutable
public final class SubAssessmentStatus {
    /*
     * Programmatic code for the status of the assessment
     */
    @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
    private SubAssessmentStatusCode code;

    /*
     * Programmatic code for the cause of the assessment status
     */
    @JsonProperty(value = "cause", access = JsonProperty.Access.WRITE_ONLY)
    private String cause;

    /*
     * Human readable description of the assessment status
     */
    @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
    private String description;

    /*
     * The sub-assessment severity level
     */
    @JsonProperty(value = "severity", access = JsonProperty.Access.WRITE_ONLY)
    private Severity severity;

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

    /**
     * Get the code property: Programmatic code for the status of the assessment.
     *
     * @return the code value.
     */
    public SubAssessmentStatusCode code() {
        return this.code;
    }

    /**
     * Get the cause property: Programmatic code for the cause of the assessment status.
     *
     * @return the cause value.
     */
    public String cause() {
        return this.cause;
    }

    /**
     * Get the description property: Human readable description of the assessment status.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Get the severity property: The sub-assessment severity level.
     *
     * @return the severity value.
     */
    public Severity severity() {
        return this.severity;
    }

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