com.microsoft.bing.autosuggest.models.SafeSearch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bing-autosuggest Show documentation
Show all versions of bing-autosuggest Show documentation
This module contains the client library for Microsoft Bing AutoSuggest APIs.
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 SafeSearch.
*/
public final class SafeSearch extends ExpandableStringEnum {
/** Static value Off for SafeSearch. */
public static final SafeSearch OFF = fromString("Off");
/** Static value Moderate for SafeSearch. */
public static final SafeSearch MODERATE = fromString("Moderate");
/** Static value Strict for SafeSearch. */
public static final SafeSearch STRICT = fromString("Strict");
/**
* Creates or finds a SafeSearch from its string representation.
* @param name a name to look for
* @return the corresponding SafeSearch
*/
@JsonCreator
public static SafeSearch fromString(String name) {
return fromString(name, SafeSearch.class);
}
/**
* @return known SafeSearch values
*/
public static Collection values() {
return values(SafeSearch.class);
}
}