@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListRecommendationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListRecommendationsResult() |
Modifier and Type | Method and Description |
---|---|
ListRecommendationsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The pagination token to use to retrieve the next page of results for this operation.
|
List<Recommendation> |
getRecommendations()
An array of the requested recommendations.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation.
|
void |
setRecommendations(Collection<Recommendation> recommendations)
An array of the requested recommendations.
|
String |
toString()
Returns a string representation of this object.
|
ListRecommendationsResult |
withNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation.
|
ListRecommendationsResult |
withRecommendations(Collection<Recommendation> recommendations)
An array of the requested recommendations.
|
ListRecommendationsResult |
withRecommendations(Recommendation... recommendations)
An array of the requested recommendations.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Recommendation> getRecommendations()
An array of the requested recommendations.
public void setRecommendations(Collection<Recommendation> recommendations)
An array of the requested recommendations.
recommendations
- An array of the requested recommendations.public ListRecommendationsResult withRecommendations(Recommendation... recommendations)
An array of the requested recommendations.
NOTE: This method appends the values to the existing list (if any). Use
setRecommendations(java.util.Collection)
or withRecommendations(java.util.Collection)
if you
want to override the existing values.
recommendations
- An array of the requested recommendations.public ListRecommendationsResult withRecommendations(Collection<Recommendation> recommendations)
An array of the requested recommendations.
recommendations
- An array of the requested recommendations.public void setNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
nextToken
- The pagination token to use to retrieve the next page of results for this operation. If there are no more
pages, this value is null.public String getNextToken()
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
public ListRecommendationsResult withNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
nextToken
- The pagination token to use to retrieve the next page of results for this operation. If there are no more
pages, this value is null.public String toString()
toString
in class Object
Object.toString()
public ListRecommendationsResult clone()