Freshness Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum
      • com.microsoft.azure.cognitiveservices.search.websearch.models.Freshness

public final class Freshness
extends com.microsoft.rest.ExpandableStringEnum<Freshness>

Defines values for Freshness.

Field Summary

Modifier and Type Field and Description
static final Freshness DAY

Static value Day for Freshness.

static final Freshness MONTH

Static value Month for Freshness.

static final Freshness WEEK

Static value Week for Freshness.

Constructor Summary

Constructor Description
Freshness()

Method Summary

Modifier and Type Method and Description
static Freshness fromString(String name)

Creates or finds a Freshness from its string representation.

static java.util.Collection<Freshness> values()

Methods inherited from com.microsoft.rest.ExpandableStringEnum

com.microsoft.rest.ExpandableStringEnum.<T>fromString com.microsoft.rest.ExpandableStringEnum.<T>values com.microsoft.rest.ExpandableStringEnum.equals com.microsoft.rest.ExpandableStringEnum.hashCode com.microsoft.rest.ExpandableStringEnum.toString com.microsoft.rest.ExpandableStringEnum.withNameValue

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

DAY

public static final Freshness DAY

Static value Day for Freshness.

MONTH

public static final Freshness MONTH

Static value Month for Freshness.

WEEK

public static final Freshness WEEK

Static value Week for Freshness.

Constructor Details

Freshness

public Freshness()

Method Details

fromString

public static Freshness fromString(String name)

Creates or finds a Freshness from its string representation.

Parameters:

name - a name to look for

Returns:

the corresponding Freshness

values

public static Collection values()

Returns:

known Freshness values

Applies to