-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
ResponseFormat.java
41 lines (35 loc) · 1.25 KB
/
ResponseFormat.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* 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.search.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<ResponseFormat> {
/** 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<ResponseFormat> values() {
return values(ResponseFormat.class);
}
}