Interface StartArchiveSearchRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartArchiveSearchRequest.Builder,
,StartArchiveSearchRequest> MailManagerRequest.Builder
,SdkBuilder<StartArchiveSearchRequest.Builder,
,StartArchiveSearchRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StartArchiveSearchRequest
@Mutable
@NotThreadSafe
public static interface StartArchiveSearchRequest.Builder
extends MailManagerRequest.Builder, SdkPojo, CopyableBuilder<StartArchiveSearchRequest.Builder,StartArchiveSearchRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the archive to search emails in.filters
(Consumer<ArchiveFilters.Builder> filters) Criteria to filter which emails are included in the search results.filters
(ArchiveFilters filters) Criteria to filter which emails are included in the search results.fromTimestamp
(Instant fromTimestamp) The start timestamp of the range to search emails from.maxResults
(Integer maxResults) The maximum number of search results to return.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.toTimestamp
(Instant toTimestamp) The end timestamp of the range to search emails from.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.mailmanager.model.MailManagerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
archiveId
The identifier of the archive to search emails in.
- Parameters:
archiveId
- The identifier of the archive to search emails in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Criteria to filter which emails are included in the search results.
- Parameters:
filters
- Criteria to filter which emails are included in the search results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Criteria to filter which emails are included in the search results.
This is a convenience method that creates an instance of theArchiveFilters.Builder
avoiding the need to create one manually viaArchiveFilters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(ArchiveFilters)
.- Parameters:
filters
- a consumer that will call methods onArchiveFilters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fromTimestamp
The start timestamp of the range to search emails from.
- Parameters:
fromTimestamp
- The start timestamp of the range to search emails from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of search results to return.
- Parameters:
maxResults
- The maximum number of search results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toTimestamp
The end timestamp of the range to search emails from.
- Parameters:
toTimestamp
- The end timestamp of the range to search emails from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartArchiveSearchRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartArchiveSearchRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-