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

package com.azure.resourcemanager.kubernetesconfiguration.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Compliance Status details. */
@Fluent
public final class ComplianceStatus {
    /*
     * The compliance state of the configuration.
     */
    @JsonProperty(value = "complianceState", access = JsonProperty.Access.WRITE_ONLY)
    private ComplianceStateType complianceState;

    /*
     * Datetime the configuration was last applied.
     */
    @JsonProperty(value = "lastConfigApplied")
    private OffsetDateTime lastConfigApplied;

    /*
     * Message from when the configuration was applied.
     */
    @JsonProperty(value = "message")
    private String message;

    /*
     * Level of the message.
     */
    @JsonProperty(value = "messageLevel")
    private MessageLevelType messageLevel;

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

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

    /**
     * Get the lastConfigApplied property: Datetime the configuration was last applied.
     *
     * @return the lastConfigApplied value.
     */
    public OffsetDateTime lastConfigApplied() {
        return this.lastConfigApplied;
    }

    /**
     * Set the lastConfigApplied property: Datetime the configuration was last applied.
     *
     * @param lastConfigApplied the lastConfigApplied value to set.
     * @return the ComplianceStatus object itself.
     */
    public ComplianceStatus withLastConfigApplied(OffsetDateTime lastConfigApplied) {
        this.lastConfigApplied = lastConfigApplied;
        return this;
    }

    /**
     * Get the message property: Message from when the configuration was applied.
     *
     * @return the message value.
     */
    public String message() {
        return this.message;
    }

    /**
     * Set the message property: Message from when the configuration was applied.
     *
     * @param message the message value to set.
     * @return the ComplianceStatus object itself.
     */
    public ComplianceStatus withMessage(String message) {
        this.message = message;
        return this;
    }

    /**
     * Get the messageLevel property: Level of the message.
     *
     * @return the messageLevel value.
     */
    public MessageLevelType messageLevel() {
        return this.messageLevel;
    }

    /**
     * Set the messageLevel property: Level of the message.
     *
     * @param messageLevel the messageLevel value to set.
     * @return the ComplianceStatus object itself.
     */
    public ComplianceStatus withMessageLevel(MessageLevelType messageLevel) {
        this.messageLevel = messageLevel;
        return this;
    }

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