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

com.microsoft.bing.autosuggest.models.ResponseFormat 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.bing.autosuggest.models;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
 * Defines values for ResponseFormat.
 */
public final class ResponseFormat extends ExpandableStringEnum {
    /** Static value Json for ResponseFormat. */
    public static final ResponseFormat JSON = fromString("Json");

    /** Static value JsonLd for ResponseFormat. */
    public static final ResponseFormat JSON_LD = fromString("JsonLd");

    /**
     * Creates or finds a ResponseFormat from its string representation.
     * @param name a name to look for
     * @return the corresponding ResponseFormat
     */
    @JsonCreator
    public static ResponseFormat fromString(String name) {
        return fromString(name, ResponseFormat.class);
    }

    /**
     * @return known ResponseFormat values
     */
    public static Collection values() {
        return values(ResponseFormat.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy