public class DescribeEventsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Result message wrapping a list of event descriptions.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<EventDescription> |
events
A list of EventDescription.
|
private java.lang.String |
nextToken
If returned, this indicates that there are more results to obtain.
|
Constructor and Description |
---|
DescribeEventsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeEventsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<EventDescription> |
getEvents()
A list of EventDescription.
|
java.lang.String |
getNextToken()
If returned, this indicates that there are more results to obtain.
|
int |
hashCode() |
void |
setEvents(java.util.Collection<EventDescription> events)
A list of EventDescription.
|
void |
setNextToken(java.lang.String nextToken)
If returned, this indicates that there are more results to obtain.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeEventsResult |
withEvents(java.util.Collection<EventDescription> events)
A list of EventDescription.
|
DescribeEventsResult |
withEvents(EventDescription... events)
A list of EventDescription.
|
DescribeEventsResult |
withNextToken(java.lang.String nextToken)
If returned, this indicates that there are more results to obtain.
|
private SdkInternalList<EventDescription> events
A list of EventDescription.
private java.lang.String nextToken
If returned, this indicates that there are more results to obtain. Use this token in the next DescribeEvents call to get the next batch of events.
public java.util.List<EventDescription> getEvents()
A list of EventDescription.
public void setEvents(java.util.Collection<EventDescription> events)
A list of EventDescription.
events
- A list of EventDescription.public DescribeEventsResult withEvents(EventDescription... events)
A list of EventDescription.
NOTE: This method appends the values to the existing list (if
any). Use setEvents(java.util.Collection)
or
withEvents(java.util.Collection)
if you want to override the
existing values.
events
- A list of EventDescription.public DescribeEventsResult withEvents(java.util.Collection<EventDescription> events)
A list of EventDescription.
events
- A list of EventDescription.public void setNextToken(java.lang.String nextToken)
If returned, this indicates that there are more results to obtain. Use this token in the next DescribeEvents call to get the next batch of events.
nextToken
- If returned, this indicates that there are more results to obtain.
Use this token in the next DescribeEvents call to get the
next batch of events.public java.lang.String getNextToken()
If returned, this indicates that there are more results to obtain. Use this token in the next DescribeEvents call to get the next batch of events.
public DescribeEventsResult withNextToken(java.lang.String nextToken)
If returned, this indicates that there are more results to obtain. Use this token in the next DescribeEvents call to get the next batch of events.
nextToken
- If returned, this indicates that there are more results to obtain.
Use this token in the next DescribeEvents call to get the
next batch of events.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeEventsResult clone()
clone
in class java.lang.Object