@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetLogEventsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetLogEventsResult() |
Modifier and Type | Method and Description |
---|---|
GetLogEventsResult |
clone() |
boolean |
equals(Object obj) |
List<OutputLogEvent> |
getEvents()
The events.
|
String |
getNextBackwardToken()
The token for the next set of items in the backward direction.
|
String |
getNextForwardToken()
The token for the next set of items in the forward direction.
|
int |
hashCode() |
void |
setEvents(Collection<OutputLogEvent> events)
The events.
|
void |
setNextBackwardToken(String nextBackwardToken)
The token for the next set of items in the backward direction.
|
void |
setNextForwardToken(String nextForwardToken)
The token for the next set of items in the forward direction.
|
String |
toString()
Returns a string representation of this object.
|
GetLogEventsResult |
withEvents(Collection<OutputLogEvent> events)
The events.
|
GetLogEventsResult |
withEvents(OutputLogEvent... events)
The events.
|
GetLogEventsResult |
withNextBackwardToken(String nextBackwardToken)
The token for the next set of items in the backward direction.
|
GetLogEventsResult |
withNextForwardToken(String nextForwardToken)
The token for the next set of items in the forward direction.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<OutputLogEvent> getEvents()
The events.
public void setEvents(Collection<OutputLogEvent> events)
The events.
events
- The events.public GetLogEventsResult withEvents(OutputLogEvent... events)
The events.
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
- The events.public GetLogEventsResult withEvents(Collection<OutputLogEvent> events)
The events.
events
- The events.public void setNextForwardToken(String nextForwardToken)
The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it returns the same token you passed in.
nextForwardToken
- The token for the next set of items in the forward direction. The token expires after 24 hours. If you
have reached the end of the stream, it returns the same token you passed in.public String getNextForwardToken()
The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it returns the same token you passed in.
public GetLogEventsResult withNextForwardToken(String nextForwardToken)
The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it returns the same token you passed in.
nextForwardToken
- The token for the next set of items in the forward direction. The token expires after 24 hours. If you
have reached the end of the stream, it returns the same token you passed in.public void setNextBackwardToken(String nextBackwardToken)
The token for the next set of items in the backward direction. The token expires after 24 hours. This token is not null. If you have reached the end of the stream, it returns the same token you passed in.
nextBackwardToken
- The token for the next set of items in the backward direction. The token expires after 24 hours. This
token is not null. If you have reached the end of the stream, it returns the same token you passed in.public String getNextBackwardToken()
The token for the next set of items in the backward direction. The token expires after 24 hours. This token is not null. If you have reached the end of the stream, it returns the same token you passed in.
public GetLogEventsResult withNextBackwardToken(String nextBackwardToken)
The token for the next set of items in the backward direction. The token expires after 24 hours. This token is not null. If you have reached the end of the stream, it returns the same token you passed in.
nextBackwardToken
- The token for the next set of items in the backward direction. The token expires after 24 hours. This
token is not null. If you have reached the end of the stream, it returns the same token you passed in.public String toString()
toString
in class Object
Object.toString()
public GetLogEventsResult clone()