Interface NetworkHeader.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<NetworkHeader.Builder,
,NetworkHeader> SdkBuilder<NetworkHeader.Builder,
,NetworkHeader> SdkPojo
- Enclosing class:
NetworkHeader
public static interface NetworkHeader.Builder
extends SdkPojo, CopyableBuilder<NetworkHeader.Builder,NetworkHeader>
-
Method Summary
Modifier and TypeMethodDescriptiondefault NetworkHeader.Builder
destination
(Consumer<NetworkPathComponentDetails.Builder> destination) Information about the destination of the component.destination
(NetworkPathComponentDetails destination) Information about the destination of the component.The protocol used for the component.default NetworkHeader.Builder
Information about the origin of the component.source
(NetworkPathComponentDetails source) Information about the origin of the component.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
-
protocol
The protocol used for the component.
- Parameters:
protocol
- The protocol used for the component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
Information about the destination of the component.
- Parameters:
destination
- Information about the destination of the component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
default NetworkHeader.Builder destination(Consumer<NetworkPathComponentDetails.Builder> destination) Information about the destination of the component.
This is a convenience method that creates an instance of theNetworkPathComponentDetails.Builder
avoiding the need to create one manually viaNetworkPathComponentDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestination(NetworkPathComponentDetails)
.- Parameters:
destination
- a consumer that will call methods onNetworkPathComponentDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
Information about the origin of the component.
- Parameters:
source
- Information about the origin of the component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Information about the origin of the component.
This is a convenience method that creates an instance of theNetworkPathComponentDetails.Builder
avoiding the need to create one manually viaNetworkPathComponentDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosource(NetworkPathComponentDetails)
.- Parameters:
source
- a consumer that will call methods onNetworkPathComponentDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-