News Class
- java.
lang. Object - ResponseBase
- Identifiable
- Response
- Answer
- SearchResultsAnswer
- com.
microsoft. azure. cognitiveservices. search. websearch. models. News
- com.
public class News extends SearchResultsAnswer
Defines a news answer.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
location()
Get the location value. |
List<News |
value()
Get the value value. |
News |
withValue(List<NewsArticle> value)
Set the value value. |
Inherited Members
Answer.followUpQueries()
Identifiable.id()
SearchResultsAnswer.isFamilyFriendly()
SearchResultsAnswer.queryContext()
SearchResultsAnswer.totalEstimatedMatches()
Response.webSearchUrl()
Method Details
location
public String location()
Get the location value.
Returns:
the location value
value
public List
Get the value value.
Returns:
the value value
withValue
public News withValue(List
Set the value value.
Parameters:
value
- the value value to set
Returns:
the News object itself.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java