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:
  • Constructor Details

    • LookupEventsRequest

      public LookupEventsRequest()
  • Method Details

    • 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) or withLookupAttributes(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: