Interface DescribeSnapshotsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<DescribeSnapshotsRequest.Builder,
,DescribeSnapshotsRequest> FSxRequest.Builder
,SdkBuilder<DescribeSnapshotsRequest.Builder,
,DescribeSnapshotsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
DescribeSnapshotsRequest
@Mutable
@NotThreadSafe
public static interface DescribeSnapshotsRequest.Builder
extends FSxRequest.Builder, SdkPojo, CopyableBuilder<DescribeSnapshotsRequest.Builder,DescribeSnapshotsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionfilters
(Collection<SnapshotFilter> filters) The filters structure.filters
(Consumer<SnapshotFilter.Builder>... filters) The filters structure.filters
(SnapshotFilter... filters) The filters structure.includeShared
(Boolean includeShared) Set tofalse
(default) if you want to only see the snapshots owned by your Amazon Web Services account.maxResults
(Integer maxResults) Sets the value of the MaxResults property for this object.Sets the value of the NextToken property for this object.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.snapshotIds
(String... snapshotIds) The IDs of the snapshots that you want to retrieve.snapshotIds
(Collection<String> snapshotIds) The IDs of the snapshots that you want to retrieve.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.fsx.model.FSxRequest.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
-
snapshotIds
The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't found, a
SnapshotNotFound
error occurs.- Parameters:
snapshotIds
- The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't found, aSnapshotNotFound
error occurs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotIds
The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't found, a
SnapshotNotFound
error occurs.- Parameters:
snapshotIds
- The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't found, aSnapshotNotFound
error occurs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The filters structure. The supported names are
file-system-id
orvolume-id
.- Parameters:
filters
- The filters structure. The supported names arefile-system-id
orvolume-id
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The filters structure. The supported names are
file-system-id
orvolume-id
.- Parameters:
filters
- The filters structure. The supported names arefile-system-id
orvolume-id
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The filters structure. The supported names are
This is a convenience method that creates an instance of thefile-system-id
orvolume-id
.SnapshotFilter.Builder
avoiding the need to create one manually viaSnapshotFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<SnapshotFilter>)
.- Parameters:
filters
- a consumer that will call methods onSnapshotFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
Sets the value of the MaxResults property for this object.- Parameters:
maxResults
- The new value for the MaxResults property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken
- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
DescribeSnapshotsRequest.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
DescribeSnapshotsRequest.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.
-