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
Modifier and TypeMethodDescriptionportMappings(Collection<PortMapping> portMappings) The port mappings for the configuration.portMappings(Consumer<PortMapping.Builder>... portMappings) The port mappings for the configuration.portMappings(PortMapping... portMappings) The port mappings for the configuration.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
-
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
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
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 toportMappings(List<PortMapping>).- 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:
-