/**
 * 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 com.fasterxml.jackson.annotation.JsonProperty;

/**
 * An object representing the style of the text line.
 */
public class Style {
    /**
     * The text line style name, including handwriting and other. Possible
     * values include: 'other', 'handwriting'.
     */
    @JsonProperty(value = "name", required = true)
    private TextStyle name;

    /**
     * The confidence of text line style.
     */
    @JsonProperty(value = "confidence", required = true)
    private double confidence;

    /**
     * Get the name value.
     *
     * @return the name value
     */
    public TextStyle name() {
        return this.name;
    }

    /**
     * Set the name value.
     *
     * @param name the name value to set
     * @return the Style object itself.
     */
    public Style withName(TextStyle name) {
        this.name = name;
        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 Style object itself.
     */
    public Style withConfidence(double confidence) {
        this.confidence = confidence;
        return this;
    }

}
