/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.language.luis.runtime.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * An intent detected from the utterance.
 */
public class IntentModel {
    /**
     * Name of the intent, as defined in LUIS.
     */
    @JsonProperty(value = "intent")
    private String intent;

    /**
     * Associated prediction score for the intent (float).
     */
    @JsonProperty(value = "score")
    private Double score;

    /**
     * Get the intent value.
     *
     * @return the intent value
     */
    public String intent() {
        return this.intent;
    }

    /**
     * Set the intent value.
     *
     * @param intent the intent value to set
     * @return the IntentModel object itself.
     */
    public IntentModel withIntent(String intent) {
        this.intent = intent;
        return this;
    }

    /**
     * Get the score value.
     *
     * @return the score value
     */
    public Double score() {
        return this.score;
    }

    /**
     * Set the score value.
     *
     * @param score the score value to set
     * @return the IntentModel object itself.
     */
    public IntentModel withScore(Double score) {
        this.score = score;
        return this;
    }

}
