/**
 * 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.vision.computervision.models;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * An object representing a recognized word.
 */
public class Word {
    /**
     * Bounding box of a recognized word.
     */
    @JsonProperty(value = "boundingBox", required = true)
    private List<Double> boundingBox;

    /**
     * The text content of the word.
     */
    @JsonProperty(value = "text", required = true)
    private String text;

    /**
     * Qualitative confidence measure.
     */
    @JsonProperty(value = "confidence", required = true)
    private double confidence;

    /**
     * Get the boundingBox value.
     *
     * @return the boundingBox value
     */
    public List<Double> boundingBox() {
        return this.boundingBox;
    }

    /**
     * Set the boundingBox value.
     *
     * @param boundingBox the boundingBox value to set
     * @return the Word object itself.
     */
    public Word withBoundingBox(List<Double> boundingBox) {
        this.boundingBox = boundingBox;
        return this;
    }

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

    /**
     * Set the text value.
     *
     * @param text the text value to set
     * @return the Word object itself.
     */
    public Word withText(String text) {
        this.text = text;
        return this;
    }

    /**
     * Get the confidence value.
     *
     * @return the confidence value
     */
    public double confidence() {
        return this.confidence;
    }

    /**
     * Set the confidence value.
     *
     * @param confidence the confidence value to set
     * @return the Word object itself.
     */
    public Word withConfidence(double confidence) {
        this.confidence = confidence;
        return this;
    }

}
