Interface PathComponent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PathComponent.Builder,
,PathComponent> SdkBuilder<PathComponent.Builder,
,PathComponent> SdkPojo
- Enclosing class:
PathComponent
public static interface PathComponent.Builder
extends SdkPojo, CopyableBuilder<PathComponent.Builder,PathComponent>
-
Method Summary
Modifier and TypeMethodDescriptiondestinationCidrBlock
(String destinationCidrBlock) The destination CIDR block in the route table.default PathComponent.Builder
resource
(Consumer<NetworkResourceSummary.Builder> resource) The resource.resource
(NetworkResourceSummary resource) The resource.The sequence number in the path.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
-
sequence
The sequence number in the path. The destination is 0.
- Parameters:
sequence
- The sequence number in the path. The destination is 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource.
- Parameters:
resource
- The resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource.
This is a convenience method that creates an instance of theNetworkResourceSummary.Builder
avoiding the need to create one manually viaNetworkResourceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(NetworkResourceSummary)
.- Parameters:
resource
- a consumer that will call methods onNetworkResourceSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationCidrBlock
The destination CIDR block in the route table.
- Parameters:
destinationCidrBlock
- The destination CIDR block in the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-