Interface StartArchiveSearchRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartArchiveSearchRequest.Builder,,StartArchiveSearchRequest> MailManagerRequest.Builder,SdkBuilder<StartArchiveSearchRequest.Builder,,StartArchiveSearchRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartArchiveSearchRequest
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mailmanager.model.MailManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaArchiveFilters.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-