@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListRelatedItemsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListRelatedItemsResult() |
Modifier and Type | Method and Description |
---|---|
ListRelatedItemsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The pagination token to use when requesting the next set of items.
|
List<RelatedItem> |
getRelatedItems()
Details about each related item.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The pagination token to use when requesting the next set of items.
|
void |
setRelatedItems(Collection<RelatedItem> relatedItems)
Details about each related item.
|
String |
toString()
Returns a string representation of this object.
|
ListRelatedItemsResult |
withNextToken(String nextToken)
The pagination token to use when requesting the next set of items.
|
ListRelatedItemsResult |
withRelatedItems(Collection<RelatedItem> relatedItems)
Details about each related item.
|
ListRelatedItemsResult |
withRelatedItems(RelatedItem... relatedItems)
Details about each related item.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The pagination token to use when requesting the next set of items. If there are no additional items to return, the string is null.
nextToken
- The pagination token to use when requesting the next set of items. If there are no additional items to
return, the string is null.public String getNextToken()
The pagination token to use when requesting the next set of items. If there are no additional items to return, the string is null.
public ListRelatedItemsResult withNextToken(String nextToken)
The pagination token to use when requesting the next set of items. If there are no additional items to return, the string is null.
nextToken
- The pagination token to use when requesting the next set of items. If there are no additional items to
return, the string is null.public List<RelatedItem> getRelatedItems()
Details about each related item.
public void setRelatedItems(Collection<RelatedItem> relatedItems)
Details about each related item.
relatedItems
- Details about each related item.public ListRelatedItemsResult withRelatedItems(RelatedItem... relatedItems)
Details about each related item.
NOTE: This method appends the values to the existing list (if any). Use
setRelatedItems(java.util.Collection)
or withRelatedItems(java.util.Collection)
if you want to
override the existing values.
relatedItems
- Details about each related item.public ListRelatedItemsResult withRelatedItems(Collection<RelatedItem> relatedItems)
Details about each related item.
relatedItems
- Details about each related item.public String toString()
toString
in class Object
Object.toString()
public ListRelatedItemsResult clone()