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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Accessory item and corresponding confidence level.
 */
public class Accessory {
    /**
     * Type of an accessory. Possible values include: 'headWear', 'glasses',
     * 'mask'.
     */
    @JsonProperty(value = "type")
    private AccessoryType type;

    /**
     * Confidence level of an accessory.
     */
    @JsonProperty(value = "confidence")
    private double confidence;

    /**
     * Get the type value.
     *
     * @return the type value
     */
    public AccessoryType type() {
        return this.type;
    }

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

}
