Interface NetworkPathComponentDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<NetworkPathComponentDetails.Builder,
,NetworkPathComponentDetails> SdkBuilder<NetworkPathComponentDetails.Builder,
,NetworkPathComponentDetails> SdkPojo
- Enclosing class:
NetworkPathComponentDetails
public static interface NetworkPathComponentDetails.Builder
extends SdkPojo, CopyableBuilder<NetworkPathComponentDetails.Builder,NetworkPathComponentDetails>
-
Method Summary
Modifier and TypeMethodDescriptionThe IP addresses of the destination.address
(Collection<String> address) The IP addresses of the destination.portRanges
(Collection<PortRange> portRanges) A list of port ranges for the destination.portRanges
(Consumer<PortRange.Builder>... portRanges) A list of port ranges for the destination.portRanges
(PortRange... portRanges) A list of port ranges for the destination.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
address
The IP addresses of the destination.
- Parameters:
address
- The IP addresses of the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
address
The IP addresses of the destination.
- Parameters:
address
- The IP addresses of the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRanges
A list of port ranges for the destination.
- Parameters:
portRanges
- A list of port ranges for the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRanges
A list of port ranges for the destination.
- Parameters:
portRanges
- A list of port ranges for the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portRanges
A list of port ranges for the destination.
This is a convenience method that creates an instance of thePortRange.Builder
avoiding the need to create one manually viaPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toportRanges(List<PortRange>)
.- Parameters:
portRanges
- a consumer that will call methods onPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-