Interface DescribeLocationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeLocationsResponse.Builder,
,DescribeLocationsResponse> DirectConnectResponse.Builder
,SdkBuilder<DescribeLocationsResponse.Builder,
,DescribeLocationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeLocationsResponse
public static interface DescribeLocationsResponse.Builder
extends DirectConnectResponse.Builder, SdkPojo, CopyableBuilder<DescribeLocationsResponse.Builder,DescribeLocationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlocations
(Collection<Location> locations) The locations.locations
(Consumer<Location.Builder>... locations) The locations.The locations.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.directconnect.model.DirectConnectResponse.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
The locations.
- Parameters:
locations
- The locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
The locations.
- Parameters:
locations
- The locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
The locations.
This is a convenience method that creates an instance of theLocation.Builder
avoiding the need to create one manually viaLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocations(List<Location>)
.- Parameters:
locations
- a consumer that will call methods onLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-