Delen via


Freshness Class

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

public class Freshness

Defines values for Freshness.

Field Summary

Modifier and Type Field and Description
final Freshness DAY

Static value Day for Freshness.

final Freshness MONTH

Static value Month for Freshness.

final Freshness WEEK

Static value Week for Freshness.

Method Summary

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

Creates or finds a Freshness from its string representation.

Collection<Freshness> values()

Field Details

DAY

public static final Freshness DAY= fromString("Day")

Static value Day for Freshness.

MONTH

public static final Freshness MONTH= fromString("Month")

Static value Month for Freshness.

WEEK

public static final Freshness WEEK= fromString("Week")

Static value Week for 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