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

package com.azure.resourcemanager.resourcehealth.models;

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

/** Frequently asked question for the service health event. */
@Fluent
public final class Faq {
    /*
     * FAQ question for the service health event.
     */
    @JsonProperty(value = "question")
    private String question;

    /*
     * FAQ answer for the service health event.
     */
    @JsonProperty(value = "answer")
    private String answer;

    /*
     * FAQ locale for the service health event.
     */
    @JsonProperty(value = "localeCode")
    private String localeCode;

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

    /**
     * Get the question property: FAQ question for the service health event.
     *
     * @return the question value.
     */
    public String question() {
        return this.question;
    }

    /**
     * Set the question property: FAQ question for the service health event.
     *
     * @param question the question value to set.
     * @return the Faq object itself.
     */
    public Faq withQuestion(String question) {
        this.question = question;
        return this;
    }

    /**
     * Get the answer property: FAQ answer for the service health event.
     *
     * @return the answer value.
     */
    public String answer() {
        return this.answer;
    }

    /**
     * Set the answer property: FAQ answer for the service health event.
     *
     * @param answer the answer value to set.
     * @return the Faq object itself.
     */
    public Faq withAnswer(String answer) {
        this.answer = answer;
        return this;
    }

    /**
     * Get the localeCode property: FAQ locale for the service health event.
     *
     * @return the localeCode value.
     */
    public String localeCode() {
        return this.localeCode;
    }

    /**
     * Set the localeCode property: FAQ locale for the service health event.
     *
     * @param localeCode the localeCode value to set.
     * @return the Faq object itself.
     */
    public Faq withLocaleCode(String localeCode) {
        this.localeCode = localeCode;
        return this;
    }

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