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

com.microsoft.azure.cognitiveservices.vision.faceapi.models.AddFaceFromUrlOptionalParameter 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 java.util.List;

/**
 * The optional parameters class for "addFaceFromUrl" method.
 */
public class AddFaceFromUrlOptionalParameter {
    /**
    * User-specified data about the face for any purpose. The maximum length is 1KB.
    */
    private String userData;

    /**
    * A face rectangle to specify the target face to be added to a person in the format of
    * "targetFace=left,top,width,height". E.g. "targetFace=10,10,100,100". If there is more than one face in the image,
    * targetFace is required to specify which face to add. No targetFace means there is only one face detected in the entire
    * image.
    */
    private List targetFace;

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

    /**
    * Get the targetFace value.
    *
    * @return the targetFace value
    */
    public List targetFace() {
        return this.targetFace;
    }

    /**
    * Set the userData value.
    * 

* User-specified data about the face for any purpose. The maximum length is 1KB. * * @param userData the userData value to set * @return the addFaceFromUrlOptionalParameter object itself. */ public AddFaceFromUrlOptionalParameter withUserData(String userData) { this.userData = userData; return this; } /** * Set the targetFace value. *

* A face rectangle to specify the target face to be added to a person in the format of * "targetFace=left,top,width,height". E.g. "targetFace=10,10,100,100". If there is more than one face in the image, * targetFace is required to specify which face to add. No targetFace means there is only one face detected in the entire * image. * * @param targetFace the targetFace value to set * @return the addFaceFromUrlOptionalParameter object itself. */ public AddFaceFromUrlOptionalParameter withTargetFace(List targetFace) { this.targetFace = targetFace; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy