/**
 * 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;

/**
 * Sentiment of the input utterance.
 */
public class Sentiment {
    /**
     * The polarity of the sentiment, can be positive, neutral or negative.
     */
    @JsonProperty(value = "label")
    private String label;

    /**
     * Score of the sentiment, ranges from 0 (most negative) to 1 (most
     * positive).
     */
    @JsonProperty(value = "score")
    private Double score;

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

    /**
     * Set the label value.
     *
     * @param label the label value to set
     * @return the Sentiment object itself.
     */
    public Sentiment withLabel(String label) {
        this.label = label;
        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 Sentiment object itself.
     */
    public Sentiment withScore(Double score) {
        this.score = score;
        return this;
    }

}
