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

/** A status describing the success/failure of the extension's enablement/disablement operation. */
@Fluent
public final class OperationStatus {
    /*
     * The operation status code.
     */
    @JsonProperty(value = "code")
    private Code code;

    /*
     * Additional information regarding the success/failure of the operation.
     */
    @JsonProperty(value = "message")
    private String message;

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

    /**
     * Get the code property: The operation status code.
     *
     * @return the code value.
     */
    public Code code() {
        return this.code;
    }

    /**
     * Set the code property: The operation status code.
     *
     * @param code the code value to set.
     * @return the OperationStatus object itself.
     */
    public OperationStatus withCode(Code code) {
        this.code = code;
        return this;
    }

    /**
     * Get the message property: Additional information regarding the success/failure of the operation.
     *
     * @return the message value.
     */
    public String message() {
        return this.message;
    }

    /**
     * Set the message property: Additional information regarding the success/failure of the operation.
     *
     * @param message the message value to set.
     * @return the OperationStatus object itself.
     */
    public OperationStatus withMessage(String message) {
        this.message = message;
        return this;
    }

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