/**
 * 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 describing a face identified in the image.
 */
public class FaceDescription {
    /**
     * Possible age of the face.
     */
    @JsonProperty(value = "age")
    private int age;

    /**
     * Possible gender of the face. Possible values include: 'Male', 'Female'.
     */
    @JsonProperty(value = "gender")
    private Gender gender;

    /**
     * Rectangle in the image containing the identified face.
     */
    @JsonProperty(value = "faceRectangle")
    private FaceRectangle faceRectangle;

    /**
     * Get the age value.
     *
     * @return the age value
     */
    public int age() {
        return this.age;
    }

    /**
     * Set the age value.
     *
     * @param age the age value to set
     * @return the FaceDescription object itself.
     */
    public FaceDescription withAge(int age) {
        this.age = age;
        return this;
    }

    /**
     * Get the gender value.
     *
     * @return the gender value
     */
    public Gender gender() {
        return this.gender;
    }

    /**
     * Set the gender value.
     *
     * @param gender the gender value to set
     * @return the FaceDescription object itself.
     */
    public FaceDescription withGender(Gender gender) {
        this.gender = gender;
        return this;
    }

    /**
     * Get the faceRectangle value.
     *
     * @return the faceRectangle value
     */
    public FaceRectangle faceRectangle() {
        return this.faceRectangle;
    }

    /**
     * Set the faceRectangle value.
     *
     * @param faceRectangle the faceRectangle value to set
     * @return the FaceDescription object itself.
     */
    public FaceDescription withFaceRectangle(FaceRectangle faceRectangle) {
        this.faceRectangle = faceRectangle;
        return this;
    }

}
