public class LookupEventsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Contains a request for LookupEvents.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
endTime
Specifies that only events that occur before or at the specified time are
returned.
|
private SdkInternalList<LookupAttribute> |
lookupAttributes
Contains a list of lookup attributes.
|
private java.lang.Integer |
maxResults
The number of events to return.
|
private java.lang.String |
nextToken
The token to use to get the next page of results after a previous API
call.
|
private java.util.Date |
startTime
Specifies that only events that occur after or at the specified time are
returned.
|
NOOP
Constructor and Description |
---|
LookupEventsRequest() |
Modifier and Type | Method and Description |
---|---|
LookupEventsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getEndTime()
Specifies that only events that occur before or at the specified time are
returned.
|
java.util.List<LookupAttribute> |
getLookupAttributes()
Contains a list of lookup attributes.
|
java.lang.Integer |
getMaxResults()
The number of events to return.
|
java.lang.String |
getNextToken()
The token to use to get the next page of results after a previous API
call.
|
java.util.Date |
getStartTime()
Specifies that only events that occur after or at the specified time are
returned.
|
int |
hashCode() |
void |
setEndTime(java.util.Date endTime)
Specifies that only events that occur before or at the specified time are
returned.
|
void |
setLookupAttributes(java.util.Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes.
|
void |
setMaxResults(java.lang.Integer maxResults)
The number of events to return.
|
void |
setNextToken(java.lang.String nextToken)
The token to use to get the next page of results after a previous API
call.
|
void |
setStartTime(java.util.Date startTime)
Specifies that only events that occur after or at the specified time are
returned.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LookupEventsRequest |
withEndTime(java.util.Date endTime)
Specifies that only events that occur before or at the specified time are
returned.
|
LookupEventsRequest |
withLookupAttributes(java.util.Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes.
|
LookupEventsRequest |
withLookupAttributes(LookupAttribute... lookupAttributes)
Contains a list of lookup attributes.
|
LookupEventsRequest |
withMaxResults(java.lang.Integer maxResults)
The number of events to return.
|
LookupEventsRequest |
withNextToken(java.lang.String nextToken)
The token to use to get the next page of results after a previous API
call.
|
LookupEventsRequest |
withStartTime(java.util.Date startTime)
Specifies that only events that occur after or at the specified time are
returned.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private SdkInternalList<LookupAttribute> lookupAttributes
Contains a list of lookup attributes. Currently the list can contain only one item.
private java.util.Date startTime
Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.
private java.util.Date endTime
Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.
private java.lang.Integer maxResults
The number of events to return. Possible values are 1 through 50. The default is 10.
private java.lang.String nextToken
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
public java.util.List<LookupAttribute> getLookupAttributes()
Contains a list of lookup attributes. Currently the list can contain only one item.
public void setLookupAttributes(java.util.Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes. Currently the list can contain only one item.
lookupAttributes
- Contains a list of lookup attributes. Currently the list can
contain only one item.public LookupEventsRequest withLookupAttributes(LookupAttribute... lookupAttributes)
Contains a list of lookup attributes. Currently the list can contain only one item.
NOTE: This method appends the values to the existing list (if
any). Use setLookupAttributes(java.util.Collection)
or
withLookupAttributes(java.util.Collection)
if you want to
override the existing values.
lookupAttributes
- Contains a list of lookup attributes. Currently the list can
contain only one item.public LookupEventsRequest withLookupAttributes(java.util.Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes. Currently the list can contain only one item.
lookupAttributes
- Contains a list of lookup attributes. Currently the list can
contain only one item.public void setStartTime(java.util.Date startTime)
Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.
startTime
- Specifies that only events that occur after or at the specified
time are returned. If the specified start time is after the
specified end time, an error is returned.public java.util.Date getStartTime()
Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.
public LookupEventsRequest withStartTime(java.util.Date startTime)
Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.
startTime
- Specifies that only events that occur after or at the specified
time are returned. If the specified start time is after the
specified end time, an error is returned.public void setEndTime(java.util.Date endTime)
Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.
endTime
- Specifies that only events that occur before or at the specified
time are returned. If the specified end time is before the
specified start time, an error is returned.public java.util.Date getEndTime()
Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.
public LookupEventsRequest withEndTime(java.util.Date endTime)
Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.
endTime
- Specifies that only events that occur before or at the specified
time are returned. If the specified end time is before the
specified start time, an error is returned.public void setMaxResults(java.lang.Integer maxResults)
The number of events to return. Possible values are 1 through 50. The default is 10.
maxResults
- The number of events to return. Possible values are 1 through 50.
The default is 10.public java.lang.Integer getMaxResults()
The number of events to return. Possible values are 1 through 50. The default is 10.
public LookupEventsRequest withMaxResults(java.lang.Integer maxResults)
The number of events to return. Possible values are 1 through 50. The default is 10.
maxResults
- The number of events to return. Possible values are 1 through 50.
The default is 10.public void setNextToken(java.lang.String nextToken)
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
nextToken
- The token to use to get the next page of results after a previous
API call. This token must be passed in with the same parameters
that were specified in the the original call. For example, if the
original call specified an AttributeKey of 'Username' with a value
of 'root', the call with NextToken should include those same
parameters.public java.lang.String getNextToken()
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
public LookupEventsRequest withNextToken(java.lang.String nextToken)
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
nextToken
- The token to use to get the next page of results after a previous
API call. This token must be passed in with the same parameters
that were specified in the the original call. For example, if the
original call specified an AttributeKey of 'Username' with a value
of 'root', the call with NextToken should include those same
parameters.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 LookupEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()