Interface ListLocationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListLocationsResponse.Builder,
,ListLocationsResponse> DataSyncResponse.Builder
,SdkBuilder<ListLocationsResponse.Builder,
,ListLocationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListLocationsResponse
public static interface ListLocationsResponse.Builder
extends DataSyncResponse.Builder, SdkPojo, CopyableBuilder<ListLocationsResponse.Builder,ListLocationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlocations
(Collection<LocationListEntry> locations) An array that contains a list of locations.locations
(Consumer<LocationListEntry.Builder>... locations) An array that contains a list of locations.locations
(LocationListEntry... locations) An array that contains a list of locations.An opaque string that indicates the position at which to begin returning the next list of locations.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.datasync.model.DataSyncResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
locations
An array that contains a list of locations.
- Parameters:
locations
- An array that contains a list of locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
An array that contains a list of locations.
- Parameters:
locations
- An array that contains a list of locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
An array that contains a list of locations.
This is a convenience method that creates an instance of theLocationListEntry.Builder
avoiding the need to create one manually viaLocationListEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocations(List<LocationListEntry>)
.- Parameters:
locations
- a consumer that will call methods onLocationListEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An opaque string that indicates the position at which to begin returning the next list of locations.
- Parameters:
nextToken
- An opaque string that indicates the position at which to begin returning the next list of locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-