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.Builderdestination(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.BuilderInformation 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
protocol
The protocol used for the component.
Length Constraints: Minimum of 1. Maximum of 16.
- Parameters:
protocol- The protocol used for the component.Length Constraints: Minimum of 1. Maximum of 16.
- 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.Builderavoiding the need to create one manually viaNetworkPathComponentDetails.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaNetworkPathComponentDetails.builder().When the
Consumercompletes,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:
-