@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeEventsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeEventsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeEventsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
NextToken is a string that is returned in some command responses.
|
List<ServerEvent> |
getServerEvents()
Contains the response to a
DescribeEvents request. |
int |
hashCode() |
void |
setNextToken(String nextToken)
NextToken is a string that is returned in some command responses.
|
void |
setServerEvents(Collection<ServerEvent> serverEvents)
Contains the response to a
DescribeEvents request. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DescribeEventsResult |
withNextToken(String nextToken)
NextToken is a string that is returned in some command responses.
|
DescribeEventsResult |
withServerEvents(Collection<ServerEvent> serverEvents)
Contains the response to a
DescribeEvents request. |
DescribeEventsResult |
withServerEvents(ServerEvent... serverEvents)
Contains the response to a
DescribeEvents request. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ServerEvent> getServerEvents()
Contains the response to a DescribeEvents
request.
DescribeEvents
request.public void setServerEvents(Collection<ServerEvent> serverEvents)
Contains the response to a DescribeEvents
request.
serverEvents
- Contains the response to a DescribeEvents
request.public DescribeEventsResult withServerEvents(ServerEvent... serverEvents)
Contains the response to a DescribeEvents
request.
NOTE: This method appends the values to the existing list (if any). Use
setServerEvents(java.util.Collection)
or withServerEvents(java.util.Collection)
if you want to
override the existing values.
serverEvents
- Contains the response to a DescribeEvents
request.public DescribeEventsResult withServerEvents(Collection<ServerEvent> serverEvents)
Contains the response to a DescribeEvents
request.
serverEvents
- Contains the response to a DescribeEvents
request.public void setNextToken(String nextToken)
NextToken is a string that is returned in some command responses. It indicates that not all entries have been
returned, and that you must run at least one more request to get remaining items. To get remaining results, call
DescribeEvents
again, and assign the token from the previous results as the value of the
nextToken
parameter. If there are no more results, the response object's nextToken
parameter value is null
. Setting a nextToken
value that was not returned in your
previous results causes an InvalidNextTokenException
to occur.
nextToken
- NextToken is a string that is returned in some command responses. It indicates that not all entries have
been returned, and that you must run at least one more request to get remaining items. To get remaining
results, call DescribeEvents
again, and assign the token from the previous results as the
value of the nextToken
parameter. If there are no more results, the response object's
nextToken
parameter value is null
. Setting a nextToken
value that
was not returned in your previous results causes an InvalidNextTokenException
to occur.public String getNextToken()
NextToken is a string that is returned in some command responses. It indicates that not all entries have been
returned, and that you must run at least one more request to get remaining items. To get remaining results, call
DescribeEvents
again, and assign the token from the previous results as the value of the
nextToken
parameter. If there are no more results, the response object's nextToken
parameter value is null
. Setting a nextToken
value that was not returned in your
previous results causes an InvalidNextTokenException
to occur.
DescribeEvents
again, and assign the token from the previous results as the
value of the nextToken
parameter. If there are no more results, the response object's
nextToken
parameter value is null
. Setting a nextToken
value that
was not returned in your previous results causes an InvalidNextTokenException
to occur.public DescribeEventsResult withNextToken(String nextToken)
NextToken is a string that is returned in some command responses. It indicates that not all entries have been
returned, and that you must run at least one more request to get remaining items. To get remaining results, call
DescribeEvents
again, and assign the token from the previous results as the value of the
nextToken
parameter. If there are no more results, the response object's nextToken
parameter value is null
. Setting a nextToken
value that was not returned in your
previous results causes an InvalidNextTokenException
to occur.
nextToken
- NextToken is a string that is returned in some command responses. It indicates that not all entries have
been returned, and that you must run at least one more request to get remaining items. To get remaining
results, call DescribeEvents
again, and assign the token from the previous results as the
value of the nextToken
parameter. If there are no more results, the response object's
nextToken
parameter value is null
. Setting a nextToken
value that
was not returned in your previous results causes an InvalidNextTokenException
to occur.public String toString()
toString
in class Object
Object.toString()
public DescribeEventsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.