Class LookupEventsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudtrail.model.LookupEventsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class LookupEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains a request for LookupEvents.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description LookupEventsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LookupEventsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
Date
getEndTime()
Specifies that only events that occur before or at the specified time are returned.List<LookupAttribute>
getLookupAttributes()
Contains a list of lookup attributes.Integer
getMaxResults()
The number of events to return.String
getNextToken()
The token to use to get the next page of results after a previous API call.Date
getStartTime()
Specifies that only events that occur after or at the specified time are returned.int
hashCode()
void
setEndTime(Date endTime)
Specifies that only events that occur before or at the specified time are returned.void
setLookupAttributes(Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes.void
setMaxResults(Integer maxResults)
The number of events to return.void
setNextToken(String nextToken)
The token to use to get the next page of results after a previous API call.void
setStartTime(Date startTime)
Specifies that only events that occur after or at the specified time are returned.String
toString()
Returns a string representation of this object; useful for testing and debugging.LookupEventsRequest
withEndTime(Date endTime)
Specifies that only events that occur before or at the specified time are returned.LookupEventsRequest
withLookupAttributes(LookupAttribute... lookupAttributes)
Contains a list of lookup attributes.LookupEventsRequest
withLookupAttributes(Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes.LookupEventsRequest
withMaxResults(Integer maxResults)
The number of events to return.LookupEventsRequest
withNextToken(String nextToken)
The token to use to get the next page of results after a previous API call.LookupEventsRequest
withStartTime(Date startTime)
Specifies that only events that occur after or at the specified time are returned.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
getLookupAttributes
public List<LookupAttribute> getLookupAttributes()
Contains a list of lookup attributes. Currently the list can contain only one item.
- Returns:
- Contains a list of lookup attributes. Currently the list can contain only one item.
-
setLookupAttributes
public void setLookupAttributes(Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes. Currently the list can contain only one item.
- Parameters:
lookupAttributes
- Contains a list of lookup attributes. Currently the list can contain only one item.
-
withLookupAttributes
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)
orwithLookupAttributes(java.util.Collection)
if you want to override the existing values.- Parameters:
lookupAttributes
- Contains a list of lookup attributes. Currently the list can contain only one item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLookupAttributes
public LookupEventsRequest withLookupAttributes(Collection<LookupAttribute> lookupAttributes)
Contains a list of lookup attributes. Currently the list can contain only one item.
- Parameters:
lookupAttributes
- Contains a list of lookup attributes. Currently the list can contain only one item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartTime
public void setStartTime(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.
- Parameters:
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.
-
getStartTime
public 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.
- Returns:
- 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.
-
withStartTime
public LookupEventsRequest withStartTime(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndTime
public void setEndTime(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.
- Parameters:
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.
-
getEndTime
public 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.
- Returns:
- 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.
-
withEndTime
public LookupEventsRequest withEndTime(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxResults
public void setMaxResults(Integer maxResults)
The number of events to return. Possible values are 1 through 50. The default is 10.
- Parameters:
maxResults
- The number of events to return. Possible values are 1 through 50. The default is 10.
-
getMaxResults
public Integer getMaxResults()
The number of events to return. Possible values are 1 through 50. The default is 10.
- Returns:
- The number of events to return. Possible values are 1 through 50. The default is 10.
-
withMaxResults
public LookupEventsRequest withMaxResults(Integer maxResults)
The number of events to return. Possible values are 1 through 50. The default is 10.
- Parameters:
maxResults
- The number of events to return. Possible values are 1 through 50. The default is 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(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.
- 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.
-
getNextToken
public 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.
- Returns:
- 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.
-
withNextToken
public LookupEventsRequest withNextToken(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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LookupEventsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-