@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListHealthEventsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListHealthEventsResult() |
Modifier and Type | Method and Description |
---|---|
ListHealthEventsResult |
clone() |
boolean |
equals(Object obj) |
List<HealthEvent> |
getHealthEvents()
A list of health events.
|
String |
getNextToken()
The token for the next set of results.
|
int |
hashCode() |
void |
setHealthEvents(Collection<HealthEvent> healthEvents)
A list of health events.
|
void |
setNextToken(String nextToken)
The token for the next set of results.
|
String |
toString()
Returns a string representation of this object.
|
ListHealthEventsResult |
withHealthEvents(Collection<HealthEvent> healthEvents)
A list of health events.
|
ListHealthEventsResult |
withHealthEvents(HealthEvent... healthEvents)
A list of health events.
|
ListHealthEventsResult |
withNextToken(String nextToken)
The token for the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<HealthEvent> getHealthEvents()
A list of health events.
public void setHealthEvents(Collection<HealthEvent> healthEvents)
A list of health events.
healthEvents
- A list of health events.public ListHealthEventsResult withHealthEvents(HealthEvent... healthEvents)
A list of health events.
NOTE: This method appends the values to the existing list (if any). Use
setHealthEvents(java.util.Collection)
or withHealthEvents(java.util.Collection)
if you want to
override the existing values.
healthEvents
- A list of health events.public ListHealthEventsResult withHealthEvents(Collection<HealthEvent> healthEvents)
A list of health events.
healthEvents
- A list of health events.public void setNextToken(String nextToken)
The token for the next set of results. You receive this token from a previous call.
nextToken
- The token for the next set of results. You receive this token from a previous call.public String getNextToken()
The token for the next set of results. You receive this token from a previous call.
public ListHealthEventsResult withNextToken(String nextToken)
The token for the next set of results. You receive this token from a previous call.
nextToken
- The token for the next set of results. You receive this token from a previous call.public String toString()
toString
in class Object
Object.toString()
public ListHealthEventsResult clone()