SafeSearch Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum<SafeSearch>
      • com.microsoft.azure.cognitiveservices.search.autosuggest.models.SafeSearch

public class SafeSearch

Defines values for SafeSearch.

Field Summary

Modifier and Type Field and Description
final SafeSearch MODERATE

Static value Moderate for SafeSearch.

final SafeSearch OFF

Static value Off for SafeSearch.

final SafeSearch STRICT

Static value Strict for SafeSearch.

Method Summary

Modifier and Type Method and Description
SafeSearch fromString(String name)

Creates or finds a SafeSearch from its string representation.

Collection<SafeSearch> values()

Field Details

MODERATE

public static final SafeSearch MODERATE= fromString("Moderate")

Static value Moderate for SafeSearch.

OFF

public static final SafeSearch OFF= fromString("Off")

Static value Off for SafeSearch.

STRICT

public static final SafeSearch STRICT= fromString("Strict")

Static value Strict for SafeSearch.

Method Details

fromString

public static SafeSearch fromString(String name)

Creates or finds a SafeSearch from its string representation.

Parameters:

name - a name to look for

Returns:

the corresponding SafeSearch

values

public static Collection values()

Returns:

known SafeSearch values

Applies to