News Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. search. websearch. models. ResponseBase - com.
microsoft. azure. cognitiveservices. search. websearch. models. Identifiable - com.
microsoft. azure. cognitiveservices. search. websearch. models. Response - com.
microsoft. azure. cognitiveservices. search. websearch. models. Answer - com.
microsoft. azure. cognitiveservices. search. websearch. models. SearchResultsAnswer - com.
microsoft. azure. cognitiveservices. search. websearch. models. News
- com.
- com.
- com.
- com.
- com.
- com.
public class News
extends SearchResultsAnswer
Defines a news answer.
Constructor Summary
Constructor | Description | |
---|---|---|
News() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
location()
Get the location value. |
java.util.List<News |
value()
Get the value value. |
News |
withValue(List<NewsArticle> value)
Set the value value. |
Methods inherited from Answer
Methods inherited from Identifiable
Methods inherited from Response
Methods inherited from SearchResultsAnswer
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Constructor Details
News
public News()
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for