### YamlMime:JavaType uid: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness" fullName: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness" name: "Freshness" nameWithType: "Freshness" summary: "Defines values for Freshness." inheritances: - "" - "" inheritedClassMethods: - classRef: "" methodsRef: - "fromString(java.lang.String,java.lang.Class)?alt=com.microsoft.rest.ExpandableStringEnum.fromString&text=fromString\" data-throw-if-not-resolved=\"False\" />" - "values(java.lang.Class)?alt=com.microsoft.rest.ExpandableStringEnum.values&text=values\" data-throw-if-not-resolved=\"False\" />" - "" - "" - "" - ")?alt=com.microsoft.rest.ExpandableStringEnum.withNameValue&text=withNameValue\" data-throw-if-not-resolved=\"False\" />" - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public final class **Freshness**
extends <>" constructors: - uid: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.Freshness()" fullName: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.Freshness()" name: "Freshness()" nameWithType: "Freshness.Freshness()" syntax: "public Freshness()" fields: - uid: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.DAY" fullName: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.DAY" name: "DAY" nameWithType: "Freshness.DAY" summary: "Static value Day for Freshness." modifiers: - "static" - "final" field: type: "" syntax: "public static final Freshness DAY" desc: "Static value Day for Freshness." - uid: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.MONTH" fullName: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.MONTH" name: "MONTH" nameWithType: "Freshness.MONTH" summary: "Static value Month for Freshness." modifiers: - "static" - "final" field: type: "" syntax: "public static final Freshness MONTH" desc: "Static value Month for Freshness." - uid: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.WEEK" fullName: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.WEEK" name: "WEEK" nameWithType: "Freshness.WEEK" summary: "Static value Week for Freshness." modifiers: - "static" - "final" field: type: "" syntax: "public static final Freshness WEEK" desc: "Static value Week for Freshness." methods: - uid: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.fromString(java.lang.String)" fullName: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.fromString(String name)" name: "fromString(String name)" nameWithType: "Freshness.fromString(String name)" summary: "Creates or finds a Freshness from its string representation." modifiers: - "static" parameters: - description: "a name to look for" name: "name" type: "" syntax: "public static Freshness fromString(String name)" desc: "Creates or finds a Freshness from its string representation." returns: description: "the corresponding Freshness" type: "" - uid: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.values()" fullName: "com.microsoft.azure.cognitiveservices.search.newssearch.models.Freshness.values()" name: "values()" nameWithType: "Freshness.values()" modifiers: - "static" syntax: "public static Collection values()" returns: description: "known Freshness values" type: "<>" type: "class" desc: "Defines values for Freshness." metadata: {} package: "com.microsoft.azure.cognitiveservices.search.newssearch.models" artifact: com.microsoft.azure.cognitiveservices:azure-cognitiveservices-newssearch:1.0.2