Interface PortSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PortSpecification.Builder,,PortSpecification> SdkBuilder<PortSpecification.Builder,,PortSpecification> SdkPojo
- Enclosing class:
PortSpecification
@Mutable
@NotThreadSafe
public static interface PortSpecification.Builder
extends SdkPojo, CopyableBuilder<PortSpecification.Builder,PortSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PortSpecification.BuilderallPorts(Consumer<Unit.Builder> allPorts) Indicates that all ports are accessible.Indicates that all ports are accessible.A single port number.default PortSpecification.Builderrange(Consumer<PortRange.Builder> range) A range of ports.A range of ports.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, sdkFieldNameToField, sdkFields
-
Method Details
-
port
A single port number.
- Parameters:
port- A single port number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
range
A range of ports.
- Parameters:
range- A range of ports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
range
A range of ports.
This is a convenience method that creates an instance of thePortRange.Builderavoiding the need to create one manually viaPortRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torange(PortRange).- Parameters:
range- a consumer that will call methods onPortRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allPorts
Indicates that all ports are accessible.
- Parameters:
allPorts- Indicates that all ports are accessible.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allPorts
Indicates that all ports are accessible.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallPorts(Unit).- Parameters:
allPorts- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-