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
copyMethods inherited from interface software.amazon.awssdk.services.directconnect.model.DirectConnectResponse.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
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.Builderavoiding the need to create one manually viaLocation.builder().When the
Consumercompletes,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:
-