Interface LookupEventsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudTrailRequest.Builder,CopyableBuilder<LookupEventsRequest.Builder,LookupEventsRequest>,SdkBuilder<LookupEventsRequest.Builder,LookupEventsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- LookupEventsRequest
public static interface LookupEventsRequest.Builder extends CloudTrailRequest.Builder, SdkPojo, CopyableBuilder<LookupEventsRequest.Builder,LookupEventsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LookupEventsRequest.BuilderendTime(Instant endTime)Specifies that only events that occur before or at the specified time are returned.LookupEventsRequest.BuildereventCategory(String eventCategory)Specifies the event category.LookupEventsRequest.BuildereventCategory(EventCategory eventCategory)Specifies the event category.LookupEventsRequest.BuilderlookupAttributes(Collection<LookupAttribute> lookupAttributes)Contains a list of lookup attributes.LookupEventsRequest.BuilderlookupAttributes(Consumer<LookupAttribute.Builder>... lookupAttributes)Contains a list of lookup attributes.LookupEventsRequest.BuilderlookupAttributes(LookupAttribute... lookupAttributes)Contains a list of lookup attributes.LookupEventsRequest.BuildermaxResults(Integer maxResults)The number of events to return.LookupEventsRequest.BuildernextToken(String nextToken)The token to use to get the next page of results after a previous API call.LookupEventsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)LookupEventsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)LookupEventsRequest.BuilderstartTime(Instant startTime)Specifies that only events that occur after or at the specified time are returned.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
lookupAttributes
LookupEventsRequest.Builder lookupAttributes(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.
-
lookupAttributes
LookupEventsRequest.Builder lookupAttributes(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.
-
lookupAttributes
LookupEventsRequest.Builder lookupAttributes(Consumer<LookupAttribute.Builder>... lookupAttributes)
Contains a list of lookup attributes. Currently the list can contain only one item.
This is a convenience method that creates an instance of theLookupAttribute.Builderavoiding the need to create one manually viaLookupAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#lookupAttributes(List.) - Parameters:
lookupAttributes- a consumer that will call methods onLookupAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#lookupAttributes(java.util.Collection)
-
startTime
LookupEventsRequest.Builder startTime(Instant 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.
-
endTime
LookupEventsRequest.Builder endTime(Instant 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.
-
eventCategory
LookupEventsRequest.Builder eventCategory(String eventCategory)
Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify
insightas the value ofEventCategory, no Insights events are returned.- Parameters:
eventCategory- Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specifyinsightas the value ofEventCategory, no Insights events are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventCategory,EventCategory
-
eventCategory
LookupEventsRequest.Builder eventCategory(EventCategory eventCategory)
Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify
insightas the value ofEventCategory, no Insights events are returned.- Parameters:
eventCategory- Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specifyinsightas the value ofEventCategory, no Insights events are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventCategory,EventCategory
-
maxResults
LookupEventsRequest.Builder maxResults(Integer maxResults)
The number of events to return. Possible values are 1 through 50. The default is 50.
- Parameters:
maxResults- The number of events to return. Possible values are 1 through 50. The default is 50.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
LookupEventsRequest.Builder nextToken(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 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 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.
-
overrideConfiguration
LookupEventsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
LookupEventsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-