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

com.microsoft.azure.cognitiveservices.vision.computervision.models.DescribeImageOptionalParameter Maven / Gradle / Ivy

The 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.computervision.models;

import java.util.List;

/**
 * The DescribeImageOptionalParameter model.
 */
public class DescribeImageOptionalParameter {
    /**
     * Maximum number of candidate descriptions to be returned.  The default is
     * 1.
     */
    private Integer maxCandidates;

    /**
     * The desired language for output generation. If this parameter is not
     * specified, the default value is "en".Supported
     * languages:en - English, Default. es - Spanish, ja - Japanese, pt -
     * Portuguese, zh - Simplified Chinese. Possible values include: 'en',
     * 'es', 'ja', 'pt', 'zh'.
     */
    private String language;

    /**
     * Turn off specified domain models when generating the description.
     */
    private List descriptionExclude;

    /**
     * Optional parameter to specify the version of the AI model. Accepted
     * values are: "latest", "2021-04-01". Defaults to "latest".
     */
    private String modelVersion;

    /**
     * Gets or sets the preferred language for the response.
     */
    private String thisclientacceptLanguage;

    /**
     * Get the maxCandidates value.
     *
     * @return the maxCandidates value
     */
    public Integer maxCandidates() {
        return this.maxCandidates;
    }

    /**
     * Set the maxCandidates value.
     *
     * @param maxCandidates the maxCandidates value to set
     * @return the DescribeImageOptionalParameter object itself.
     */
    public DescribeImageOptionalParameter withMaxCandidates(Integer maxCandidates) {
        this.maxCandidates = maxCandidates;
        return this;
    }

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

    /**
     * Set the language value.
     *
     * @param language the language value to set
     * @return the DescribeImageOptionalParameter object itself.
     */
    public DescribeImageOptionalParameter withLanguage(String language) {
        this.language = language;
        return this;
    }

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

    /**
     * Set the descriptionExclude value.
     *
     * @param descriptionExclude the descriptionExclude value to set
     * @return the DescribeImageOptionalParameter object itself.
     */
    public DescribeImageOptionalParameter withDescriptionExclude(List descriptionExclude) {
        this.descriptionExclude = descriptionExclude;
        return this;
    }

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

    /**
     * Set the modelVersion value.
     *
     * @param modelVersion the modelVersion value to set
     * @return the DescribeImageOptionalParameter object itself.
     */
    public DescribeImageOptionalParameter withModelVersion(String modelVersion) {
        this.modelVersion = modelVersion;
        return this;
    }

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

    /**
     * Set the thisclientacceptLanguage value.
     *
     * @param thisclientacceptLanguage the thisclientacceptLanguage value to set
     * @return the DescribeImageOptionalParameter object itself.
     */
    public DescribeImageOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) {
        this.thisclientacceptLanguage = thisclientacceptLanguage;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy