Interface VirtualRouterSpec.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<VirtualRouterSpec.Builder,
,VirtualRouterSpec> SdkBuilder<VirtualRouterSpec.Builder,
,VirtualRouterSpec> SdkPojo
- Enclosing class:
VirtualRouterSpec
public static interface VirtualRouterSpec.Builder
extends SdkPojo, CopyableBuilder<VirtualRouterSpec.Builder,VirtualRouterSpec>
-
Method Summary
Modifier and TypeMethodDescriptionlisteners
(Collection<VirtualRouterListener> listeners) The listeners that the virtual router is expected to receive inbound traffic from.listeners
(Consumer<VirtualRouterListener.Builder>... listeners) The listeners that the virtual router is expected to receive inbound traffic from.listeners
(VirtualRouterListener... listeners) The listeners that the virtual router is expected to receive inbound traffic from.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
-
listeners
The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.
- Parameters:
listeners
- The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listeners
The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.
- Parameters:
listeners
- The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listeners
The listeners that the virtual router is expected to receive inbound traffic from. You can specify one listener.
This is a convenience method that creates an instance of theVirtualRouterListener.Builder
avoiding the need to create one manually viaVirtualRouterListener.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolisteners(List<VirtualRouterListener>)
.- Parameters:
listeners
- a consumer that will call methods onVirtualRouterListener.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-