@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListNotificationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListNotificationsResult() |
Modifier and Type | Method and Description |
---|---|
ListNotificationsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The pagination token that's used to fetch the next set of results.
|
List<Notification> |
getNotifications()
The returned list of notifications.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
|
void |
setNotifications(Collection<Notification> notifications)
The returned list of notifications.
|
String |
toString()
Returns a string representation of this object.
|
ListNotificationsResult |
withNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
|
ListNotificationsResult |
withNotifications(Collection<Notification> notifications)
The returned list of notifications.
|
ListNotificationsResult |
withNotifications(Notification... notifications)
The returned list of notifications.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Notification> getNotifications()
The returned list of notifications.
public void setNotifications(Collection<Notification> notifications)
The returned list of notifications.
notifications
- The returned list of notifications.public ListNotificationsResult withNotifications(Notification... notifications)
The returned list of notifications.
NOTE: This method appends the values to the existing list (if any). Use
setNotifications(java.util.Collection)
or withNotifications(java.util.Collection)
if you want
to override the existing values.
notifications
- The returned list of notifications.public ListNotificationsResult withNotifications(Collection<Notification> notifications)
The returned list of notifications.
notifications
- The returned list of notifications.public void setNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
nextToken
- The pagination token that's used to fetch the next set of results.public String getNextToken()
The pagination token that's used to fetch the next set of results.
public ListNotificationsResult withNextToken(String nextToken)
The pagination token that's used to fetch the next set of results.
nextToken
- The pagination token that's used to fetch the next set of results.public String toString()
toString
in class Object
Object.toString()
public ListNotificationsResult clone()