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

package com.azure.resourcemanager.reservations.models;

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

/** The ExtendedStatusInfo model. */
@Fluent
public final class ExtendedStatusInfo {
    /*
     * The statusCode property.
     */
    @JsonProperty(value = "statusCode")
    private ReservationStatusCode statusCode;

    /*
     * The message giving detailed information about the status code.
     */
    @JsonProperty(value = "message")
    private String message;

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

    /**
     * Get the statusCode property: The statusCode property.
     *
     * @return the statusCode value.
     */
    public ReservationStatusCode statusCode() {
        return this.statusCode;
    }

    /**
     * Set the statusCode property: The statusCode property.
     *
     * @param statusCode the statusCode value to set.
     * @return the ExtendedStatusInfo object itself.
     */
    public ExtendedStatusInfo withStatusCode(ReservationStatusCode statusCode) {
        this.statusCode = statusCode;
        return this;
    }

    /**
     * Get the message property: The message giving detailed information about the status code.
     *
     * @return the message value.
     */
    public String message() {
        return this.message;
    }

    /**
     * Set the message property: The message giving detailed information about the status code.
     *
     * @param message the message value to set.
     * @return the ExtendedStatusInfo object itself.
     */
    public ExtendedStatusInfo withMessage(String message) {
        this.message = message;
        return this;
    }

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