NewsModel Class
- java.
lang. Object - ResponseBase
- Identifiable
- Response
- Answer
- SearchResultsAnswer
- com.
microsoft. azure. cognitiveservices. search. newssearch. models. NewsModel
- com.
public class NewsModel 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.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 NewsModel withValue(List
Set the value value.
Parameters:
value
- the value value to set
Returns:
the NewsModel 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