Interface ListLocationsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListLocationsRequest.Builder,ListLocationsRequest>,DataSyncRequest.Builder,SdkBuilder<ListLocationsRequest.Builder,ListLocationsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListLocationsRequest
public static interface ListLocationsRequest.Builder extends DataSyncRequest.Builder, SdkPojo, CopyableBuilder<ListLocationsRequest.Builder,ListLocationsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListLocationsRequest.Builderfilters(Collection<LocationFilter> filters)You can use API filters to narrow down the list of resources returned byListLocations.ListLocationsRequest.Builderfilters(Consumer<LocationFilter.Builder>... filters)You can use API filters to narrow down the list of resources returned byListLocations.ListLocationsRequest.Builderfilters(LocationFilter... filters)You can use API filters to narrow down the list of resources returned byListLocations.ListLocationsRequest.BuildermaxResults(Integer maxResults)The maximum number of locations to return.ListLocationsRequest.BuildernextToken(String nextToken)An opaque string that indicates the position at which to begin the next list of locations.ListLocationsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListLocationsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
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.datasync.model.DataSyncRequest.Builder
build
-
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
-
maxResults
ListLocationsRequest.Builder maxResults(Integer maxResults)
The maximum number of locations to return.
- Parameters:
maxResults- The maximum number of locations to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
ListLocationsRequest.Builder nextToken(String nextToken)
An opaque string that indicates the position at which to begin the next list of locations.
- Parameters:
nextToken- An opaque string that indicates the position at which to begin the next list of locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListLocationsRequest.Builder filters(Collection<LocationFilter> filters)
You can use API filters to narrow down the list of resources returned by
ListLocations. For example, to retrieve all tasks on a specific source location, you can useListLocationswith filter nameLocationType S3andOperator Equals.- Parameters:
filters- You can use API filters to narrow down the list of resources returned byListLocations. For example, to retrieve all tasks on a specific source location, you can useListLocationswith filter nameLocationType S3andOperator Equals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListLocationsRequest.Builder filters(LocationFilter... filters)
You can use API filters to narrow down the list of resources returned by
ListLocations. For example, to retrieve all tasks on a specific source location, you can useListLocationswith filter nameLocationType S3andOperator Equals.- Parameters:
filters- You can use API filters to narrow down the list of resources returned byListLocations. For example, to retrieve all tasks on a specific source location, you can useListLocationswith filter nameLocationType S3andOperator Equals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListLocationsRequest.Builder filters(Consumer<LocationFilter.Builder>... filters)
You can use API filters to narrow down the list of resources returned by
This is a convenience method that creates an instance of theListLocations. For example, to retrieve all tasks on a specific source location, you can useListLocationswith filter nameLocationType S3andOperator Equals.LocationFilter.Builderavoiding the need to create one manually viaLocationFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#filters(List.) - Parameters:
filters- a consumer that will call methods onLocationFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#filters(java.util.Collection)
-
overrideConfiguration
ListLocationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListLocationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-