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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListLocationsResponse.Builderlocations(Collection<LocationListEntry> locations)An array that contains a list of locations.ListLocationsResponse.Builderlocations(Consumer<LocationListEntry.Builder>... locations)An array that contains a list of locations.ListLocationsResponse.Builderlocations(LocationListEntry... locations)An array that contains a list of locations.ListLocationsResponse.BuildernextToken(String nextToken)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 Detail
-
locations
ListLocationsResponse.Builder locations(Collection<LocationListEntry> 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
ListLocationsResponse.Builder locations(LocationListEntry... 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
ListLocationsResponse.Builder locations(Consumer<LocationListEntry.Builder>... 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 to#locations(List.) - 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:
#locations(java.util.Collection)
-
nextToken
ListLocationsResponse.Builder nextToken(String 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.
-
-