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
copyMethods inherited from interface software.amazon.awssdk.services.datasync.model.DataSyncResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaLocationListEntry.builder().When the
Consumercompletes,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.
-