Interface PortForwardingConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PortForwardingConfig.Builder,PortForwardingConfig>,SdkBuilder<PortForwardingConfig.Builder,PortForwardingConfig>,SdkPojo
- Enclosing class:
- PortForwardingConfig
public static interface PortForwardingConfig.Builder extends SdkPojo, CopyableBuilder<PortForwardingConfig.Builder,PortForwardingConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PortForwardingConfig.BuilderportMappings(Collection<PortMapping> portMappings)The port mappings for the configuration.PortForwardingConfig.BuilderportMappings(Consumer<PortMapping.Builder>... portMappings)The port mappings for the configuration.PortForwardingConfig.BuilderportMappings(PortMapping... portMappings)The port mappings for the configuration.-
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 Detail
-
portMappings
PortForwardingConfig.Builder portMappings(Collection<PortMapping> portMappings)
The port mappings for the configuration.
- Parameters:
portMappings- The port mappings for the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
PortForwardingConfig.Builder portMappings(PortMapping... portMappings)
The port mappings for the configuration.
- Parameters:
portMappings- The port mappings for the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portMappings
PortForwardingConfig.Builder portMappings(Consumer<PortMapping.Builder>... portMappings)
The port mappings for the configuration.
This is a convenience method that creates an instance of thePortMapping.Builderavoiding the need to create one manually viaPortMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#portMappings(List.) - Parameters:
portMappings- a consumer that will call methods onPortMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#portMappings(java.util.Collection)
-
-