All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.cognitiveservices.vision.faceapi.models.NameAndUserDataContract Maven / Gradle / Ivy

There is a newer version: 1.0.1-beta
Show newest version
/**
 * 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;

/**
 * A combination of user defined name and user specified data for the person,
 * personGroup, and faceList.
 */
public class NameAndUserDataContract {
    /**
     * User defined name, maximum length is 128.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * User specified data. Length should not exceed 16KB.
     */
    @JsonProperty(value = "userData")
    private String userData;

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

    /**
     * Set the name value.
     *
     * @param name the name value to set
     * @return the NameAndUserDataContract object itself.
     */
    public NameAndUserDataContract withName(String name) {
        this.name = name;
        return this;
    }

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

    /**
     * Set the userData value.
     *
     * @param userData the userData value to set
     * @return the NameAndUserDataContract object itself.
     */
    public NameAndUserDataContract withUserData(String userData) {
        this.userData = userData;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy