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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeLocationsResponse.Builderlocations(Collection<Location> locations)The locations.DescribeLocationsResponse.Builderlocations(Consumer<Location.Builder>... locations)The locations.DescribeLocationsResponse.Builderlocations(Location... 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 Detail
-
locations
DescribeLocationsResponse.Builder locations(Collection<Location> locations)
The locations.
- Parameters:
locations- The locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
DescribeLocationsResponse.Builder locations(Location... locations)
The locations.
- Parameters:
locations- The locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
DescribeLocationsResponse.Builder locations(Consumer<Location.Builder>... 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 to#locations(List.) - 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:
#locations(java.util.Collection)
-
-