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

package com.azure.resourcemanager.billingbenefits.models;

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

/** The ExtendedStatusInfo model. */
@Fluent
public final class ExtendedStatusInfo {
    /*
     * Status code providing additional information.
     */
    @JsonProperty(value = "statusCode")
    private String 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: Status code providing additional information.
     *
     * @return the statusCode value.
     */
    public String statusCode() {
        return this.statusCode;
    }

    /**
     * Set the statusCode property: Status code providing additional information.
     *
     * @param statusCode the statusCode value to set.
     * @return the ExtendedStatusInfo object itself.
     */
    public ExtendedStatusInfo withStatusCode(String 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() {
    }
}
